-
Notifications
You must be signed in to change notification settings - Fork 25.8k
403 for no index permission from _cat/indices call #37190
Copy link
Copy link
Closed
Labels
:Core/Infra/CAT APIsText APIs behind /_catText APIs behind /_cat:Security/AuthorizationRoles, Privileges, DLS/FLS, RBAC/ABACRoles, Privileges, DLS/FLS, RBAC/ABAC
Description
Elasticsearch version (bin/elasticsearch --version): 7.0.0-SNAPSHOT
Description of the problem including expected versus actual behavior:
When calling _cat/indices with no index list, indices for which the user does not have privileges simply omit the docs count and storage size information. However, calling the same API with an index for which the user does not have privileges (_cat/indices/index_you_cant_see_info_for) returns a 403 error:
{
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "action [indices:monitor/stats] is unauthorized for user [billy]"
}
],
"type": "security_exception",
"reason": "action [indices:monitor/stats] is unauthorized for user [billy]"
},
"status": 403
}
I think the API should behave the same in either case, just return the data without storage size and docs count.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Core/Infra/CAT APIsText APIs behind /_catText APIs behind /_cat:Security/AuthorizationRoles, Privileges, DLS/FLS, RBAC/ABACRoles, Privileges, DLS/FLS, RBAC/ABAC
Type
Fields
Give feedbackNo fields configured for issues without a type.