Skip to content

Commit b07d3a6

Browse files
authored
Add missing entitlements for FIPS (elastic#122941) (elastic#122955)
Add missing entitlements for FIPS
1 parent 1048e0a commit b07d3a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/initialization/EntitlementInitialization.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,10 @@ private static PolicyManager createPolicyManager() {
215215

216216
Path trustStorePath = trustStorePath();
217217
if (trustStorePath != null) {
218-
serverScopes.add(
219-
new Scope("org.bouncycastle.fips.tls", List.of(new FilesEntitlement(List.of(FileData.ofPath(trustStorePath, READ)))))
218+
Collections.addAll(
219+
serverScopes,
220+
new Scope("org.bouncycastle.fips.tls", List.of(new FilesEntitlement(List.of(FileData.ofPath(trustStorePath, READ))))),
221+
new Scope("org.bouncycastle.fips.core", List.of(new ManageThreadsEntitlement()))
220222
);
221223
}
222224

0 commit comments

Comments
 (0)