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

[7.x] Mirror privileges over data streams to their backing indices #58991

Merged
merged 3 commits into from
Jul 3, 2020

Conversation

danhermann
Copy link
Contributor

This PR comprises the core of data streams security integration. It changes the authorization code to extend any privileges granted on a data stream to all of its backing indices. It also introduces an includeDataStreams() flag on any requests implementing IndicesRequest so that they can indicate how data streams should be considered during the authz process for each request. For requests where includeDataStreams() is false, authz will not include any data streams in the list of authorized indices for that request. For requests where includeDataStreams() is true, authz will include any matching data streams along with their respective backing indices in the list of authorized indices.

Note that @albertzaharovits's comment below (#58381 (comment)) includes another description of the way in which the authz code expands wildcards for requests that include data streams and those that do not.

Relates to #53100

Backport of #58381

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Data streams)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Jul 3, 2020
@danhermann danhermann merged commit 5e7746d into elastic:7.x Jul 3, 2020
@danhermann danhermann deleted the backport_7x_58381_ds_security branch July 6, 2020 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Data Management/Data streams Data streams and their lifecycles >non-issue Team:Data Management Meta label for data/management team v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants