Describe the issue:
We are trying to lock down groups of users so they only have access to read their log-data.
The data comes in with the format logstash-<group>_<date> eg. logstash-weaterforecast_2023-05-23.
For each new application we run an ansible-job that does the following:
Creates a role over the API
β{{ opensearch_api_address }}/_plugins/_security/api/roles/order-{{ role.name }}β
With the following data (converted to json):
When the user now logs on to Dashboards they canβt view the logs in the index, Iβm assuming Iβm missing some roles that needs to be there, Iβv been trying adding and removing roles.
What roles and permissions are needed for a read-only user?
{
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "no permissions for [indices:monitor/settings/get] and User [name=sebtho01, backend_roles=[R-IT-Plattform], requestedTenant=null]"
}
],
"type": "security_exception",
"reason": "no permissions for [indices:monitor/settings/get] and User [name=sebtho01, backend_roles=[R-IT-Plattform], requestedTenant=null]"
},
"status": 403
}
We have somewhat switched track on this, and are trying out the document-level-security, but Iβm facing other issues there with using ${user.securityRoles}.