Skip to content

Commit 4d0a814

Browse files
Update index mapping update privileges (#130894)
1 parent 14ade95 commit 4d0a814

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

docs/reference/elasticsearch/security-privileges.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -283,22 +283,20 @@ This section lists the privileges that you can assign to a role.
283283
`create`
284284
: Privilege to index documents.
285285

286-
:::{admonition} Deprecated in 8.0
287-
Also grants the permission to update the index mapping (but not the data streams mapping), using the [updating mapping API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-mapping) or by relying on [dynamic field mapping](docs-content://manage-data/data-store/mapping/dynamic-mapping.md). In a future major release, this privilege will not grant any mapping update permissions.
288-
:::
289-
290286
::::{note}
291287
This privilege does not restrict the index operation to the creation of documents but instead restricts API use to the index API. The index API allows a user to overwrite a previously indexed document. See the `create_doc` privilege for an alternative.
292288
::::
293289

290+
:::{important}
291+
Starting from 8.0, this privilege no longer grants the permission to update index mappings.
292+
In earlier versions, it implicitly permitted index mapping updates (excluding data stream mappings) via the [updating mapping API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-mapping) or through [dynamic field mapping](docs-content://manage-data/data-store/mapping/dynamic-mapping.md).
293+
Mapping update capabilities will be fully removed in a future major release.
294+
:::
295+
294296

295297
`create_doc`
296298
: Privilege to index documents. It does not grant the permission to update or overwrite existing documents.
297299

298-
:::{admonition} Deprecated in 8.0
299-
Also grants the permission to update the index mapping (but not the data streams mapping), using the [updating mapping API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-mapping) or by relying on [dynamic field mapping](docs-content://manage-data/data-store/mapping/dynamic-mapping.md). In a future major release, this privilege will not grant any mapping update permissions.
300-
:::
301-
302300
::::{note}
303301
This privilege relies on the `op_type` of indexing requests ([Index](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create) and [Bulk](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk)). When ingesting documents as a user who has the `create_doc` privilege (and no higher privilege such as `index` or `write`), you must ensure that *op_type* is set to *create* through one of the following:
304302

@@ -308,6 +306,12 @@ This section lists the privileges that you can assign to a role.
308306

309307
::::
310308

309+
:::{important}
310+
Starting from 8.0, this privilege no longer grants the permission to update index mappings.
311+
In earlier versions, it implicitly permitted index mapping updates (excluding data stream mappings) via the [updating mapping API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-mapping) or through [dynamic field mapping](docs-content://manage-data/data-store/mapping/dynamic-mapping.md).
312+
Mapping update capabilities will be fully removed in a future major release.
313+
:::
314+
311315

312316
`create_index`
313317
: Privilege to create an index or data stream. A create index request may contain aliases to be added to the index once created. In that case the request requires the `manage` privilege as well, on both the index and the aliases names.
@@ -337,8 +341,10 @@ This section lists the privileges that you can assign to a role.
337341
`index`
338342
: Privilege to index and update documents.
339343

340-
:::{admonition} Deprecated in 8.0
341-
Also grants the permission to update the index mapping (but not the data streams mapping), using the [updating mapping API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-mapping) or by relying on [dynamic field mapping](docs-content://manage-data/data-store/mapping/dynamic-mapping.md). In a future major release, this privilege will not grant any mapping update permissions.
344+
:::{important}
345+
Starting from 8.0, this privilege no longer grants the permission to update index mappings.
346+
In earlier versions, it implicitly permitted index mapping updates (excluding data stream mappings) via the [updating mapping API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-mapping) or through [dynamic field mapping](docs-content://manage-data/data-store/mapping/dynamic-mapping.md).
347+
Mapping update capabilities will be fully removed in a future major release.
342348
:::
343349

344350
`maintenance`
@@ -386,8 +392,10 @@ This section lists the privileges that you can assign to a role.
386392
`write`
387393
: Privilege to perform all write operations to documents, which includes the permission to index, update, and delete documents as well as performing bulk operations, while also allowing to dynamically update the index mapping.
388394

389-
:::{admonition} Deprecated in 8.0
390-
It also grants the permission to update the index mapping (but not the data streams mapping), using the [updating mapping API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-mapping). This will be retracted in a future major release.
395+
:::{important}
396+
Starting from 8.0, this privilege no longer grants the permission to update index mappings.
397+
In earlier versions, it implicitly permitted index mapping updates (excluding data stream mappings) via the [updating mapping API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-mapping) or through [dynamic field mapping](docs-content://manage-data/data-store/mapping/dynamic-mapping.md).
398+
Mapping update capabilities will be fully removed in a future major release.
391399
:::
392400

393401
## Run as privilege [_run_as_privilege]

0 commit comments

Comments
 (0)