-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Deduplicate policies prior to generating ACL on request #17914
Deduplicate policies prior to generating ACL on request #17914
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be a good idea to add a go test for this to ensure the behavior doesn't regress?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but we should try to figure out a way to add a test for this. We can sync on this.
This PR probably needs to get backported to previous versions. |
Also, I am wondering if we could go back to 1.10, and before the fix for that escalation. Apply this change, and see if we could reproduce the escalated issue. It would be a good test IMHO. |
This PR solves an issue where a token can have duplicate policies as part of its policy set when using external groups. This scenario is encountered when an external group policy mapping is created in Vault containing duplicate policies to those defined by the authentication method.