-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[index management] Better privilege checking for component index templates #202251
Conversation
…/kibana into enrich_policy_mgmt_better_privs
Pinging @elastic/kibana-management (Team:Kibana Management) |
/ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mattkime, I tested locally (followed the instructions from #178654 to create a test user) and it looks like a user with monitor
cluster privileges can view index templates but cannot view component templates. Is this the expected behavior? I thought we would expect to see both index templates and component templates.

@ElenaStoeva That's expected as I haven't yet addressed the Index Templates tab. I'm going one tab at a time. Also, sometimes the privilege model doesn't make sense in some ways. I need to write something up for the ES team. More specifically, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarifying @mattkime! I had the incorrect understanding that with monitor
privileges we should be able to see the component templates list (but not edit/add templates). Anyway, knowing that we can only view them with manage_index_templates
privilege, it works as expected. Changes also lgtm.
/ci |
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12395697943 |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
cc @mattkime |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…lates (elastic#202251) ## Summary Builds on elastic#201717 Part of elastic#178654 `manage_index_templates` cluster privilege determines access to component index templates tab within index management. (cherry picked from commit 1756918) # Conflicts: # x-pack/platform/plugins/private/translations/translations/zh-CN.json
…x templates (#202251) (#204778) # Backport This will backport the following commits from `main` to `8.x`: - [[index management] Better privilege checking for component index templates (#202251)](#202251) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Matthew Kime","email":"matt@mattki.me"},"sourceCommit":{"committedDate":"2024-12-18T15:05:22Z","message":"[index management] Better privilege checking for component index templates (#202251)\n\n## Summary\r\n\r\nBuilds on https://github.com/elastic/kibana/pull/201717\r\n\r\nPart of https://github.com/elastic/kibana/issues/178654\r\n\r\n`manage_index_templates` cluster privilege determines access to\r\ncomponent index templates tab within index management.","sha":"17569187b6992252eff68a7ba408dd8b88fd883d","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Index Management","Team:Kibana Management","v9.0.0","backport:prev-minor"],"number":202251,"url":"https://github.com/elastic/kibana/pull/202251","mergeCommit":{"message":"[index management] Better privilege checking for component index templates (#202251)\n\n## Summary\r\n\r\nBuilds on https://github.com/elastic/kibana/pull/201717\r\n\r\nPart of https://github.com/elastic/kibana/issues/178654\r\n\r\n`manage_index_templates` cluster privilege determines access to\r\ncomponent index templates tab within index management.","sha":"17569187b6992252eff68a7ba408dd8b88fd883d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202251","number":202251,"mergeCommit":{"message":"[index management] Better privilege checking for component index templates (#202251)\n\n## Summary\r\n\r\nBuilds on https://github.com/elastic/kibana/pull/201717\r\n\r\nPart of https://github.com/elastic/kibana/issues/178654\r\n\r\n`manage_index_templates` cluster privilege determines access to\r\ncomponent index templates tab within index management.","sha":"17569187b6992252eff68a7ba408dd8b88fd883d"}}]}] BACKPORT-->
…lates (elastic#202251) ## Summary Builds on elastic#201717 Part of elastic#178654 `manage_index_templates` cluster privilege determines access to component index templates tab within index management.
…lates (elastic#202251) ## Summary Builds on elastic#201717 Part of elastic#178654 `manage_index_templates` cluster privilege determines access to component index templates tab within index management.
…lates (elastic#202251) ## Summary Builds on elastic#201717 Part of elastic#178654 `manage_index_templates` cluster privilege determines access to component index templates tab within index management.
…lates (elastic#202251) ## Summary Builds on elastic#201717 Part of elastic#178654 `manage_index_templates` cluster privilege determines access to component index templates tab within index management.
Summary
Builds on #201717
Part of #178654
manage_index_templates
cluster privilege determines access to component index templates tab within index management.