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

ca: split the Provider interface into Primary/Secondary #11340

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented Oct 15, 2021

Branched from #11338

To make it more clear which methods are necessary for each "mode". This will help prevent issues like the one described in #11159. In the future we should be able to pass to use only the PrimaryProvider when in primary mode, and only SecondaryProvider when in secondary mode, so that we can't accidentally call the wrong method.

To make it more clear which methods are necessary for each scenario. This can
also prevent problems which force all DCs to use the same Vault instance, which
is currently a problem.
@dnephin dnephin added theme/internal-cleanup Used to identify tech debt, testing improvements, code refactoring, and non-impactful optimization theme/certificates Related to creating, distributing, and rotating certificates in Consul pr/no-changelog PR does not need a corresponding .changelog entry labels Oct 15, 2021
@dnephin dnephin requested a review from a team October 15, 2021 23:10
@github-actions github-actions bot added theme/connect Anything related to Consul Connect, Service Mesh, Side Car Proxies and removed theme/certificates Related to creating, distributing, and rotating certificates in Consul labels Oct 15, 2021
Copy link
Contributor

@kisunji kisunji left a comment

Choose a reason for hiding this comment

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

Looks reasonable!

@dnephin
Copy link
Contributor Author

dnephin commented Oct 28, 2021

Thanks for the approval! This is based on #11338, so I won't be able to merge this one until that one is approved and merged.

Base automatically changed from dnephin/ca-manager-isolate-secondary to main November 1, 2021 18:10
@dnephin dnephin merged commit 7337cfd into main Nov 1, 2021
@dnephin dnephin deleted the dnephin/ca-manager-provider branch November 1, 2021 18:11
@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/490375.

dnephin added a commit that referenced this pull request Jan 27, 2022
ca: split the Provider interface into Primary/Secondary
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 theme/connect Anything related to Consul Connect, Service Mesh, Side Car Proxies theme/internal-cleanup Used to identify tech debt, testing improvements, code refactoring, and non-impactful optimization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants