diff --git a/x-pack/plugins/observability_solution/slo/public/components/slo/slo_permissions_callout/index.tsx b/x-pack/plugins/observability_solution/slo/public/components/slo/slo_permissions_callout/index.tsx
index 720f31ccea3fa..ec21537b1d19e 100644
--- a/x-pack/plugins/observability_solution/slo/public/components/slo/slo_permissions_callout/index.tsx
+++ b/x-pack/plugins/observability_solution/slo/public/components/slo/slo_permissions_callout/index.tsx
@@ -46,7 +46,7 @@ export function SloPermissionsCallout() {
@@ -62,7 +62,7 @@ export function SloPermissionsCallout() {
diff --git a/x-pack/plugins/observability_solution/slo/server/services/get_diagnosis.ts b/x-pack/plugins/observability_solution/slo/server/services/get_diagnosis.ts
index 499c758dc00d7..a7a2f3a24c96c 100644
--- a/x-pack/plugins/observability_solution/slo/server/services/get_diagnosis.ts
+++ b/x-pack/plugins/observability_solution/slo/server/services/get_diagnosis.ts
@@ -34,13 +34,13 @@ export async function getGlobalDiagnosis(
const userWritePrivileges = await esClient.security.hasPrivileges({
index: [
{
- names: '.slo-*',
+ names: '.slo-observability.*',
privileges: MINIMUM_INDEX_PRIVILEGE_SET_EDITOR,
},
],
});
const userReadPrivileges = await esClient.security.hasPrivileges({
- index: [{ names: '.slo-*', privileges: MINIMUM_INDEX_PRIVILEGE_SET_VIEWER }],
+ index: [{ names: '.slo-observability.*', privileges: MINIMUM_INDEX_PRIVILEGE_SET_VIEWER }],
});
return {
diff --git a/x-pack/test/api_integration/services/slo.ts b/x-pack/test/api_integration/services/slo.ts
index 953e4234a7bc9..d0d6cdc190e0e 100644
--- a/x-pack/test/api_integration/services/slo.ts
+++ b/x-pack/test/api_integration/services/slo.ts
@@ -44,7 +44,7 @@ export function SloApiProvider({ getService }: FtrProviderContext) {
elasticsearch: {
indices: [
{
- names: ['.slo-*'],
+ names: ['.slo-observability.*'],
privileges: TOTAL_INDEX_PRIVILEGE_SET_EDITOR,
},
],
diff --git a/x-pack/test_serverless/api_integration/services/transform/security_common.ts b/x-pack/test_serverless/api_integration/services/transform/security_common.ts
index c112ef7572509..d94dba0ee190c 100644
--- a/x-pack/test_serverless/api_integration/services/transform/security_common.ts
+++ b/x-pack/test_serverless/api_integration/services/transform/security_common.ts
@@ -8,6 +8,10 @@
import { ProvidedType } from '@kbn/test';
import { Client } from '@elastic/elasticsearch';
+import {
+ TOTAL_INDEX_PRIVILEGE_SET_EDITOR,
+ TOTAL_INDEX_PRIVILEGE_SET_VIEWER,
+} from '@kbn/slo-plugin/server/services/get_diagnosis';
import { FtrProviderContext } from '../../ftr_provider_context';
export type TransformSecurityCommon = ProvidedType;
@@ -33,14 +37,18 @@ export function TransformSecurityCommonProvider({ getService }: FtrProviderConte
{
name: 'transform_dest',
elasticsearch: {
- indices: [{ names: ['.slo-*'], privileges: ['read', 'index', 'manage', 'delete'] }],
+ indices: [
+ { names: ['.slo-observability.*'], privileges: TOTAL_INDEX_PRIVILEGE_SET_EDITOR },
+ ],
},
kibana: [],
},
{
name: 'transform_dest_readonly',
elasticsearch: {
- indices: [{ names: ['.slo-*'], privileges: ['read'] }],
+ indices: [
+ { names: ['.slo-observability.*'], privileges: TOTAL_INDEX_PRIVILEGE_SET_VIEWER },
+ ],
},
kibana: [],
},