Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.10] [RAM] Add missing privilege to alerting read operations (#166603…
…) (#167001) # Backport This will backport the following commits from `main` to `8.10`: - [[RAM] Add missing privilege to alerting read operations (#166603)](#166603) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Umberto Pepato","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-09-22T07:23:13Z","message":"[RAM] Add missing privilege to alerting read operations (#166603)\n\nCloses #158957\r\n\r\n## Summary\r\n\r\nAdds the missing `getActionErrorLog` privilege. With the updated\r\nprivileges, users with a custom Role including full access to \"Actions\r\nand Connectors\", \"Rule Settings\" and \"Stack Rules\" can successfully\r\ninspect errored actions' logs:\r\n\r\n![Errored actions\r\nlogs](https://github.com/elastic/kibana/assets/18363145/0d34f6a3-d586-4fe7-b987-a829de0d852d)\r\n\r\n## To Test\r\n\r\n- Create a Role with `All` privileges granted in `Actions and\r\nConnectors`, `Rules Settings`, `Stack Rules` (under Kibana > Management)\r\nand assign it to a user\r\n- Log in with that user\r\n- Create a rule with a failing action (i.e. an Email Connector with\r\nwrong addresses)\r\n- Wait for the rule to execute (or execute it manually)\r\n- In the rule page, under `History` click the number under `Errored\r\nactions` in one of the rows of the logs table\r\n- Check that error logs are visible in the flyout","sha":"0eda41a46da91ba3b4fd90a8478e1aecb03154f0","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:ResponseOps","v8.10.0","v8.11.0","v8.9.3"],"number":166603,"url":"https://github.com/elastic/kibana/pull/166603","mergeCommit":{"message":"[RAM] Add missing privilege to alerting read operations (#166603)\n\nCloses #158957\r\n\r\n## Summary\r\n\r\nAdds the missing `getActionErrorLog` privilege. With the updated\r\nprivileges, users with a custom Role including full access to \"Actions\r\nand Connectors\", \"Rule Settings\" and \"Stack Rules\" can successfully\r\ninspect errored actions' logs:\r\n\r\n![Errored actions\r\nlogs](https://github.com/elastic/kibana/assets/18363145/0d34f6a3-d586-4fe7-b987-a829de0d852d)\r\n\r\n## To Test\r\n\r\n- Create a Role with `All` privileges granted in `Actions and\r\nConnectors`, `Rules Settings`, `Stack Rules` (under Kibana > Management)\r\nand assign it to a user\r\n- Log in with that user\r\n- Create a rule with a failing action (i.e. an Email Connector with\r\nwrong addresses)\r\n- Wait for the rule to execute (or execute it manually)\r\n- In the rule page, under `History` click the number under `Errored\r\nactions` in one of the rows of the logs table\r\n- Check that error logs are visible in the flyout","sha":"0eda41a46da91ba3b4fd90a8478e1aecb03154f0"}},"sourceBranch":"main","suggestedTargetBranches":["8.10","8.9"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/166603","number":166603,"mergeCommit":{"message":"[RAM] Add missing privilege to alerting read operations (#166603)\n\nCloses #158957\r\n\r\n## Summary\r\n\r\nAdds the missing `getActionErrorLog` privilege. With the updated\r\nprivileges, users with a custom Role including full access to \"Actions\r\nand Connectors\", \"Rule Settings\" and \"Stack Rules\" can successfully\r\ninspect errored actions' logs:\r\n\r\n![Errored actions\r\nlogs](https://github.com/elastic/kibana/assets/18363145/0d34f6a3-d586-4fe7-b987-a829de0d852d)\r\n\r\n## To Test\r\n\r\n- Create a Role with `All` privileges granted in `Actions and\r\nConnectors`, `Rules Settings`, `Stack Rules` (under Kibana > Management)\r\nand assign it to a user\r\n- Log in with that user\r\n- Create a rule with a failing action (i.e. an Email Connector with\r\nwrong addresses)\r\n- Wait for the rule to execute (or execute it manually)\r\n- In the rule page, under `History` click the number under `Errored\r\nactions` in one of the rows of the logs table\r\n- Check that error logs are visible in the flyout","sha":"0eda41a46da91ba3b4fd90a8478e1aecb03154f0"}},{"branch":"8.9","label":"v8.9.3","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Umberto Pepato <[email protected]>
- Loading branch information