1. Describe your incident:
I want to give indices:admin/template/put permission to user datanode, or any other user, I just need to be able to apply a template as per below:
curl -X PUT --key mykey.key --cert mycert.crt --ca myca.crt "myhost:9200/_template/graylog_template" -H 'Content-Type: application/json' -d '{
"index_patterns": ["graylog_*"],
"settings": {
"index.translog.flush_threshold_size": "2gb",
"index.merge.scheduler.max_thread_count": 1,
"index.translog.durability": "async",
"index.translog.sync_interval": "10s",
"index.refresh_interval": "30s",
"index.merge.policy.max_merge_at_once": 5
}
}'
2. Describe your environment:
-
OS Information: Raspberry PI 5 8GB running Raspbian OS 64 bits (Debian 12)
-
Package Version: graylog-server:arm64 (6.2), graylog-datanode:arm64 (6.2)
-
Error when trying to
{“error”:{“root_cause”:[{“type”:“security_exception”,“reason”:“no permissions for [indices:admin/template/put] and User [name=datanode, backend_roles=, requestedTenant=null]”}],“type”:“security_exception”,“reason”:“no permissions for [indices:admin/template/put] and User [name=datanode, backend_roles=, requestedTenant=null]”},“status”:403}
3. What steps have you already taken to try and solve the problem?
I’ve been trying to include the permission indices:admin/template/put in roles.yml.
Tried to create a test user and assign this role to it, but I’m probably not doing it correctly.
Tried to change the user admin password using hash.sh and changing in internal_users.yml, also no joy.
4. How can the community help?
If someone can point me in the right direction, that would be great.
Thanks !