-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK 0.5.0 Changes: - Remove certificate pinning for java sdk - Removing certificate pinning from docker sdk - Provide and option for custom groupid suffix in mirrormaker - Updated unittest stack - Updated ReadME for certificate pinning
- Loading branch information
1 parent
80204fa
commit 04af855
Showing
35 changed files
with
144 additions
and
2,686 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
oauth.token.endpoint.uri=https://{auth_endpoint_url}/auth/realms/pro-realm/protocol/openid-connect/token | ||
oauth.username.claim=preferred_username | ||
javax.net.ssl.trustStoreType=PKCS12 | ||
oauth.username.claim=preferred_username |
This file contains 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 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
bootstrap.servers={streams_endpoint_url}:9094 | ||
ssl.endpoint.identification.algorithm= | ||
group.id= | ||
security.protocol=SASL_SSL | ||
sasl.mechanism=OAUTHBEARER | ||
sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required; | ||
sasl.login.callback.handler.class=io.strimzi.kafka.oauth.client.JaasClientOauthLoginCallbackHandler | ||
auto.offset.reset=earliest | ||
auto.offset.reset=earliest |
This file contains 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 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 |
---|---|---|
@@ -1,30 +1,28 @@ | ||
#!/usr/bin/env sh | ||
|
||
file="/home/kafka/truststore/ncdsTrustStore.p12" | ||
|
||
# Remove the existing truststore if exists | ||
if [ -f $file ] ; then | ||
rm $file | ||
fi | ||
|
||
OPT=$2 | ||
|
||
#Function to get Topics | ||
function get_topics { | ||
if [ $3 == "-topics" ]; then | ||
if [[ $3 == "-topics" ]]; then | ||
TOPICS=$4 | ||
else | ||
TOPICS='.*' | ||
fi | ||
} | ||
|
||
# Install Trust Store | ||
java -jar app.jar -opt INSTALLCERTS -path /home/kafka/truststore -pass $JAVAX_NET_SSL_TRUSTSTOREPASSWORD && | ||
function get_groupids_suffix { | ||
if [[ $5 == "-groupidsuffix" ]]; then | ||
group_id_suffix=$6 | ||
else | ||
group_id_suffix=$(uuidgen) | ||
fi | ||
} | ||
|
||
if [ $OPT == "mirrormaker" ]; then | ||
if [[ $OPT == "mirrormaker" ]]; then | ||
get_topics $@ | ||
bash /home/kafka/docker/mirrormaker/run-mirror-maker.sh $TOPICS | ||
get_groupids_suffix $@ | ||
bash /home/kafka/docker/mirrormaker/run-mirror-maker.sh $TOPICS $group_id_suffix | ||
else | ||
# Run the user command | ||
java -Djavax.net.ssl.trustStore="/home/kafka/truststore/ncdsTrustStore.p12" -Djavax.net.ssl.trustStorePassword=$JAVAX_NET_SSL_TRUSTSTOREPASSWORD -Doauth.client.id=$OAUTH_CLIENT_ID -Doauth.client.secret=$OAUTH_CLIENT_SECRET -jar app.jar -kafkaprops /home/kafka/docker/kafka.properties -authprops /home/kafka/docker/auth.properties $@ | ||
fi | ||
java -Doauth.client.id=$OAUTH_CLIENT_ID -Doauth.client.secret=$OAUTH_CLIENT_SECRET -jar app.jar -kafkaprops /home/kafka/docker/kafka.properties -authprops /home/kafka/docker/auth.properties $@ | ||
fi |
This file contains 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 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 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.