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

1.10.x: properly handle the case where the secondary initializes after the primary #11539

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

freddygv
Copy link
Contributor

@freddygv freddygv commented Nov 9, 2021

Backport of #11514


Fixes #11367

Previously secondaryInitialize would return nil in this case, which prevented the
deferred initialize from happening, and left the CA in an uninitialized state until a config
update or root rotation.

To fix this I extracted the common parts into the delegate implementation. However looking at this
again, it seems like the handling in secondaryUpdateRoots is impossible, because that function
should never be called before the secondary is initialzied. I beleive we can remove some of that
logic in a follow up.

ca: properly handle the case where the secondary initializes after the primary
@freddygv freddygv requested a review from a team November 9, 2021 21:32
@freddygv freddygv added the pr/no-changelog PR does not need a corresponding .changelog entry label Nov 9, 2021
@freddygv freddygv merged commit cbaa9ce into release/1.10.x Nov 9, 2021
@freddygv freddygv deleted the backport-11514 branch November 9, 2021 22:02
@hc-github-team-consul-core
Copy link
Collaborator

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/498603.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/no-changelog PR does not need a corresponding .changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants