Skip to content

Resolve anonymous roles and deduplicate roles during authentication (#53453) #55995

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

Merged
merged 1 commit into from
Apr 30, 2020

Conversation

ywangd
Copy link
Member

@ywangd ywangd commented Apr 30, 2020

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 #47195 (comment)

…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)
@ywangd ywangd added :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC backport labels Apr 30, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (:Security/Authorization)

@elasticmachine elasticmachine added the Team:Security Meta label for security team label Apr 30, 2020
@ywangd ywangd changed the title Resolve anonymous roles and deduplicate roles during authentication (… Resolve anonymous roles and deduplicate roles during authentication (#53453) Apr 30, 2020
@ywangd
Copy link
Member Author

ywangd commented Apr 30, 2020

@elasticmachine run elasticsearch-ci/1

@ywangd ywangd removed :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC Team:Security Meta label for security team labels Apr 30, 2020
@ywangd ywangd merged commit 84a2f1a into elastic:7.x Apr 30, 2020
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Jun 5, 2020
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Jun 9, 2020
ywangd added a commit that referenced this pull request Jun 9, 2020
ywangd added a commit that referenced this pull request Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants