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

Refresh CSR "whenever" needed #110

Merged
merged 6 commits into from
Oct 11, 2024
Merged

Refresh CSR "whenever" needed #110

merged 6 commits into from
Oct 11, 2024

Conversation

michaeldmitry
Copy link
Contributor

Issue

Currently, if SANs changed, we'd refresh the CSR only on the events passed to refresh_events. We should be doing that regardless of which event we're processing (as long as there was an initial CSR generated) since we might not know which specific events would trigger a SANs change.

Solution

Add a "reconcile" logic in CertHandler constructor to refresh CSR if there has been any change to SANs.

Testing Instructions

run tox -e scenario-manual

Upgrade Notes

  • Deprecation notice have been put if refresh_events is passed to CertHandler.

Copy link
Contributor

@PietroPasotti PietroPasotti left a comment

Choose a reason for hiding this comment

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

only a few nits from my side, doesn't need a second pass from me

@michaeldmitry michaeldmitry merged commit 00f61db into main Oct 11, 2024
13 checks passed
@michaeldmitry michaeldmitry deleted the reconcile-logic branch October 11, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants