-
Notifications
You must be signed in to change notification settings - Fork 491
feat: manage both SSL and plaintext communication between dispatcher and kafka broker #2582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nas-tabchiche
wants to merge
4
commits into
main
Choose a base branch
from
CA-1257-manage-ssl-and-plaintext-communication-between-dispatcher-and-kafka-broker
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d85087c
feat: manage both SSL and plaintext communication between dispatcher …
nas-tabchiche dd35f27
add sample redpanda docker-compose file with SASL
nas-tabchiche 33fbb1b
redact credentials before issuing config debug log
nas-tabchiche 5692490
allow SSL/PLAINTEXT when auth is disabled; set sensible defaults.
nas-tabchiche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: redpanda-quickstart-one-broker | ||
networks: | ||
redpanda_network: | ||
driver: bridge | ||
volumes: | ||
redpanda-0: null | ||
services: | ||
redpanda-0: | ||
command: | ||
- redpanda | ||
- start | ||
# - --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092 | ||
# # Address the broker advertises to clients that connect to the Kafka API. | ||
# # Use the internal addresses to connect to the Redpanda brokers' | ||
# # from inside the same Docker network. | ||
# # Use the external addresses to connect to the Redpanda brokers' | ||
# # from outside the Docker network. | ||
# - --advertise-kafka-addr internal://redpanda-0:9092,external://localhost:19092 | ||
# - --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082 | ||
# # Address the broker advertises to clients that connect to the HTTP Proxy. | ||
# - --advertise-pandaproxy-addr internal://redpanda-0:8082,external://localhost:18082 | ||
# - --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081 | ||
# # Redpanda brokers use the RPC API to communicate with each other internally. | ||
# - --rpc-addr redpanda-0:33145 | ||
# - --advertise-rpc-addr redpanda-0:33145 | ||
# # Mode dev-container uses well-known configuration properties for development in containers. | ||
# - --mode dev-container | ||
# # Tells Seastar (the framework Redpanda uses under the hood) to use 1 core on the system. | ||
# - --smp 1 | ||
# - --default-log-level=info | ||
image: docker.redpanda.com/redpandadata/redpanda:v25.1.1 | ||
container_name: redpanda-0 | ||
volumes: | ||
- redpanda-0:/var/lib/redpanda/data | ||
- ./redpanda:/etc/redpanda | ||
networks: | ||
- redpanda_network | ||
ports: | ||
- 18081:18081 | ||
- 18082:18082 | ||
- 19092:19092 | ||
- 19644:9644 | ||
console: | ||
container_name: redpanda-console | ||
image: docker.redpanda.com/redpandadata/console:v3.0.0 | ||
networks: | ||
- redpanda_network | ||
entrypoint: /bin/sh | ||
command: -c 'echo "$$CONSOLE_CONFIG_FILE" > /tmp/config.yml; /app/console' | ||
environment: | ||
CONFIG_FILEPATH: /tmp/config.yml | ||
CONSOLE_CONFIG_FILE: | | ||
kafka: | ||
brokers: ["redpanda-0:9092"] | ||
schemaRegistry: | ||
enabled: true | ||
urls: ["http://redpanda-0:8081"] | ||
redpanda: | ||
adminApi: | ||
enabled: true | ||
urls: ["http://redpanda-0:9644"] | ||
ports: | ||
- 8080:8080 | ||
depends_on: | ||
- redpanda-0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
redpanda: | ||
data_directory: /var/lib/redpanda/data | ||
seed_servers: [] | ||
rpc_server: | ||
address: redpanda-0 | ||
port: 33145 | ||
kafka_api: | ||
- address: 0.0.0.0 | ||
port: 9092 | ||
name: internal | ||
- address: 0.0.0.0 | ||
port: 19092 | ||
name: external | ||
authentication_method: sasl | ||
admin: | ||
- address: 0.0.0.0 | ||
port: 9644 | ||
advertised_rpc_api: | ||
address: redpanda-0 | ||
port: 33145 | ||
advertised_kafka_api: | ||
- address: redpanda-0 | ||
port: 9092 | ||
name: internal | ||
- address: localhost | ||
port: 19092 | ||
name: external | ||
developer_mode: true | ||
auto_create_topics_enabled: true | ||
enable_sasl: true | ||
fetch_reads_debounce_timeout: 10 | ||
group_initial_rebalance_delay: 0 | ||
group_topic_partitions: 3 | ||
log_segment_size_min: 1 | ||
sasl_mechanisms: | ||
- SCRAM-SHA-256 | ||
storage_min_free_bytes: 10485760 | ||
topic_partitions_per_shard: 1000 | ||
write_caching_default: "true" | ||
nas-tabchiche marked this conversation as resolved.
Show resolved
Hide resolved
|
||
rpk: | ||
overprovisioned: true | ||
coredump_dir: /var/lib/redpanda/coredump | ||
pandaproxy: | ||
pandaproxy_api: | ||
- address: 0.0.0.0 | ||
port: 8082 | ||
name: internal | ||
- address: 0.0.0.0 | ||
port: 18082 | ||
name: external | ||
advertised_pandaproxy_api: | ||
- address: redpanda-0 | ||
port: 8082 | ||
name: internal | ||
- address: localhost | ||
port: 18082 | ||
name: external | ||
schema_registry: | ||
schema_registry_api: | ||
- address: 0.0.0.0 | ||
port: 8081 | ||
name: internal | ||
- address: 0.0.0.0 | ||
port: 18081 | ||
name: external |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.