-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
Summary
A user needs monitor and manage_ccr cluster privileges to view and create follower indices and view auto-follow patterns. WIthout the monitor privilege they get an error for the "cluster:monitor/ccr/follow_info" action.
Note: you need privileges on the remote cluster to create auto-follow patterns. You need to have an identical user on the remote cluster that has the read_ccr cluster privilege in addition to monitor and read privileges on the leader indices (see the docs). Missing these privileges results in the error [security_exception] insufficient privileges to follow index [f*], privilege for action [indices:monitor/stats] is missing, privilege for action [indices:data/read/xpack/ccr/shard_changes] is missing.
A user needs the manage cluster privilege in order to use Remote Clusters. The monitor privilege is sufficient for viewing remote clusters (without it they get an error for the "cluster:monitor/remote/info" action), but they need manage to edit them.
Oddly enough, the user needs index privileges for a follower index to view it in Index Management (the equivalent of requesting GET <index>), but doesn't need them to view the same follower index in CCR (the equivalent of requesting GET <index>/_ccr/info).
Changes to make
- Change CCR's register_permissions_route to require the monitor privilege instead of manage.
- Add comments explaining the purpose of each required privilege.
- Update the functional test role with correct privileges.
- Once Hide management sections based on cluster/index privileges #67791 is merged, update the documentation and requirements with the new privileges.
