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

connect/ca: Don't discard old roots on primaryInitialize #14598

Merged
merged 2 commits into from
Sep 15, 2022

Conversation

kyhavlov
Copy link
Contributor

There are a couple cases in primaryInitialize in the CAManager that can cause the root to need updating when the leader is starting up. Currently when this happens, the old roots are discarded and only the new root is preserved, which could cause problems if the root was just rotated out and we still need to keep the old root around for interoperability during the switch to the new root.

This PR changes that behavior to keep the old roots around in this case in primaryInitialize - they'll still be pruned through the normal leader routine once enough time has passed after they've been rotated out.

@kyhavlov kyhavlov requested review from a team and dhiaayachi and removed request for a team September 13, 2022 22:51
Copy link
Collaborator

@dhiaayachi dhiaayachi left a comment

Choose a reason for hiding this comment

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

LGTM!
Is this fix meant to be backported?

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.

2 participants