-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Rolling CAs not working in 2.9 #4330
Comments
Hi, I'm going to test what happens if the same file contains multiple certificates to be sure if the problem is related with that or not (because it's important to know it). v2.10 will allow setting multiple CA at KEDA level, so I guess that it will solve the issue just providing you already existing secret if that problem is related with multi-certificates (at least to document this limitation for previous versions). I guess that the server is responding with a TLS cert signed by one registered CA, right? |
Thanks for the effort.
Just to double-check. These CAs will then be used to communicate with the Kafka Bootstrap Servers?
It does. |
Those CAs will be used to trust on server certificates. If the server certificates are signed by any registered CA, KEDA will accept them.
Not for kafka explicitly because Kafka is more complicated to spin up, but there is an e2e test that tests it with a rest API exposing a self-signed certificate. Basically we register KEDA adding the custom CA and then we use the metrics-api scaler to validate that KEDA trust in that self-signed CA BTW, and this is important, using KEDA v2.8 you are not validating the CAs at all. I mean, the code that we fixed was ignoring the certificate validation (that's why it works). I clarify it because maybe it's a security problem as you are skipping the certificate validation (or maybe not, but I prefer to clarify this point) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
Report
We have a working configuration for 2.8.
When we try to use the same configuration with 2.9 accessing the bootstrap-servers with our CAs fail:
We use:
with:
Expected Behavior
Either it should work or at least the error should indicate what I need to change in the config.
Actual Behavior
Error is:
Steps to Reproduce the Problem
Use a config with multiple CAs in a file.
Logs from KEDA operator
Stacktrace to above error message is:
KEDA Version
2.9.3
Kubernetes Version
1.25
Platform
Google Cloud
Scaler Details
Kafka
Anything else?
Seems like multiple CAs were supported before but now just one is picked.
The text was updated successfully, but these errors were encountered: