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

Allow _rollup_search with read privilege #52043

Merged
merged 7 commits into from
Mar 3, 2020

Conversation

ywangd
Copy link
Member

@ywangd ywangd commented Feb 7, 2020

Currently _rollup_search requires manage privilege to access. It should really be a read only operation. This PR changes the requirement to be read indices privilege.

Resolves: #50245

@ywangd ywangd added >bug WIP :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC v8.0.0 labels Feb 7, 2020
@ywangd ywangd requested a review from tvernum February 7, 2020 13:06
@elasticmachine
Copy link
Collaborator

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

@ywangd ywangd removed the WIP label Feb 11, 2020
Comment on lines +17 to +19
public void testIndexReadPrivilegeCanPerformRollupSearchAction() {
assertTrue(Automatons.predicate(IndexPrivilege.READ.getAutomaton()).test(RollupSearchAction.NAME));
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please let me know if there is a better way for this unit test.

@ywangd ywangd added the v7.7.0 label Feb 12, 2020
@ywangd
Copy link
Member Author

ywangd commented Feb 14, 2020

Repost from slack channel:

The action renaming seems to be no issue since internally TransportRollupSearchAction calls Client#multiSearch which in turn calls MultiSearchAction and it is unchanged.

Copy link
Contributor

@tvernum tvernum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ywangd ywangd merged commit 9a2a59b into elastic:master Mar 3, 2020
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Mar 3, 2020
Currently _rollup_search requires manage privilege to access. It should really be
a read only operation. This PR changes the requirement to be read indices privilege.

Resolves: elastic#50245
ywangd added a commit that referenced this pull request Mar 3, 2020
Currently _rollup_search requires manage privilege to access. It should really be
a read only operation. This PR changes the requirement to be read indices privilege.

Resolves: #50245
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.

Rollup_search requires more than read-only permissions
4 participants