-
Notifications
You must be signed in to change notification settings - Fork 859
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
Add support for truststore and keystore password parameters in Kafdrop #708
base: master
Are you sure you want to change the base?
Conversation
1aeef69
to
f3f6ed9
Compare
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? |
@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. |
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. |
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. |
Your PR adds We do not have the diff --git a/README.md b/README.md
index 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 Helm
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 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". |
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_FILE
parameter, 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_PASSWORD
to specify the truststore password.KAFKA_KEYSTORE_PASSWORD
to specify the keystore password.KafkaConfiguration.java
to handle these new parameters and setssl.truststore.password
andssl.keystore.password
in the Kafka properties if provided.KAFKA_TRUSTSTORE_PASSWORD
KAFKA_KEYSTORE_PASSWORD