SGS_CLUSTER_MANAGE_INDEX_TEMPLATES has permission when the index pattern is configured as ’ * '. But the same doesn’t work for a particular index pattern ex: ‘log-test*’ ?
Any particular reason for this behaviour?
sg config for user:
sg_configmap:
internal_users_yml: |-
---
_sg_meta:
type: "internalusers"
config_version: 2
admin:
reserved: true
hidden: false
hash: "$xxxxxxxxxxxxxxxxx"
backend_roles:
- "admin"
sachin:
hash: "$xxxxxxxxxxx"
Sg config for roles:
sg_sachin_role:
cluster_permissions:
- SGS_CLUSTER_MANAGE_INDEX_TEMPLATES
- SGS_CLUSTER_ALL
index_permissions:
- index_patterns:
- 'log-test*'
allowed_actions:
- SGS_INDICES_ALL
- SGS_CRUD
SG config for role mapping
sg_sachin_role
reserved: true
users:
- "sachin"
Below error we get while running curl command.
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "no permissions for [indices:admin/index_template/put] and User [name=sachin, backend_roles=[], requestedTenant=null]"
}
],
"type" : "security_exception",
"reason" : "no permissions for [indices:admin/index_template/put] and User [name=sachin, backend_roles=[], requestedTenant=null]"
},
"status" : 403
Can you help me resolve the isuue.
Thanks