Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [ResponseOps][Alerting] Fix stackAlerts plugin missing rac API …
…auth scope (#193948) (#195279) # Backport This will backport the following commits from `main` to `8.x`: - [[ResponseOps][Alerting] Fix stackAlerts plugin missing rac API auth scope (#193948)](#193948) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Umberto Pepato","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-07T15:17:31Z","message":"[ResponseOps][Alerting] Fix stackAlerts plugin missing rac API auth scope (#193948)\n\n## Summary\r\n\r\nAdds the `['rac']` API access scope to the Stack Alerts feature to\r\ncorrectly authenticate alerts API endpoints with the `stackAlerts`\r\npermission.\r\nAlso adds a dedicated API integration test for the impacted endpoint and\r\npermission set.\r\n\r\n## Release note\r\n\r\nFix Stack Alerts feature API access control\r\n\r\n## To verify\r\n\r\n1. Create rules that fire alerts in Stack management\r\n2. Wait for alerts to be created\r\n3. Create a role with only `Stack Management > Rules : Read` privilege\r\n4. Create a user with that role\r\n5. In another window, open Kibana with the newly created user\r\n6. Check that the Stack Management > Alerts page renders correctly, not\r\nshowing any missing 403 error toasts","sha":"17fcaa5c8eb6cdff5f89a2fa28a20f42d020381f","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:ResponseOps","v9.0.0","backport:prev-minor"],"title":"[ResponseOps][Alerting] Fix stackAlerts plugin missing rac API auth scope","number":193948,"url":"https://github.com/elastic/kibana/pull/193948","mergeCommit":{"message":"[ResponseOps][Alerting] Fix stackAlerts plugin missing rac API auth scope (#193948)\n\n## Summary\r\n\r\nAdds the `['rac']` API access scope to the Stack Alerts feature to\r\ncorrectly authenticate alerts API endpoints with the `stackAlerts`\r\npermission.\r\nAlso adds a dedicated API integration test for the impacted endpoint and\r\npermission set.\r\n\r\n## Release note\r\n\r\nFix Stack Alerts feature API access control\r\n\r\n## To verify\r\n\r\n1. Create rules that fire alerts in Stack management\r\n2. Wait for alerts to be created\r\n3. Create a role with only `Stack Management > Rules : Read` privilege\r\n4. Create a user with that role\r\n5. In another window, open Kibana with the newly created user\r\n6. Check that the Stack Management > Alerts page renders correctly, not\r\nshowing any missing 403 error toasts","sha":"17fcaa5c8eb6cdff5f89a2fa28a20f42d020381f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193948","number":193948,"mergeCommit":{"message":"[ResponseOps][Alerting] Fix stackAlerts plugin missing rac API auth scope (#193948)\n\n## Summary\r\n\r\nAdds the `['rac']` API access scope to the Stack Alerts feature to\r\ncorrectly authenticate alerts API endpoints with the `stackAlerts`\r\npermission.\r\nAlso adds a dedicated API integration test for the impacted endpoint and\r\npermission set.\r\n\r\n## Release note\r\n\r\nFix Stack Alerts feature API access control\r\n\r\n## To verify\r\n\r\n1. Create rules that fire alerts in Stack management\r\n2. Wait for alerts to be created\r\n3. Create a role with only `Stack Management > Rules : Read` privilege\r\n4. Create a user with that role\r\n5. In another window, open Kibana with the newly created user\r\n6. Check that the Stack Management > Alerts page renders correctly, not\r\nshowing any missing 403 error toasts","sha":"17fcaa5c8eb6cdff5f89a2fa28a20f42d020381f"}}]}] BACKPORT--> Co-authored-by: Umberto Pepato <[email protected]>
- Loading branch information