Skip to content

Commit

Permalink
update permissions according to backend (#1480) (#1484)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
(cherry picked from commit 8dab6a3)

Co-authored-by: Derek Ho <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and derek-ho authored Jun 22, 2023
1 parent b784657 commit a3b0761
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions public/apps/configuration/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,25 @@ export const CLUSTER_PERMISSIONS: string[] = [
'restapi:admin/ssl/certs/info',
'restapi:admin/ssl/certs/reload',
'restapi:admin/tenants',
'indices:admin/template/delete',
'indices:admin/template/get',
'indices:admin/template/put',
'indices:admin/index_template/delete',
'indices:admin/index_template/get',
'indices:admin/index_template/put',
'indices:admin/index_template/simulate',
'indices:admin/index_template/simulate_index',
'indices:data/read/scroll',
'indices:data/read/scroll/clear',
'indices:data/write/bulk',
'indices:data/write/bulk*',
'indices:data/read/mget',
'indices:data/read/mget*',
'indices:data/read/msearch',
'indices:data/read/msearch/template',
'indices:data/read/mtv',
'indices:data/read/mtv*',
'indices:data/write/reindex',
];

export function includeClusterPermissions(clusterPermissionsToInclude: string[]) {
Expand Down Expand Up @@ -241,11 +260,6 @@ export const INDEX_PERMISSIONS: string[] = [
'indices:admin/flush*',
'indices:admin/forcemerge',
'indices:admin/get',
'indices:admin/index_template/delete',
'indices:admin/index_template/get',
'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',
Expand All @@ -265,37 +279,23 @@ export const INDEX_PERMISSIONS: string[] = [
'indices:admin/shards/search_shards',
'indices:admin/shrink',
'indices:admin/synced_flush',
'indices:admin/template/delete',
'indices:admin/template/get',
'indices:admin/template/put',
'indices:admin/types/exists',
'indices:admin/upgrade',
'indices:admin/validate/query',
'indices:data/read/explain',
'indices:data/read/field_caps',
'indices:data/read/field_caps*',
'indices:data/read/get',
'indices:data/read/mget',
'indices:data/read/mget*',
'indices:data/read/msearch',
'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',
'indices:data/read/search*',
'indices:data/read/search/template',
'indices:data/read/tv',
'indices:data/write/bulk',
'indices:data/write/bulk*',
'indices:data/write/delete',
'indices:data/write/delete/byquery',
'indices:data/write/index',
'indices:data/write/reindex',
'indices:data/write/update',
'indices:data/write/update/byquery',
'indices:monitor/data_stream/stats',
Expand Down

0 comments on commit a3b0761

Please sign in to comment.