Skip to content

Commit 7b90d6f

Browse files
authored
Remove unused bwc variable from ApiKeyService (#81964)
* Remove unused bwc variable from ApiKeyService The variable lives in Subject since #80926.
1 parent 5822aa2 commit 7b90d6f

File tree

1 file changed

+0
-39
lines changed
  • x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc

1 file changed

+0
-39
lines changed

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/ApiKeyService.java

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -200,45 +200,6 @@ public class ApiKeyService {
200200
Property.NodeScope
201201
);
202202

203-
// This following fixed role descriptor is for fleet-server BWC on and before 7.14.
204-
// It is fixed and must NOT be updated when the fleet-server service account updates.
205-
private static final BytesArray FLEET_SERVER_ROLE_DESCRIPTOR_BYTES_V_7_14 = new BytesArray("""
206-
{
207-
"elastic/fleet-server": {
208-
"cluster": [ "monitor", "manage_own_api_key" ],
209-
"indices": [
210-
{
211-
"names": [
212-
"logs-*",
213-
"metrics-*",
214-
"traces-*",
215-
"synthetics-*",
216-
".logs-endpoint.diagnostic.collection-*"
217-
],
218-
"privileges": [ "write", "create_index", "auto_configure" ],
219-
"allow_restricted_indices": false
220-
},
221-
{
222-
"names": [ ".fleet-*" ],
223-
"privileges": [
224-
"read",
225-
"write",
226-
"monitor",
227-
"create_index",
228-
"auto_configure"
229-
],
230-
"allow_restricted_indices": false
231-
}
232-
],
233-
"applications": [],
234-
"run_as": [],
235-
"metadata": {},
236-
"transient_metadata": {
237-
"enabled": true
238-
}
239-
}
240-
}""");
241-
242203
private final Clock clock;
243204
private final Client client;
244205
private final SecurityIndexManager securityIndex;

0 commit comments

Comments
 (0)