Skip to content

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