was this ever solved?
i have the exact problem but none of the previously described solution work.
in the specific my role has the following permissions
indexes: network-* , filebeat-*
permission: read
do_not_fail_on_forbidden: true
is also configured
when loggin in, the api call
api/saved_objects/_find?fields=title&per_page=1&search=*&search_fields=title&type=index-pattern
returns with:
{"statusCode":403,"error":"Forbidden","message":"no permissions for [indices:data/read/search] and User ...
adding the following permissions does nothing.
index: *
permissions:
- "indices:data/read/search/template"
- "indices:data/read/msearch/template"
the only way i can get some progress is by granting:
index: *
permission: indices:data/read/search
in that case, the previous call succeed
and returns
{
"page": 1,
"per_page": 1,
"total": 4,
"saved_objects": [{
"type": "index-pattern",
"id": "network-*",
"attributes": {
"title": "network-*"
},
"references": [],
"migrationVersion": {
"index-pattern": "7.6.0"
},
"updated_at": "2022-09-29T10:44:29.857Z",
"version": "Wzk3LDdd",
"namespaces": ["default"],
"score": 1
}]
}
unfortunately there are still problems as trying to access discover or dashboards
for the api call api/opensearch-dashboards/settings
the response is
{"statusCode":403,"error":"Forbidden","message":"no permissions for [indices:data/write/update] and User
for the api call /api/saved_objects/_bulk_get
the response is
{"statusCode":403,"error":"Forbidden","message":"no permissions for [] and User
the only way i can properly browse is to grant indices:data/read/search
+ get
.
when the read permission is granted to * i obtain the following answer to the api call
api/saved_objects/_find?fields=title&per_page=1&search=*&search_fields=title&type=index-pattern
{
"page": 1,
"per_page": 10000,
"total": 4,
"saved_objects": [{
"type": "index-pattern",
"id": "network-*",
"attributes": {
"title": "network-*"
},
"references": [],
"migrationVersion": {
"index-pattern": "7.6.0"
},
"updated_at": "2022-09-29T10:44:29.857Z",
"version": "Wzk3LDdd",
"namespaces": ["default"],
"score": 0
}, {
"type": "index-pattern",
"id": "filebeat-*",
"attributes": {
"title": "filebeat-*"
},
"references": [],
"migrationVersion": {
"index-pattern": "7.6.0"
},
"updated_at": "2022-09-29T10:44:29.857Z",
"version": "WzEwNCw3XQ==",
"namespaces": ["default"],
"score": 0
}, {
"type": "index-pattern",
"id": "snmp-*",
"attributes": {
"title": "snmp-*"
},
"references": [],
"migrationVersion": {
"index-pattern": "7.6.0"
},
"updated_at": "2022-09-29T12:30:48.194Z",
"version": "WzEwNyw3XQ==",
"namespaces": ["default"],
"score": 0
}, {
"type": "index-pattern",
"id": "security-auditlog-*",
"attributes": {
"title": "security-auditlog-*"
},
"references": [],
"migrationVersion": {
"index-pattern": "7.6.0"
},
"updated_at": "2022-09-29T12:31:07.357Z",
"version": "WzEwOCw3XQ==",
"namespaces": ["default"],
"score": 0
}]
}
notice how a lot more indexes are returned compared to before