Auth error for index template APIs doesn't include manage_index_templates
cluster priv
#68144
Labels
>bug
:Data Management/Indices APIs
APIs to create and manage indices and templates
:Security/Authorization
Roles, Privileges, DLS/FLS, RBAC/ABAC
Team:Data Management
Meta label for data/management team
Team:Security
Meta label for security team
Elasticsearch version (
bin/elasticsearch --version
): Latestelasticsearch-8.0.0-SNAPSHOT-darwin-x86_64.tar.gz
Plugins installed: []
JVM version (
java -version
):openjdk version "15.0.1" 2020-10-20
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.1+9, mixed mode, sharing)
OS version (
uname -a
if on a Unix-like system):Darwin 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64
Description of the problem including expected versus actual behavior:
The
manage_index_templates
cluster privilege lets a user run the following APIs:However, the authorization error returned by these APIs does not list
manage_index_templates
as a privilege.Steps to reproduce:
elastic
user, create amytest
role with no cluster privileges:elastic
user, create atest
user with themytest
role:test
user. For example, use the put composable index template API:The request returns the following error message.
manage_index_templates
should be in the list of privileges but is not included. Onlymanage,all
are listed.elastic
user, add themanage_index_templates
cluster privilege to themytest
role :test
user, use the above API again. This time, the attempt will succeed.The text was updated successfully, but these errors were encountered: