Add possibility to configure mTLS validityDays and renewalDays for each KafkaUser#12658
Add possibility to configure mTLS validityDays and renewalDays for each KafkaUser#12658im-konge wants to merge 4 commits into
validityDays and renewalDays for each KafkaUser#12658Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12658 +/- ##
============================================
+ Coverage 75.01% 75.16% +0.14%
- Complexity 6397 6459 +62
============================================
Files 345 346 +1
Lines 24155 24332 +177
Branches 3095 3122 +27
============================================
+ Hits 18120 18289 +169
- Misses 4800 4808 +8
Partials 1235 1235
🚀 New features to boost your workflow:
|
|
/gha run pipeline=regression,upgrade |
|
⏳ System test verification started: link The following 10 job(s) will be executed:
Tests will start after successful build completion. |
|
🎉 System test verification passed: link |
4b32af4 to
7d3f1cd
Compare
|
/gha run pipeline=regression,upgrade |
|
⏳ System test verification started: link The following 10 job(s) will be executed:
Tests will start after successful build completion. |
|
🎉 System test verification passed: link |
48a5f94 to
74d9f79
Compare
9ca9dc1 to
cbb1d22
Compare
Signed-off-by: Lukas Kral <lukywill16@gmail.com> finish implementation Signed-off-by: Lukas Kral <lukywill16@gmail.com> fix tests Signed-off-by: Lukas Kral <lukywill16@gmail.com> add changelog Signed-off-by: Lukas Kral <lukywill16@gmail.com> same value of validityDays and renewalDays in KafkaUserModelCertificateHandlingTest Signed-off-by: Lukas Kral <lukywill16@gmail.com> crds 🤦 Signed-off-by: Lukas Kral <lukywill16@gmail.com> update API docs and add ST for this change Signed-off-by: Lukas Kral <lukywill16@gmail.com> Signed-off-by: Lukas Kral <lukywill16@gmail.com> fix spotbugs Signed-off-by: Lukas Kral <lukywill16@gmail.com> Jakub's comments Signed-off-by: Lukas Kral <lukywill16@gmail.com> use minimum instead of CEL Signed-off-by: Lukas Kral <lukywill16@gmail.com> renewalDays description Signed-off-by: Lukas Kral <lukywill16@gmail.com>
cbb1d22 to
71620c2
Compare
|
/gha run pipeline=regression,upgrade |
|
⏳ System test verification started: link The following 10 job(s) will be executed:
Tests will start after successful build completion. |
✅ 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. |
e618e67 to
76392cd
Compare
|
/gha run pipeline=regression,upgrade |
|
⏳ System test verification started: link |
tinaselenge
left a comment
There was a problem hiding this comment.
LGTM. Thanks @im-konge
|
/gha run pipeline=regression,upgrade |
|
⏳ System test verification started: link |
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
76392cd to
8275a14
Compare
|
/gha run pipeline=regression,upgrade |
|
⏳ System test verification started: link The following 10 job(s) will be executed:
Tests will start after successful build completion. |
|
🎉 System test verification passed: link |
|
@katheris @ppatierno do you want to review this? Or should I continue with merging? |
|
@im-konge should we have some addition to the documentation about these new fields? |
I'm not sure, like.. there is the API documentation and that should explain everything. |
|
Quite often we have examples in the documentation for example here: https://strimzi.io/docs/operators/latest/deploying#mtls_authentication Maybe it would be useful to add this two fields in the example but as optional as we do for other several examples. |
Okay let me have a look. Thanks |
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
|
@ppatierno I added few lines about it. Please have a look. Also, @PaulRMellor could you please have a look? Thanks! |
Type of change
Description
This PR implements proposal about Configurable validityDays and renewalDays per KafkaUser. As described in the proposal, it adds
validityDaysandrenewalDaysto theKafkaUserCRD, when thetypeof authn istls- which is covered by CEL validation, together with values of both fields to be higher than 0, both has to be set if one or the other is set, and thatvalidityDaysis always higher thanrenewalDays.As part of this PR I'm adding ST for both new
validityDaysandrenewalDays, but also to check theforce-renewfeature added in a different PR - which is useful in this case when we want to have the certificate with new validity policy immediately.Fixes #12336
Checklist