forked from openmessaging/benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
Add DELEGATED_SASL_SSL with tls to all connections #6
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
BStarmerSmith
wants to merge
9
commits into
conduktor-gateway
Choose a base branch
from
ops-497-add-support-for-tls-connections
base: conduktor-gateway
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
9 commits
Select commit
Hold shift + click to select a range
b401a5c
Added support for TLS and SSL on kafka.
BStarmerSmith 77215fa
Switched to only one flag.
BStarmerSmith 43432bc
Made one function to setup the whole ssl tls setup
BStarmerSmith 3217e0f
Put TLS into a block with when statment. Fixed kafka install. Added …
BStarmerSmith 7682847
Made it so you can re-run ansible without it breaking deployment. Cha…
BStarmerSmith ffd2355
Updated README.md
BStarmerSmith 38b0449
Removed inventory, reverted pom changes.
BStarmerSmith bee6a0b
Added truststore to client.
BStarmerSmith 7bba8a6
Added the SSL settings to each kafka client driver.
BStarmerSmith 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
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,11 @@ | ||
| # vars.yml | ||
| use_tls_and_ssl: false | ||
| kafka_truststore_password: "admin123" | ||
| kafka_keystore_password: "admin123" | ||
| kafka_key_password: "admin123" | ||
| gateway_truststore_password: "admin123" | ||
| gateway_keystore_password: "admin123" | ||
| gateway_key_password: "admin123" | ||
| client_truststore_password: "admin123" | ||
| client_keystore_password: "admin123" | ||
| client_key_password: "admin123" |
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
8 changes: 8 additions & 0 deletions
8
driver-gateway/deploy/ssd-deployment/templates/gateway_env.j2
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,8 @@ | ||
| GATEWAY_SECURITY_PROTOCOL: DELEGATED_SASL_SSL | ||
| KAFKA_SASL_MECHANISM: "SCRAM-SHA-256" | ||
| KAFKA_SECURITY_PROTOCOL: SSL | ||
| KAFKA_SSL_TRUSTSTORE_LOCATION: "/etc/conduktor-gateway/truststore.jks" | ||
| KAFKA_SSL_TRUSTSTORE_PASSWORD: "{{ gateway_truststore_password }}" | ||
| KAFKA_SSL_KEYSTORE_LOCATION: "/etc/conduktor-gateway/keystore.jks" | ||
| KAFKA_SSL_KEYSTORE_PASSWORD: "{{ gateway_keystore_password }}" | ||
| KAFKA_SSL_KEY_PASSWORD: "{{ gateway_key_password }}" |
43 changes: 43 additions & 0 deletions
43
driver-gateway/deploy/ssd-deployment/templates/server_ssl.properties.j2
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,43 @@ | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
|
|
||
| # SSL Settings | ||
| ssl.keystore.location={{ template_kafka_keystore_path }} | ||
| ssl.keystore.password={{ template_kafka_keystore_password }} | ||
| ssl.key.password={{ template_kafka_key_password }} | ||
| ssl.truststore.location={{ template_kafka_truststore_path }} | ||
| ssl.truststore.password={{ template_kafka_truststore_password }} | ||
|
|
||
| # SASL Authentication | ||
| security.protocol=SASL_SSL | ||
| sasl.enabled.mechanisms=PLAIN | ||
| sasl.mechanism.inter.broker.protocol=PLAIN | ||
| advertised.listeners=SASL_SSL://{{ privateIp }}:9094 | ||
| security.inter.broker.protocol=ASL_SSL | ||
| sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="admin" password="admin"; | ||
|
|
||
| # Kafka Broker Config | ||
| broker.id={{ brokerId }} | ||
|
|
||
| log.dirs=/mnt/data-1,/mnt/data-2 | ||
|
|
||
| zookeeper.connect={{ zookeeperServers }} | ||
|
|
||
| num.replica.fetchers=8 | ||
|
|
||
| message.max.bytes=10485760 | ||
|
|
||
| replica.fetch.max.bytes=10485760 | ||
|
|
||
| num.network.threads=8 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -474,4 +474,4 @@ | |
| </build> | ||
| </profile> | ||
| </profiles> | ||
| </project> | ||
| </project> | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did it not create a different CA cert on each instances ?