Skip to content

Ensure TermsEnum action works correctly with API keys (#91170)#91242

Merged
elasticsearchmachine merged 1 commit intoelastic:8.5from
ywangd:terms-enum-dls-checking-bug-8.5
Nov 2, 2022
Merged

Ensure TermsEnum action works correctly with API keys (#91170)#91242
elasticsearchmachine merged 1 commit intoelastic:8.5from
ywangd:terms-enum-dls-checking-bug-8.5

Conversation

@ywangd
Copy link
Copy Markdown
Member

@ywangd ywangd commented Nov 2, 2022

An API key's permission is bounded by its owner user's permission. When checking for DLS access, both the key's permission and the owner user's permission must be consulted. The access is granted only when it is granted by both. This PR ensures this logic is correctly enforced by the termsEnum action.

Backport: #91170

An API key's permission is bounded by its owner user's permission. When
checking for DLS access, both the key's permission and the owner user's
permission must be consulted. The access is granted only when it is
granted by both. This PR ensures this logic is correctly enforced by the
termsEnum action.
@ywangd ywangd added backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Nov 2, 2022
@elasticsearchmachine elasticsearchmachine merged commit 69cf4d2 into elastic:8.5 Nov 2, 2022
@ywangd ywangd deleted the terms-enum-dls-checking-bug-8.5 branch November 2, 2022 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.5.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants