[Monitoring] Add ability for monitoring_user role to read from metricbeat-*#71233
[Monitoring] Add ability for monitoring_user role to read from metricbeat-*#71233neptunian merged 2 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/es-core-features (Team:Core/Features) |
|
Pinging @elastic/es-security (Team:Security) |
|
Changes LGTM from the monitoring side of things ... but let's let the security folks weigh in too. |
|
Looks like there is a checkstyle failure. You can see the exact problem and test the fix with |
|
In https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-metricbeat.html, for ingesting monitoring data we say:
and then for visualizing said data, we say:
Given that I see no security concerns here. Just a minor nit, please update |
@albertzaharovits, @chrisronline is on a different team now so I went ahead and merged this. Our team doesn't typically commit to the elasticsearch repo so if you could make the change you requested, it would be greatly appreciated! |
|
@albertzaharovits @chrisronline Do either of you know if I should be seeing this change reflected here:
response{
"monitoring_user" : {
"cluster" : [
"cluster:monitor/main",
"cluster:monitor/xpack/info",
"cluster:monitor/remote/info"
],
"indices" : [
{
"names" : [
".monitoring-*"
],
"privileges" : [
"read",
"read_cross_cluster"
],
"allow_restricted_indices" : false
}
],
"applications" : [
{
"application" : "kibana-*",
"privileges" : [
"reserved_monitoring"
],
"resources" : [
"*"
]
}
],
"run_as" : [ ],
"metadata" : {
"_reserved" : true
},
"transient_metadata" : {
"enabled" : true
}
}
}
Still getting failing functional tests likely because of this. |
|
@neptunian It works for me when I pull ES from the 7.x branch. I think the build you're testing hasn't caught up. |
|
@albertzaharovits thanks, do you know how long the delay is to get these changes in the yarn es snapshot flow / aka latest ES snapshots? Our Kibana functional tests are failing with this problem still, a day later. Not sure who to ask on this :) |
|
@albertzaharovits are you comfortable backporting this to the 7.13 branch so it goes out in the next 7.13.x patch release, if there is one? I just realized that Metricbeat 7.13 merged with the ability to ship data to metricbeat-* but without this change, users won't be able to see that data. cc @sayden @ravikesarwani (for visibility, I'll explain more) |
Relates to elastic/kibana#90660
The Stack Monitoring UI will soon read from
metricbeat-*indices and needs to adjust the reserved role to allow permission to this index.