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

acl: use the presence of a management policy in the state store as a sign that we already migrated to v2 acls #9505

Merged
merged 3 commits into from
Jan 5, 2021

Conversation

rboyer
Copy link
Member

@rboyer rboyer commented Jan 5, 2021

This way we only have to wait for the serf barrier to pass once before
we can upgrade to v2 acls. Without this patch every restart needs to
re-compute the change, and potentially if a stray older node joins after
a migration it might regress back to v1 mode which would be problematic.

…sign that we already migrated to v2 acls

This way we only have to wait for the serf barrier to pass once before
we can upgrade to v2 acls. Without this patch every restart needs to
re-compute the change, and potentially if a stray older node joins after
a migration it might regress back to v1 mode which would be problematic.
@rboyer rboyer added the theme/acls ACL and token generation label Jan 5, 2021
@rboyer rboyer requested a review from a team January 5, 2021 22:40
@rboyer rboyer self-assigned this Jan 5, 2021
@github-actions github-actions bot removed the theme/acls ACL and token generation label Jan 5, 2021

// t.Parallel()

// We test this by having two datacenters with one server each. They
Copy link
Member Author

Choose a reason for hiding this comment

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

This scenario is actually the thing I was running into while trying to fix #9342. Without this fix, the patches on the other PR to prevent dialing the primary's gateway when the local is known to have a gateway were blocked waiting for the mesh gateway envoy to start in the secondary. That in turn was blocked on the "wtf? i can't handle non-legacy tokens yet until i talk to the primary" circular dependency.

Copy link
Member

@mkeeler mkeeler left a comment

Choose a reason for hiding this comment

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

LGTM. I cannot see any reason why the presence of the policy shouldn’t be enough to indicate that we have transitioned.

@hashicorp-ci
Copy link
Contributor

🍒 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/304944.

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.

4 participants