Skip to content

Conversation

@jimczi
Copy link
Contributor

@jimczi jimczi commented Feb 8, 2021

This change adds a new cluster privilege cancel_task that allows to:

  • Cancel running tasks (_tasks/_cancel).
  • Cancel and delete async searches.

Today the 'manage' cluster privilege is required to cancel tasks and
to delete async searches when security features are enabled.
This new focused privilege allows to handle tasks and searches only.

The change also adds the privilege to the internal 'kibana_system'
and '_async_search' roles. They both need to be able to cancel tasks
and delete async searches.

Relates #67965

This change adds a new cluster privilege that allows to:
  * Cancel running tasks (_tasks/_cancel).
  * Cancel and delete async searches.

Today the 'manage' cluster privilege is required to cancel tasks and
to delete async searches when security features are enabled.
This new focused privilege allows to handle tasks and searches only.

The change also adds the privilege to the internal 'kibana_system'
and '_async_search' roles. They both need to be able to cancel tasks
and delete async searches.

Relates elastic#67965
@jimczi jimczi added >feature :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC v8.0.0 v7.12.0 labels Feb 8, 2021
@elasticmachine elasticmachine added the Team:Security Meta label for security team label Feb 8, 2021
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

@albertzaharovits albertzaharovits left a comment

Choose a reason for hiding this comment

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

I had two small things that I think need to be addressed. LGTM, no further review round necessary.


If the {es} {security-features} are enabled, the deletion of a specific async
search is restricted to:
* The authenticated user that submitted the original search request.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's worth finding a better way to express how we identify the identify a user.
But, we'll update the docs afterwards, no need to hold this PR in the meantime. It's on me to follow-up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

++, thanks

@jimczi jimczi merged commit f67185f into elastic:master Feb 16, 2021
@jimczi jimczi deleted the cancel_tasks_privilege branch February 16, 2021 09:56
jimczi added a commit that referenced this pull request Feb 16, 2021
…8679) (#69023)

This change adds a new cluster privilege cancel_task that allows to:

Cancel running tasks (_tasks/_cancel).
Cancel and delete async searches.
Today the 'manage' cluster privilege is required to cancel tasks and
to delete async searches when security features are enabled.
This new focused privilege allows to handle tasks and searches only.

The change also adds the privilege to the internal 'kibana_system'
and '_async_search' roles. They both need to be able to cancel tasks
and delete async searches.

Relates #67965
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>feature :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC Team:Security Meta label for security team v7.12.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants