Skip to content
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

Fix: Use correct default for RotationCheckFrequency (12h instead of 90d) #305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

d-kuro
Copy link

@d-kuro d-kuro commented Dec 19, 2024

The RotationCheckFrequency was incorrectly defaulting to the same value as the LookaheadInterval (90 days), which is not its intended behavior.

This commit changes the default RotationCheckFrequency to 12 hours, as defined by defaultRotationCheckFrequency. This ensures that rotation checks are performed more frequently.

This change improves the responsiveness of the certificate rotation mechanism and allows for quicker detection of expiring certificates.

@d-kuro d-kuro force-pushed the d-kuro/fix-default-rotation-check branch from 5a2f6b7 to d8f5f7b Compare December 19, 2024 08:50
@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.49%. Comparing base (190188d) to head (7ea864e).
Report is 42 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #305      +/-   ##
==========================================
+ Coverage   57.16%   57.49%   +0.32%     
==========================================
  Files           1        1              
  Lines         572      574       +2     
==========================================
+ Hits          327      330       +3     
+ Misses        181      180       -1     
  Partials       64       64              
Flag Coverage Δ
unittests 57.49% <100.00%> (+0.32%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…ue as the LookaheadInterval (90 days), which is not its intended behavior.

This commit changes the default RotationCheckFrequency to 12 hours, as defined by `defaultRotationCheckFrequency`. This ensures that rotation checks are performed more frequently.

This change improves the responsiveness of the certificate rotation mechanism and allows for quicker detection of expiring certificates.

Signed-off-by: d-kuro <[email protected]>
@d-kuro d-kuro force-pushed the d-kuro/fix-default-rotation-check branch from d8f5f7b to 7ea864e Compare December 19, 2024 09:11
Copy link
Contributor

@JaydipGabani JaydipGabani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@d-kuro Thanks for the PR!

@JaydipGabani JaydipGabani requested a review from a team January 8, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants