-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Lazy rollover causes writes to fail if writer lacks manage
index privilege
#104732
Comments
Pinging @elastic/es-data-management (Team:Data Management) |
Hello @elastic/es-data-management - would we be able to get a sense for the level of priority on this ask? Is this likely to land in 8.13 or 8.14? We'd like to determine when we can un-revert elastic/kibana#174790 to make Fleet's rollover process lazy. This will greatly improve Fleet's stability when it comes to integration upgrades, so we're eager to get that change in, but it's blocked by this issue on the ES side. Thanks for taking a look! |
Hey @kpollich we'll be doing this for |
The unconditional rollover that is a consequence of a lazy rollover command is triggered by the creation of a document. In many cases, the user triggering this rollover won't have sufficient privileges to ensure the successful execution of this rollover. For this reason, we introduce a dedicated rollover action and a dedicated internal user to cover this case and enable this functionality.
## Summary Add back changes in #174790 after elastic/elasticsearch#104732 is fixed Resolve #174480 Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
## Summary Add back changes in elastic#174790 after elastic/elasticsearch#104732 is fixed Resolve elastic#174480 Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
## Summary Add back changes in elastic#174790 after elastic/elasticsearch#104732 is fixed Resolve elastic#174480 Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Elasticsearch Version
8.13.0-SNAPSHOT
Installed Plugins
No response
Java Version
bundled
OS Version
N/A
Problem Description
After a lazy rollover, document writes will start failing if the writer lacks index management privileges. This means that lazy rollover is not transparent to writers, and requires additional privileges of writers when compared to synchronous rollover.
Steps to Reproduce
Logs (if relevant)
{"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:admin/rollover] is unauthorized for API key id [pdmdP40BivS0Pj5zQ7AE] of user [admin] on indices [logs-rollover-bug], this action is granted by the index privileges [manage_follow_index,manage,all]"}],"type":"security_exception","reason":"action [indices:admin/rollover] is unauthorized for API key id [pdmdP40BivS0Pj5zQ7AE] of user [admin] on indices [logs-rollover-bug], this action is granted by the index privileges [manage_follow_index,manage,all]"},"status":403}
The text was updated successfully, but these errors were encountered: