From 3fdd042ee690eddbbe70ce44964f179736ad7529 Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Wed, 18 Jun 2025 12:44:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=8A=20Streams:=20Simplify=20onboarding?= =?UTF-8?q?=20(#224068)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wired streams are not available as a regular feature yet, but for internal testing we should make onboarding to them as simple as possible. However, when using the observability onboarding flows, the generated api keys to not grant permission to write to `logs,logs.*`. This PR extends the index patterns to do so. (cherry picked from commit 5da0e405caeed3d4633efe2f12dbbccf6018e063) --- .../observability_onboarding/server/lib/api_key/privileges.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/solutions/observability/plugins/observability_onboarding/server/lib/api_key/privileges.ts b/x-pack/solutions/observability/plugins/observability_onboarding/server/lib/api_key/privileges.ts index 8a28849ef1003..c3581fd590153 100644 --- a/x-pack/solutions/observability/plugins/observability_onboarding/server/lib/api_key/privileges.ts +++ b/x-pack/solutions/observability/plugins/observability_onboarding/server/lib/api_key/privileges.ts @@ -14,12 +14,12 @@ export const MONITOR_CLUSTER: estypes.SecurityClusterPrivilege = 'monitor'; // https://www.elastic.co/guide/en/fleet/master/grant-access-to-elasticsearch.html#create-api-key-standalone-agent export const INDEX_LOGS_AND_METRICS: estypes.SecurityIndicesPrivileges = { - names: ['logs-*-*', 'metrics-*-*'], + names: ['logs-*-*', 'logs', 'logs.*', 'metrics-*-*'], privileges: ['auto_configure', 'create_doc'], }; // https://www.elastic.co/guide/en/fleet/master/grant-access-to-elasticsearch.html#create-api-key-standalone-agent export const INDEX_LOGS_METRICS_AND_TRACES: estypes.SecurityIndicesPrivileges = { - names: ['logs-*-*', 'metrics-*-*', 'traces-*-*'], + names: ['logs-*-*', 'logs', 'logs.*', 'metrics-*-*', 'traces-*-*'], privileges: ['auto_configure', 'create_doc'], };