From 3b2585590c992824366055999a40ac6ca1ca0336 Mon Sep 17 00:00:00 2001 From: Yara Tercero Date: Mon, 17 May 2021 12:55:16 -0700 Subject: [PATCH] update client to pull kibana.rac.alert.id not kibana.rac.alert.uuid --- .../rule_registry/server/alert_data_client/alert_client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/rule_registry/server/alert_data_client/alert_client.ts b/x-pack/plugins/rule_registry/server/alert_data_client/alert_client.ts index a72702cfe2c90a..07a0440679cde8 100644 --- a/x-pack/plugins/rule_registry/server/alert_data_client/alert_client.ts +++ b/x-pack/plugins/rule_registry/server/alert_data_client/alert_client.ts @@ -122,7 +122,7 @@ export class AlertsClient { try { // use security plugin routes to check what URIs user is authorized to await this.authorization.ensureAuthorized({ - ruleTypeId: hits['kibana.rac.alert.uuid'], + ruleTypeId: hits['kibana.rac.alert.id'], consumer: hits['kibana.rac.producer'], operation: ReadOperations.Get, entity: AlertingAuthorizationEntity.Alert, @@ -186,7 +186,7 @@ export class AlertsClient { // ASSUMPTION: user bulk updating alerts from single owner/space // may need to iterate to support rules shared across spaces await this.authorization.ensureAuthorized({ - ruleTypeId: hits['kibana.rac.alert.uuid'], + ruleTypeId: hits['kibana.rac.alert.id'], consumer: hits['kibana.rac.producer'], operation: WriteOperations.Update, entity: AlertingAuthorizationEntity.Alert,