You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Try to add index template to role and map to a user, due to official Access Control Permissions docs, I tried to add index permission to the role.
However, for the legacy template, the setting "indices:admin/template/get" is not working, and I need to add this permission to cluster level permissions, and it works.
To Reproduce
Steps to reproduce the behavior:
Go to 'Security/Roles'
Click on 'Create role'
Add permission "indices:admin/template/get" to Index permissions
See error below:
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "no permissions for [indices:admin/template/delete] and User [name=template, backend_roles=[], requestedTenant=__user__]"
}
],
"type" : "security_exception",
"reason" : "no permissions for [indices:admin/template/delete] and User [name=template, backend_roles=[], requestedTenant=__user__]"
},
"status" : 403
}
Add permission "indices:admin/template/get" to Cluster permissions, and the query executed successfully.
Expected behavior
Modify the "indices:admin/index_template/get" permission to index level as its name showed.
Plugins
Security plugin.
Screenshots
Not working setting:
Working setting:
Host/Environment (please complete the following information):
OS: Amazon Linux release 2
Version 1.0.0
Additional context
N/A
The text was updated successfully, but these errors were encountered:
As pointed out, the legacy indices:admin/template/* permissions are cluster permissions even though they are prefixed with indices:. This should be reflected on the permissions page on the documentation website
Describe the bug
Try to add index template to role and map to a user, due to official Access Control Permissions docs, I tried to add index permission to the role.
For the new [index template] (https://www.elastic.co/guide/en/elasticsearch/reference/current/index-templates.html#index-templates), the setting "indices:admin/index_template/get" (also this permission is not included in Access Control Permissions docs) is okay.
However, for the legacy template, the setting "indices:admin/template/get" is not working, and I need to add this permission to cluster level permissions, and it works.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Modify the "indices:admin/index_template/get" permission to index level as its name showed.
Plugins
Security plugin.
Screenshots
Not working setting:
Working setting:
Host/Environment (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: