-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[ML] Give the kibana user read/write access to reindexed hidden ml indices #121897
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
[ML] Give the kibana user read/write access to reindexed hidden ml indices #121897
Conversation
|
Pinging @elastic/ml-core (Team:ML) |
|
Thank you for the detailed explanation! I think there are 2 typos in the description where you refer to It's a nit for sure, but we often refer back to these PRs, so this clarification might be important! |
kc13greiner
left a comment
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.
LGTM!
Please see my comment about updating the PR description
| .build(), | ||
| // And the reindex indices from v7 | ||
| RoleDescriptor.IndicesPrivileges.builder() | ||
| .indices(".reindexed-v8-ml-annotations*", ".reindexed-v8-ml-notifications*") |
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 again for the detailed PR summary!
While we generally do not want the kibana_system user having write access to system indices, an exception can be made for these specific index patterns since they are reindexes of indices for which kibana_system has existing privileges
...va/org/elasticsearch/xpack/core/security/authz/store/KibanaOwnedReservedRoleDescriptors.java
Outdated
Show resolved
Hide resolved
…security/authz/store/KibanaOwnedReservedRoleDescriptors.java
…dices (elastic#121897) Indices are reindexed on upgrade. Adds an index pattern to the role descriptor matching the upgraded indices
…dices (elastic#121897) Indices are reindexed on upgrade. Adds an index pattern to the role descriptor matching the upgraded indices
…dices (elastic#121897) Indices are reindexed on upgrade. Adds an index pattern to the role descriptor matching the upgraded indices
The
.ml-annotations-*and.ml-notifications-*indices are accessed directly by the UI via the Kibana System user. The Kibana system user needs permission to read and write to those indices which is granted inKibanaOwnedReservedRoleDescriptors.The upgrade assistant in 8.18 will automatically reindex the legacy v7
.ml-annotations-*and.ml-notifications-*indices, once reindexed the original content is in a new index of the same name prefixed with.reindexed-v8-and the source indices are deleted. This breaks certain actions in the UI as it does not have permission to write to the new.reindexed-v8-ml-XXX-*indices.This PR adds read & write permission for the reindexed indices to the Kibana role. Non issue as fixing a bug in unreleased code
Closes elastic/kibana#209801