Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.13] fix(platform-security): allow customizing sub-feature privileg…
…es with `all spaces` requirement (#178239) (#178644) # Backport This will backport the following commits from `main` to `8.13`: - [fix(platform-security): allow customizing sub-feature privileges with `all spaces` requirement (#178239)](#178239) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Aleh Zasypkin","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-03-13T15:29:54Z","message":"fix(platform-security): allow customizing sub-feature privileges with `all spaces` requirement (#178239)\n\n## Summary\r\n\r\nAllow customizing sub-feature privileges with `all spaces` requirement.\r\nSee #178006 (comment) for\r\nmore details about what was broken.\r\n\r\n## To do\r\n\r\n- [x] Fix bug and update existing tests\r\n- [x] Add more tests with `all spaces` requirement\r\n\r\n__Reported in:__\r\nhttps://github.com//pull/178006#issue-2169314164\r\n\r\n## How to test\r\n\r\nAdd the following to your `kibana.dev.yml` and try to customize\r\nsub-feature privileges of the `Fleet` feature\r\n\r\n```yaml\r\nxpack.fleet.enableExperimental: ['subfeaturePrivileges']\r\n```\r\n\r\nBefore this PR, the `Customize sub-feature privileges` switch didn't\r\nwork.\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"acc94b3b512c7ba9d9c3223c941154ba416cc5a2","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:Security","Feature:Users/Roles/API Keys","release_note:skip","backport:all-open","v8.14.0"],"title":"fix(platform-security): allow customizing sub-feature privileges with `all spaces` requirement","number":178239,"url":"https://github.com/elastic/kibana/pull/178239","mergeCommit":{"message":"fix(platform-security): allow customizing sub-feature privileges with `all spaces` requirement (#178239)\n\n## Summary\r\n\r\nAllow customizing sub-feature privileges with `all spaces` requirement.\r\nSee #178006 (comment) for\r\nmore details about what was broken.\r\n\r\n## To do\r\n\r\n- [x] Fix bug and update existing tests\r\n- [x] Add more tests with `all spaces` requirement\r\n\r\n__Reported in:__\r\nhttps://github.com//pull/178006#issue-2169314164\r\n\r\n## How to test\r\n\r\nAdd the following to your `kibana.dev.yml` and try to customize\r\nsub-feature privileges of the `Fleet` feature\r\n\r\n```yaml\r\nxpack.fleet.enableExperimental: ['subfeaturePrivileges']\r\n```\r\n\r\nBefore this PR, the `Customize sub-feature privileges` switch didn't\r\nwork.\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"acc94b3b512c7ba9d9c3223c941154ba416cc5a2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/178239","number":178239,"mergeCommit":{"message":"fix(platform-security): allow customizing sub-feature privileges with `all spaces` requirement (#178239)\n\n## Summary\r\n\r\nAllow customizing sub-feature privileges with `all spaces` requirement.\r\nSee #178006 (comment) for\r\nmore details about what was broken.\r\n\r\n## To do\r\n\r\n- [x] Fix bug and update existing tests\r\n- [x] Add more tests with `all spaces` requirement\r\n\r\n__Reported in:__\r\nhttps://github.com//pull/178006#issue-2169314164\r\n\r\n## How to test\r\n\r\nAdd the following to your `kibana.dev.yml` and try to customize\r\nsub-feature privileges of the `Fleet` feature\r\n\r\n```yaml\r\nxpack.fleet.enableExperimental: ['subfeaturePrivileges']\r\n```\r\n\r\nBefore this PR, the `Customize sub-feature privileges` switch didn't\r\nwork.\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"acc94b3b512c7ba9d9c3223c941154ba416cc5a2"}}]}] BACKPORT--> Co-authored-by: Aleh Zasypkin <[email protected]>
- Loading branch information