-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Add RBAC for reindex management APIs #139779
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
base: main
Are you sure you want to change the base?
Changes from all commits
79d4cfc
723c627
2e78cad
1e440ed
d617fdb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||
| --- | ||||||
|
Check failure on line 1 in docs/reference/elasticsearch/roles.md
|
||||||
| mapped_pages: | ||||||
| - https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-roles.html | ||||||
| applies_to: | ||||||
|
|
@@ -111,6 +111,12 @@ | |||||
| $$$built-in-roles-monitoring-user$$$ `monitoring_user` | ||||||
| : Grants the minimum privileges required for any user of {{monitoring}} other than those required to use {{kib}}. This role grants access to the monitoring indices and grants privileges necessary for reading basic cluster information. This role also includes all [Kibana privileges](docs-content://deploy-manage/users-roles/cluster-or-deployment-auth/kibana-privileges.md) for the {{stack-monitor-features}}. Monitoring users should also be assigned the `kibana_admin` role, or another role with [access to the {{kib}} instance](docs-content://deploy-manage/users-roles/cluster-or-deployment-auth/built-in-roles.md). | ||||||
|
|
||||||
| $$$built-in-roles-reporting-admin$$$ `reindex_admin` {applies_to}`TODO fill this in DO NOT MERGE` | ||||||
| : Allows users to manage reindex tasks, including getting, listing, cancelling, and rethrottling them. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit/thinking out loud: would this be a bit more clear? something about anyway, leaving decision up to you (also, sounds like the rare opportunity to use a semi-colon in english :D )
Suggested change
|
||||||
|
|
||||||
| $$$built-in-roles-reporting-user$$$ `reindex_user` {applies_to}`TODO fill this in DO NOT MERGE` | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| : Allows users to monitor reindex tasks, including getting abd listing them. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| $$$built-in-roles-remote-monitoring-agent$$$ `remote_monitoring_agent` | ||||||
| : Grants the minimum privileges required to write data into the monitoring indices (`.monitoring-*`). This role also has the privileges necessary to create {{metricbeat}} indices (`metricbeat-*`) and write data into them. | ||||||
|
|
||||||
|
|
@@ -119,7 +125,7 @@ | |||||
|
|
||||||
| $$$built-in-roles-reporting-user$$$ `reporting_user` {applies_to}`stack: deprecated 9.0` | ||||||
| : This role is deprecated. Use [{{kib}} feature privileges](docs-content://deploy-manage/users-roles/cluster-or-deployment-auth/kibana-privileges.md#kibana-feature-privileges) instead. | ||||||
|
|
||||||
| Grants the necessary privileges required to use {{report-features}} in {{kib}}, including generating and downloading reports. This role implicitly grants access to all {{kib}} reporting features, with each user having access only to their own reports. Note that reporting users should also be assigned additional roles that grant read access to the [indices](docs-content://deploy-manage/users-roles/cluster-or-deployment-auth/role-structure.md#roles-indices-priv) that will be used to generate reports. | ||||||
|
|
||||||
| $$$built-in-roles-rollup-admin$$$ `rollup_admin` | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||
| --- | ||||||
|
Check failure on line 1 in docs/reference/elasticsearch/security-privileges.md
|
||||||
| navigation_title: "Elasticsearch privileges" | ||||||
| mapped_pages: | ||||||
| - https://www.elastic.co/guide/en/elasticsearch/reference/current/security-privileges.html | ||||||
|
|
@@ -125,6 +125,9 @@ | |||||
| `manage_pipeline` | ||||||
| : All operations on ingest pipelines. | ||||||
|
|
||||||
| `manage_reindex` {applies_to}`TODO fill this in DO NOT MERGE` | ||||||
| : All operations on reindex tasks, including listing, getting status, cancelling, and rethrottling | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit
Suggested change
|
||||||
|
|
||||||
| `manage_rollup` {applies_to}`serverless: unavailable` | ||||||
| : All rollup operations, including creating, starting, stopping and deleting rollup jobs. | ||||||
|
|
||||||
|
|
@@ -190,6 +193,8 @@ | |||||
| `monitor_rollup` {applies_to}`serverless: unavailable` | ||||||
| : All read-only rollup operations, such as viewing the list of historical and currently running rollup jobs and their capabilities. | ||||||
|
|
||||||
| `monitor_reindex` {applies_to}`TODO fill this in DO NOT MERGE` | ||||||
| : All read-only operations on reindex tasks, including listing and getting status | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit
Suggested change
|
||||||
|
|
||||||
| `monitor_snapshot` {applies_to}`serverless: unavailable` | ||||||
| : Privileges to list and view details on existing repositories and snapshots. | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -647,6 +647,40 @@ private static Map<String, RoleDescriptor> initializeReservedRoles() { | |||||
| "Grants read access to the .watches index, the get watch action and the watcher stats." | ||||||
| ) | ||||||
| ), | ||||||
| entry( | ||||||
| "reindex_admin", | ||||||
| new RoleDescriptor( | ||||||
| "reindex_admin", | ||||||
| new String[] { "manage_reindex" }, | ||||||
| null, | ||||||
| null, | ||||||
| null, | ||||||
| null, | ||||||
| MetadataUtils.DEFAULT_RESERVED_METADATA, | ||||||
| null, | ||||||
| null, | ||||||
| null, | ||||||
| null, | ||||||
| "Allows users to manage reindex tasks, including getting, listing, cancelling, and rethrottling them." | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (update if you end up changing the ones at the top 🚀 ) |
||||||
| ) | ||||||
| ), | ||||||
| entry( | ||||||
| "reindex_user", | ||||||
| new RoleDescriptor( | ||||||
| "reindex_user", | ||||||
| new String[] { "monitor_reindex" }, | ||||||
| null, | ||||||
| null, | ||||||
| null, | ||||||
| null, | ||||||
| MetadataUtils.DEFAULT_RESERVED_METADATA, | ||||||
| null, | ||||||
| null, | ||||||
| null, | ||||||
| null, | ||||||
| "Allows users to monitor reindex tasks, including getting abd listing them." | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ) | ||||||
| ), | ||||||
| entry( | ||||||
| "logstash_admin", | ||||||
| new RoleDescriptor( | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(assuming going off of surround references leads me to correctness...)