Skip to content

Commit

Permalink
Adds the newly created admin api permissions to the static dropdown l…
Browse files Browse the repository at this point in the history
…ist (opensearch-project#1426)

* Adds the newly created admin api permissions to the static dropdown of permissions displayed when creating/modifying a role

---------

Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Co-authored-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com>
  • Loading branch information
DarshitChanpura and RyanL1997 authored May 26, 2023
1 parent d0e05aa commit e6c63ff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions public/apps/configuration/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,15 @@ export const CLUSTER_PERMISSIONS: string[] = [
'cluster:monitor/task/get',
'cluster:monitor/tasks/list',
'cluster:monitor/tasks/list*',
'restapi:admin/actiongroups',
'restapi:admin/allowlist',
'restapi:admin/internalusers',
'restapi:admin/nodesdn',
'restapi:admin/roles',
'restapi:admin/rolesmapping',
'restapi:admin/ssl/certs/info',
'restapi:admin/ssl/certs/reload',
'restapi:admin/tenants',
];

export function includeClusterPermissions(clusterPermissionsToInclude: string[]) {
Expand Down

0 comments on commit e6c63ff

Please sign in to comment.