- Notifications
You must be signed in to change notification settings - Fork889
Add support for truststore and keystore password parameters in Kafdrop#708
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Bert-R commentedDec 12, 2024
I do not understand the objective of this PR. As mentioned in the README, you can use What do you want to add to that? |
wkd-woo commentedDec 14, 2024
@Bert-R Additionally, in the company I work for, security policies prohibit storing passwords in configuration files like properties. (Honestly, I find this requirement quite perplexing myself.) However, storing passwords in objects such as Kubernetes Secrets is allowed. This is why I created this PR. I believe that passwords required for certificate access should also be managed as separate parameters. |
Bert-R commentedDec 14, 2024
In that case, I suggest a much simpler implementation. We already support
If you copy these lines and adapt them for the trust store, you're all set. |
wkd-woo commentedJan 6, 2025
Thank you for your suggestion,@Bert-R I understand that we already have Currently, there is no dedicated parameter for truststore.password, which is required for TLS connections with Kafka brokers. Simply duplicating This PR proposes adding new parameters ( I hope this clarifies the need for the PR. Please review my PR again. |
Bert-R commentedJan 6, 2025
Your PR adds We do not have the diff --git a/README.md b/README.mdindex e8e3b41..e4fc3a5 100644--- a/README.md+++ b/README.md@@ -353,6 +353,7 @@ docker run -d --rm -p 9000:9000 \ | `SSL_KEY_STORE_TYPE` | Type of SSL keystore. Default is `PKCS12` | `SSL_KEY_STORE` | Path to keystore file | `SSL_KEY_STORE_PASSWORD` | Keystore password+| `SSL_TRUST_STORE_PASSWORD` | Truststore password | `SSL_KEY_ALIAS` | Key alias ### Using Helmdiff --git a/src/main/resources/application.yml b/src/main/resources/application.ymlindex d80ad48..d52ec18 100644--- a/src/main/resources/application.yml+++ b/src/main/resources/application.yml@@ -10,6 +10,7 @@ server: key-store-type: ${SSL_KEY_STORE_TYPE:PKCS12} key-store: ${SSL_KEY_STORE:} key-store-password: ${SSL_KEY_STORE_PASSWORD:}+ trust-store-password: ${SSL_TRUST_STORE_PASSWORD:} key-alias: ${SSL_KEY_ALIAS:} enabled: ${SSL_ENABLED:false} That's what I meant with "copy these lines and adapt them for the trust store". |
Uh oh!
There was an error while loading.Please reload this page.
Description
This PR introduces support for specifying passwords for the truststore and keystore used in SSL communication with Kafka brokers in Kafdrop.
Previously, while the truststore file location could be specified using the
KAFKA_TRUSTSTORE_FILEparameter, there was no way to provide the password required to access it.This enhancement addresses that limitation.
refer:https://docs.oracle.com/javadb/10.8.3.0/adminguide/cadminsslclient.html
Key changes include
KAFKA_TRUSTSTORE_PASSWORDto specify the truststore password.KAFKA_KEYSTORE_PASSWORDto specify the keystore password.KafkaConfiguration.javato handle these new parameters and setssl.truststore.passwordandssl.keystore.passwordin the Kafka properties if provided.KAFKA_TRUSTSTORE_PASSWORDKAFKA_KEYSTORE_PASSWORD