From 3e82a1afed455e7c29fa4ccbd71057f4f438b80c Mon Sep 17 00:00:00 2001 From: Larry Gregory Date: Fri, 26 Apr 2019 15:54:31 -0400 Subject: [PATCH] adds new API Key cluster privileges --- .../plugins/security/public/services/role_privileges.js | 3 +++ .../es/__snapshots__/cluster_privileges.test.tsx.snap | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/x-pack/plugins/security/public/services/role_privileges.js b/x-pack/plugins/security/public/services/role_privileges.js index 874bfa6e4d8f1..24e42a63589b0 100644 --- a/x-pack/plugins/security/public/services/role_privileges.js +++ b/x-pack/plugins/security/public/services/role_privileges.js @@ -9,6 +9,9 @@ const clusterPrivileges = [ 'monitor', 'manage', 'manage_security', + 'manage_api_key', + 'owner_manage_api_key', + 'create_api_key', 'manage_index_templates', 'manage_pipeline', 'manage_ingest_pipelines', diff --git a/x-pack/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap b/x-pack/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap index a19fd016e7db1..8681b3ee34c83 100644 --- a/x-pack/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap +++ b/x-pack/plugins/security/public/views/management/edit_role/components/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap @@ -25,6 +25,15 @@ exports[`it renders without crashing 1`] = ` Object { "label": "manage_security", }, + Object { + "label": "manage_api_key", + }, + Object { + "label": "owner_manage_api_key", + }, + Object { + "label": "create_api_key", + }, Object { "label": "manage_index_templates", },