@@ -17,7 +17,7 @@ retrieve roles dynamically. When you use the APIs to manage roles in the
17
17
18
18
The following requests use the
19
19
<<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.
21
21
22
22
[[remote-clusters-privileges-ccr]]
23
23
//tag::configure-ccr-privileges[]
@@ -33,8 +33,11 @@ On the remote cluster that contains the leader index, the {ccr} role requires
33
33
the `read_ccr` cluster privilege, and `monitor` and `read` privileges on the
34
34
leader index.
35
35
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
38
41
cluster.
39
42
40
43
The following request creates a `remote-replication` role on the remote cluster:
@@ -99,7 +102,7 @@ POST /_security/role/remote-replication
99
102
}
100
103
----
101
104
102
- After creating the `remote-replication` role on each cluster, use the
105
+ After creating the `remote-replication` role on each cluster, use the
103
106
<<security-api-put-user,create or update users API>> to create a user on
104
107
the local cluster cluster and assign the `remote-replication` role. For
105
108
example, 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.
133
136
On the remote cluster, the {ccs} role requires the `read` and
134
137
`read_cross_cluster` privileges for the target indices.
135
138
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
138
144
cluster.
139
145
140
146
The following request creates a `remote-search` role on the remote cluster:
@@ -180,7 +186,7 @@ POST /_security/role/remote-search
180
186
{}
181
187
----
182
188
183
- After creating the `remote-search` role on each cluster, use the
189
+ After creating the `remote-search` role on each cluster, use the
184
190
<<security-api-put-user,create or update users API>> to create a user on the
185
191
local cluster and assign the `remote-search` role. For example, the following
186
192
request assigns the `remote-search` role to a user named `cross-search-user`:
@@ -263,7 +269,7 @@ Assign your {kib} users a role that grants
263
269
PUT /_security/user/cross-cluster-kibana
264
270
{
265
271
"password" : "l0ng-r4nd0m-p@ssw0rd",
266
- "roles" : [
272
+ "roles" : [
267
273
"logstash-reader",
268
274
"kibana-access"
269
275
]
0 commit comments