no permissions for [indices:monitor/settings/get] and User [name=curator, roles=[], requestedTenant=

61 views
Skip to first unread message

k.zhel...@sap.com

unread,
Mar 26, 2019, 11:36:48 AM3/26/19
to Search Guard Community Forum
* Search Guard and Elasticsearch version: 6.5.4-oss-24.0

I have created `curator` user for searchguard, but when Delete Indices is running i got the following Error: 

Failed to complete action: delete_indices.  <class 'curator.exceptions.FailedExecution'>: Failed to get indices. Error: AuthorizationException(403, u'security_exception', u'no permissions for [indices:monitor/settings/get] and User [name=curator, roles=[], requestedTenant=null]')

sg_internal_users.yml:

curator:
  hash: password-hash

sg_roles.yml:

sg_curator:
  cluster:
  - CLUSTER_MONITOR
  - CLUSTER_COMPOSITE_OPS
  indices:
    logstash-*:
      '*':
      - DELETE
      - INDICES_MONITOR

sg_roles_mapping.yml

sg_curator:
  readall: true
  users:
  - curator

k.zhel...@sap.com

unread,
Mar 26, 2019, 11:39:58 AM3/26/19
to Search Guard Community Forum
I have also tried an UNLIMITED permissions but again did not work

Jochen Kressin

unread,
Mar 27, 2019, 4:05:11 PM3/27/19
to Search Guard Community Forum
If you get permission errors even when you assign UNLIMITED permissions, it is most probably an error with the roles mapping, i.e. the user is not mapped to the role you expect.

Please check first that your user is assigned to the correct Search Guard roles:


There's also a troubleshooting guide that helps you evaluating what permissions a user/role is missing.

This snippet here in your sg_roles_mapping.yml:

sg_curator:
  readall
: true
  users
:
 
- curator

has two issues. "readall" is not a valid key here, I guess you mean "readonly". And, the "- curator" entry has a wrong indentation. In your snippet it is on the same level as the "users" key, but it should be indented by 2 spaces. Maybe this is the problem here?
Reply all
Reply to author
Forward
0 new messages