Conversation
Signed-off-by: Kate Stanley <11195226+katheris@users.noreply.github.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13194 +/- ##
============================================
+ Coverage 80.75% 80.77% +0.01%
- Complexity 6806 6809 +3
============================================
Files 360 360
Lines 23352 23357 +5
Branches 3174 3175 +1
============================================
+ Hits 18858 18866 +8
Misses 3254 3254
+ Partials 1240 1237 -3
🚀 New features to boost your workflow:
|
|
/gha run pipeline=regression |
|
⏳ System test verification started: link The following 8 job(s) will be executed:
Tests will start after successful build completion. |
|
🎉 System test verification passed: link |
ppatierno
left a comment
There was a problem hiding this comment.
I think this behaviour would deserve at least one line to warn users when they do the migration from Strimzi CA to cert-manager. You never know what's their expectation. Also why deleting the private key only? Moving to cert-manager doesn't imply that you will use the same Secret from Strimzi CA as the place to copy the public key you are using with cert-manager. It could be a different Secret, right?
With cert-manager, the operator still uses the same internal secret for the CA certificate to track generation annotations on it. When user references a secret in the Kafka CR, the operator validates and copies the certificate from it into the internal secret. |
So maybe I missed that during the cert-manager integration, then the flow is: Secret (for cert-manager) with tls.crt and tls.key ---> tls.crt copied (by user) into the ca.crt field of the Secret specified within the Kafka CR --> copied (by operator) into the ca.crt of the internal Secret -ca-cert Is the flow correct? I missed the last copy, I thought the operator was going to use directly the Secret specified within the Kafka CR. Why did we need the additional copy? Btw I think that the deletion of the Secret private key would still need a mention within the documentation. |
Type of change
Select the type of your PR and delete the other items
Description
Currently if a user starts with Strimzi managing the CA and then switches to using cert-manager the Secret containing the CA private key isn't cleaned up.
Add logic to CertManagerCaProvider to make sure this Secret is removed.
Checklist
Please go through this checklist and make sure all applicable tasks have been done