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

Fix legacy management tokens in unupgraded secondary dcs #7908

Merged
merged 1 commit into from Jun 3, 2020

Conversation

mkeeler
Copy link
Member

@mkeeler mkeeler commented May 18, 2020

The ACL.GetPolicy RPC endpoint was supposed to return the “parent” policy and not always the default policy. In the case of legacy management tokens the parent policy was supposed to be “manage”. The result of us not sending this properly was that operations that required specifically a management token such as saving a snapshot would not work in secondary DCs until they were upgraded.

We cannot do so in our unit tests but I also spun up a multi-dc cluster with the main DC on a dev build from this branch and the secondary DC on v1.2.4. The master token and legacy compatible management tokens in general are usable in the secondary dc.

@mkeeler mkeeler requested a review from a team May 18, 2020 13:46
@mkeeler mkeeler force-pushed the bugfix/legacy-mgmt-secondary branch from 7924bcd to b3510d3 Compare May 18, 2020 16:11
The ACL.GetPolicy RPC endpoint was supposed to return the “parent” policy and not always the default policy. In the case of legacy management tokens the parent policy was supposed to be “manage”. The result of us not sending this properly was that operations that required specifically a management token such as saving a snapshot would not work in secondary DCs until they were upgraded.

Signed-off-by: Matt Keeler <mjkeeler7@gmail.com>
Copy link
Member

@rboyer rboyer left a comment

Choose a reason for hiding this comment

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

LGTM

@mkeeler mkeeler merged commit 771c613 into master Jun 3, 2020
@mkeeler mkeeler deleted the bugfix/legacy-mgmt-secondary branch June 3, 2020 15:22
mkeeler added a commit that referenced this pull request Jun 3, 2020
The ACL.GetPolicy RPC endpoint was supposed to return the “parent” policy and not always the default policy. In the case of legacy management tokens the parent policy was supposed to be “manage”. The result of us not sending this properly was that operations that required specifically a management token such as saving a snapshot would not work in secondary DCs until they were upgraded.
hashicorp-ci pushed a commit that referenced this pull request Jun 3, 2020
The ACL.GetPolicy RPC endpoint was supposed to return the “parent” policy and not always the default policy. In the case of legacy management tokens the parent policy was supposed to be “manage”. The result of us not sending this properly was that operations that required specifically a management token such as saving a snapshot would not work in secondary DCs until they were upgraded.
hashicorp-ci pushed a commit that referenced this pull request Jun 3, 2020
The ACL.GetPolicy RPC endpoint was supposed to return the “parent” policy and not always the default policy. In the case of legacy management tokens the parent policy was supposed to be “manage”. The result of us not sending this properly was that operations that required specifically a management token such as saving a snapshot would not work in secondary DCs until they were upgraded.
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.

None yet

3 participants