Skip to content

Commit 9368bbe

Browse files
Adds manage_inference cluster privilege to kibana_system role (#114051)
* Adds manage_inference cluster privilege to kibana_system role * Fix * this is what I get for not using a real IDE * Remove whitespace --------- Co-authored-by: Elastic Machine <[email protected]>
1 parent dcbbbab commit 9368bbe

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/KibanaOwnedReservedRoleDescriptors.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ static RoleDescriptor kibanaSystem(String name) {
6565
new String[] {
6666
"monitor",
6767
"manage_index_templates",
68+
// manage_inference required for Kibana's inference plugin to setup an ELSER endpoint.
69+
"manage_inference",
6870
MonitoringBulkAction.NAME,
6971
"manage_saml",
7072
"manage_token",

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,11 @@ public void testKibanaSystemRole() {
436436
assertThat(kibanaRole.cluster().check(ClusterUpdateSettingsAction.NAME, request, authentication), is(false));
437437
assertThat(kibanaRole.cluster().check(MonitoringBulkAction.NAME, request, authentication), is(true));
438438

439+
// Inference
440+
assertTrue(kibanaRole.cluster().check("cluster:admin/xpack/inference/get", request, authentication));
441+
assertTrue(kibanaRole.cluster().check("cluster:admin/xpack/inference/put", request, authentication));
442+
assertTrue(kibanaRole.cluster().check("cluster:admin/xpack/inference/delete", request, authentication));
443+
439444
// Enrich
440445
assertThat(kibanaRole.cluster().check("cluster:admin/xpack/enrich/put", request, authentication), is(true));
441446
assertThat(kibanaRole.cluster().check("cluster:admin/xpack/enrich/execute", request, authentication), is(true));

0 commit comments

Comments
 (0)