@@ -17,7 +17,7 @@ retrieve roles dynamically. When you use the APIs to manage roles in the
1717
1818The following requests use the
1919<<security-api-put-role,create or update roles API>>. You must have at least the
20- `manage_security` cluster privilege to use this API.
20+ `manage_security` cluster privilege to use this API.
2121
2222[[remote-clusters-privileges-ccr]]
2323//tag::configure-ccr-privileges[]
@@ -33,8 +33,11 @@ On the remote cluster that contains the leader index, the {ccr} role requires
3333the `read_ccr` cluster privilege, and `monitor` and `read` privileges on the
3434leader index.
3535
36- NOTE: If requests will be issued <<run-as-privilege,on behalf of other users>>,
37- then the the authenticating user must have the `run_as` privilege on the remote
36+ NOTE: If requests are authenticated with an <<security-api-create-api-key, API key>>, the API key
37+ requires the above privileges on the **local** cluster, instead of the remote.
38+
39+ NOTE: If requests are issued <<run-as-privilege,on behalf of other users>>,
40+ then the authenticating user must have the `run_as` privilege on the remote
3841cluster.
3942
4043The following request creates a `remote-replication` role on the remote cluster:
@@ -99,7 +102,7 @@ POST /_security/role/remote-replication
99102}
100103----
101104
102- After creating the `remote-replication` role on each cluster, use the
105+ After creating the `remote-replication` role on each cluster, use the
103106<<security-api-put-user,create or update users API>> to create a user on
104107the local cluster cluster and assign the `remote-replication` role. For
105108example, the following request assigns the `remote-replication` role to a user
@@ -133,8 +136,11 @@ local and remote clusters, and then create a user with the required roles.
133136On the remote cluster, the {ccs} role requires the `read` and
134137`read_cross_cluster` privileges for the target indices.
135138
136- NOTE: If requests will be issued <<run-as-privilege,on behalf of other users>>,
137- then the the authenticating user must have the `run_as` privilege on the remote
139+ NOTE: If requests are authenticated with an <<security-api-create-api-key, API key>>, the API key
140+ requires the above privileges on the **local** cluster, instead of the remote.
141+
142+ NOTE: If requests are issued <<run-as-privilege,on behalf of other users>>,
143+ then the authenticating user must have the `run_as` privilege on the remote
138144cluster.
139145
140146The following request creates a `remote-search` role on the remote cluster:
@@ -180,7 +186,7 @@ POST /_security/role/remote-search
180186{}
181187----
182188
183- After creating the `remote-search` role on each cluster, use the
189+ After creating the `remote-search` role on each cluster, use the
184190<<security-api-put-user,create or update users API>> to create a user on the
185191local cluster and assign the `remote-search` role. For example, the following
186192request assigns the `remote-search` role to a user named `cross-search-user`:
@@ -263,7 +269,7 @@ Assign your {kib} users a role that grants
263269PUT /_security/user/cross-cluster-kibana
264270{
265271 "password" : "l0ng-r4nd0m-p@ssw0rd",
266- "roles" : [
272+ "roles" : [
267273 "logstash-reader",
268274 "kibana-access"
269275 ]
0 commit comments