-
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
[Fleet] added privileges to write metrics-fleet_server*
#100574
Conversation
Pinging @elastic/es-core-infra (Team:Core/Infra) |
@@ -193,6 +193,8 @@ static RoleDescriptor kibanaSystem(String name) { | |||
.build(), | |||
// Fleet telemetry queries Agent Logs indices in kibana task runner | |||
RoleDescriptor.IndicesPrivileges.builder().indices("logs-elastic_agent*").privileges("read").build(), | |||
// Fleet publishes Agent metrics in kibana task runner | |||
RoleDescriptor.IndicesPrivileges.builder().indices("metrics-fleet_server*").privileges("auto_configure", "write").build(), |
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.
write
to allow creating documents
auto_configure
to allow creation of index when creating documents if doesn't exist
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; metrics-*-*
are part of Fleet's data indexes for which kibana_system
should be allowed elevated privileges and this pattern is appropriately listed in the docs as a potential collision pattern.
gradle check
? yesRequired for elastic/kibana#168435 to allow kibana task to write agent metrics to
metrics-fleet_server*
data streams that will be installed by fleet-server integration.