-
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
Add view_index_metadata over metricbeat-* for monitoring agent #63750
Add view_index_metadata over metricbeat-* for monitoring agent #63750
Conversation
Pinging @elastic/es-security (:Security/Authorization) |
assertThat(remoteMonitoringAgentRole.runAs().check(randomAlphaOfLengthBetween(1, 12)), is(false)); | ||
|
||
assertThat(remoteMonitoringAgentRole.indices().allowedIndicesMatcher(RecoveryAction.NAME) | ||
Role remoteMonitoringCollectorRole = Role.builder(roleDescriptor, null).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.
Why did you change it ti remoteMonitoringCollectorRole while the changes are added to remote_monitoring_agent?
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.
It's mainly a rename see: c89d0e9 .
Besides the rename, because the roles are similar sounding but different in scopee I've tested that only one of them grants the desired privileges.
LGTM |
Thank you @BigPandaToo ! |
The `remote_monitoring_agent` reserved role is extended to grant more privileges over the metricbeat-* index pattern. In addition to the index and create_index index privileges that it granted already, it now also grants the view_index_metadata privilege. Closes #63203
The `remote_monitoring_agent` reserved role is extended to grant more privileges over the metricbeat-* index pattern. In addition to the index and create_index index privileges that it granted already, it now also grants the view_index_metadata privilege. Closes #63203
It will be in 7.10 BC3. |
The
remote_monitoring_agent
reserved role is extended to grant more privileges over themetricbeat-*
index pattern.In addition to the
index
andcreate_index
index privileges that it granted already, it now also grants theview_index_metadata
privilege.See #63203 for more details.
The
remote_monitoring_collector
role has not been changed.Reviewers might prefer to look at the ef1eb01 commit for the diff, as the other commit c89d0e9 is a rename that clutters a bit the diff of the whole PR.
Closes #63203