diff --git a/public/apps/configuration/constants.tsx b/public/apps/configuration/constants.tsx index 0a61c151e..1c19dda6b 100644 --- a/public/apps/configuration/constants.tsx +++ b/public/apps/configuration/constants.tsx @@ -30,11 +30,27 @@ export const API_ENDPOINT_PERMISSIONS_INFO = API_PREFIX + '/restapiinfo'; export const API_ENDPOINT_CACHE = API_ENDPOINT + '/cache'; export const CLUSTER_PERMISSIONS: string[] = [ + 'cluster:admin/component_template/delete', + 'cluster:admin/component_template/get', + 'cluster:admin/component_template/put', + 'cluster:admin/decommission/awareness/delete', + 'cluster:admin/decommission/awareness/get', + 'cluster:admin/decommission/awareness/put', + 'cluster:admin/indices/dangling/delete', + 'cluster:admin/indices/dangling/find', + 'cluster:admin/indices/dangling/import', + 'cluster:admin/indices/dangling/list', 'cluster:admin/ingest/pipeline/delete', 'cluster:admin/ingest/pipeline/get', 'cluster:admin/ingest/pipeline/put', 'cluster:admin/ingest/pipeline/simulate', 'cluster:admin/ingest/processor/grok/get', + 'cluster:admin/nodes/reload_secure_settings', + 'cluster:admin/persistent/completion', + 'cluster:admin/persistent/remove', + 'cluster:admin/persistent/start', + 'cluster:admin/persistent/update_status', + 'cluster:admin/remotestore/restore', 'cluster:admin/opendistro/ad/detector/delete', 'cluster:admin/opendistro/ad/detector/info', 'cluster:admin/opendistro/ad/detector/jobmanagement', @@ -137,16 +153,23 @@ export const CLUSTER_PERMISSIONS: string[] = [ 'cluster:admin/opensearch/observability/get', 'cluster:admin/opensearch/observability/update', 'cluster:admin/reindex/rethrottle', + 'cluster:admin/repository/_cleanup', 'cluster:admin/repository/delete', 'cluster:admin/repository/get', 'cluster:admin/repository/put', 'cluster:admin/repository/verify', 'cluster:admin/reroute', + 'cluster:admin/routing/awareness/weights/delete', + 'cluster:admin/routing/awareness/weights/get', + 'cluster:admin/routing/awareness/weights/put', 'cluster:admin/script/delete', 'cluster:admin/script/get', 'cluster:admin/script/put', + 'cluster:admin/script_context/get', + 'cluster:admin/script_language/get', 'cluster:admin/settings/update', 'cluster:admin/snapshot/create', + 'cluster:admin/snapshot/clone', 'cluster:admin/snapshot/delete', 'cluster:admin/snapshot/get', 'cluster:admin/snapshot/restore', @@ -155,6 +178,8 @@ export const CLUSTER_PERMISSIONS: string[] = [ 'cluster:admin/tasks/cancel', 'cluster:admin/tasks/test', 'cluster:admin/tasks/testunblock', + 'cluster:admin/voting_config/add_exclusions', + 'cluster:admin/voting_config/clear_exclusions', 'cluster:monitor/allocation/explain', 'cluster:monitor/health', 'cluster:monitor/main', @@ -169,6 +194,7 @@ export const CLUSTER_PERMISSIONS: string[] = [ 'cluster:monitor/task', 'cluster:monitor/task/get', 'cluster:monitor/tasks/list', + 'cluster:monitor/tasks/list*', ]; export function includeClusterPermissions(clusterPermissionsToInclude: string[]) { @@ -182,6 +208,8 @@ export const INDEX_PERMISSIONS: string[] = [ 'indices:admin/aliases/exists', 'indices:admin/aliases/get', 'indices:admin/analyze', + 'indices:admin/auto_create', + 'indices:admin/block/add', 'indices:admin/cache/clear', 'indices:admin/close', 'indices:admin/create', @@ -199,6 +227,7 @@ export const INDEX_PERMISSIONS: string[] = [ 'indices:admin/index_template/put', 'indices:admin/index_template/simulate', 'indices:admin/index_template/simulate_index', + 'indices:admin/mapping/auto_put', 'indices:admin/mapping/put', 'indices:admin/mappings/fields/get', 'indices:admin/mappings/fields/get*', @@ -206,9 +235,13 @@ export const INDEX_PERMISSIONS: string[] = [ 'indices:admin/open', 'indices:admin/refresh', 'indices:admin/refresh*', + 'indices:admin/resize', 'indices:admin/resolve/index', 'indices:admin/rollover', 'indices:admin/seq_no/global_checkpoint_sync', + 'indices:admin/seq_no/add_retention_lease', + 'indices:admin/seq_no/remove_retention_lease', + 'indices:admin/seq_no/renew_retention_lease', 'indices:admin/settings/update', 'indices:admin/shards/search_shards', 'indices:admin/shrink', @@ -229,6 +262,9 @@ export const INDEX_PERMISSIONS: string[] = [ 'indices:data/read/msearch/template', 'indices:data/read/mtv', 'indices:data/read/mtv*', + 'indices:data/read/point_in_time/create', + 'indices:data/read/point_in_time/delete', + 'indices:data/read/point_in_time/readall', 'indices:data/read/scroll', 'indices:data/read/scroll/clear', 'indices:data/read/search', @@ -244,6 +280,7 @@ export const INDEX_PERMISSIONS: string[] = [ 'indices:data/write/update', 'indices:data/write/update/byquery', 'indices:monitor/data_stream/stats', + 'indices:monitor/point_in_time/segments', 'indices:monitor/recovery', 'indices:monitor/segments', 'indices:monitor/settings/get',