Hi,
I try to create a index but i have this error :
PUT toto-1 ( curl -k -u "logstash:password" -X PUT "https://localhost:9200/toto-1) {"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:admin/create] is unauthorized for user [logstash] with effective roles [eck_logstash_user_role] on indices [toto-1], this action is granted by the index privileges [create_index,manage,all]"}],"type":"security_exception","reason":"action [indices:admin/create] is unauthorized for user [logstash] with effective roles [eck_logstash_user_role] on indices [toto-1], this action is granted by the index privileges [create_index,manage,all]"},"status":403}
What user were you logged in with when you created that role?
Ask just in case because a user can not create a role with more privileges than the user logged in.
the API will accept creating the role, but when executed, it will be the intersection of the roles (the user creating the role and the role created / used)
This is true for API keys, but not for users+roles. Users with manage_security can create a role that grants any access they wish, regardless of what access they themselves have.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.