[DO NOT MERGE] Debug PR change loadbalancer-serving-signer validity#2030
[DO NOT MERGE] Debug PR change loadbalancer-serving-signer validity#2030sergiordlr wants to merge 1 commit intoopenshift:mainfrom
Conversation
WalkthroughThe pull request modifies certificate validity duration in two cert rotation configurations from effectively infinite (foreverPeriod) to 2 hours (time.Hour*2) within a single file. This adjusts the certificate rotation timing mechanism. No functional logic, error handling, or control flow changes are introduced. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sergiordlr The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
pkg/operator/certrotationcontroller/certrotationcontroller.go (1)
489-494:⚠️ Potential issue | 🔴 CriticalCritical: Validity/Refresh mismatch will prevent proper certificate rotation.
Validityis set to 2 hours butRefreshremains atforeverRefreshPeriod(8 years). The refresh period must be shorter than validity for the rotation controller to regenerate certificates before they expire. This configuration will cause certificates to expire without being refreshed, breaking API server connections via the internal load balancer.Additionally:
- The comment on lines 490-493 ("rotation will be after 8y") is now stale and misleading.
- The inline comment "this comes from the installer" no longer applies.
If this is intentional debug code (per PR title), ensure
Refreshis also reduced proportionally (e.g.,time.Hourfor 50% of validity).Suggested fix if debug rotation is intended
- Validity: time.Hour * 2, // this comes from the installer - // Refresh set to 80% of the validity. - // This range is consistent with most other signers defined in this pkg. - // Given that in this case rotation will be after 8y, - // it means we effectively do not rotate. - Refresh: foreverRefreshPeriod, + Validity: time.Hour * 2, // DEBUG: shortened for testing + // Refresh set to 50% of the validity for debug rotation. + Refresh: time.Hour,
|
@sergiordlr: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/hold
debug