OpenSearch Fine-Grained Access Control Permissions
When OpenMetadata runs against a security-enabled OpenSearch cluster — for example, Amazon OpenSearch Service with fine-grained access control (FGAC), or a self-managed cluster with the security plugin — the OpenMetadata server role does not need admin-level access. This page lists the minimal set of index patterns and cluster permissions the server backend requires.Scope: OpenMetadata 2.0.x, OpenSearch backend only. The Elasticsearch backend
is not covered here. This list was compiled by auditing the search-client source
code of the 2.0.5 release. Permission requirements can change between releases —
validate in a non-production environment before applying least-privilege roles in
production.
How OpenMetadata uses OpenSearch
The server backend writes to two kinds of targets, both namespaced by theclusterAlias setting (default: openmetadata):
- Entity indexes and aliases — one index per entity type, named
<clusterAlias>_<entityType>(for exampleopenmetadata_table_search_index). - Data Insights data streams —
<clusterAlias>-di-data-assets-<entityType>(for exampleopenmetadata-di-data-assets-table).
Index patterns
Grant index-level permissions on these patterns (replace<prefix> with your
clusterAlias):
On 2.x the Data Insights lifecycle (rollover) runs application-side, so the
.ds-<prefix>-di-* backing-index pattern required by 1.x ISM policies is no
longer needed for fresh 2.x deployments. If you are migrating from 1.x, keep it
until the migration cleanup has removed the old ISM policies.Cluster permissions
Index-level operations
All operations run against the index patterns above and need no extra cluster privilege: index creation, search, multi-get, document get/index/update/delete, bulk, delete-by-query, update-by-query, reindex, force merge, index settings and mapping updates, alias management, and data-stream create/delete/get/rollover.Example security role
Below is a ready-to-use OpenSearch security-plugin role for a 2.0.x deployment withclusterAlias: openmetadata. Adjust the prefix to match your configuration.
Permission changes across releases
Releases sometimes add OpenSearch calls that require new permissions. Notable changes:- 1.6.6 — Data Insights data streams, templates and the ISM policy started
using the
clusterAliasprefix (<prefix>-di-data-assets-*). Roles scoped to an unprefixed pattern break in either upgrade direction. - 1.13.x — Added reindex, force merge, index settings updates and search pipelines for hybrid search, expanding the required surface versus 1.6.x.
- 2.0.x — ISM policy management removed (lifecycle is now application-side
rollover); the named hybrid-search pipeline became best-effort, so
cluster:admin/search/pipeline/*is optional.