Resolve anonymous roles and deduplicate roles during authentication (#53453)#55995
Merged
ywangd merged 1 commit intoelastic:7.xfrom Apr 30, 2020
Merged
Resolve anonymous roles and deduplicate roles during authentication (#53453)#55995ywangd merged 1 commit intoelastic:7.xfrom
ywangd merged 1 commit intoelastic:7.xfrom
Conversation
…lastic#53453) Anonymous roles resolution and user role deduplication are now performed during authentication instead of authorization. The change ensures: * If anonymous access is enabled, user will be able to see the anonymous roles added in the roles field in the /_security/_authenticate response. * Any duplication in user roles are removed and will not show in the above authenticate response. * In any other case, the response is unchanged. It also introduces a behaviour change: the anonymous role resolution is now authentication node specific, previously it was authorization node specific. Details can be found at elastic#47195 (comment)
Collaborator
|
Pinging @elastic/es-security (:Security/Authorization) |
Member
Author
|
@elasticmachine run elasticsearch-ci/1 |
ywangd
added a commit
to ywangd/elasticsearch
that referenced
this pull request
Jun 5, 2020
…cation (elastic#53453) (elastic#55995)" This reverts commit 84a2f1a.
ywangd
added a commit
to ywangd/elasticsearch
that referenced
this pull request
Jun 9, 2020
…cation (elastic#53453) (elastic#55995)" This reverts commit 84a2f1a.
ywangd
added a commit
that referenced
this pull request
Jun 9, 2020
ywangd
added a commit
that referenced
this pull request
Jun 10, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Anonymous roles resolution and user role deduplication are now performed during authentication instead of authorization. The change ensures:
It also introduces a behaviour change: the anonymous role resolution is now authentication node specific, previously it was authorization node specific. Details can be found at #47195 (comment)