Skip to content

Commit

Permalink
update client to pull kibana.rac.alert.id not kibana.rac.alert.uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed May 18, 2021
1 parent 60b7e10 commit 3b25855
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3b25855

Please sign in to comment.