Skip to content

Commit 62897b5

Browse files
committed
Merge remote-tracking branch 'upstream/main' into entitlements/nio-files-1
2 parents 56462ba + 3b18255 commit 62897b5

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
@@ -231,8 +231,10 @@ private static PolicyManager createPolicyManager() {
231231

232232
Path trustStorePath = trustStorePath();
233233
if (trustStorePath != null) {
234-
serverScopes.add(
235-
new Scope("org.bouncycastle.fips.tls", List.of(new FilesEntitlement(List.of(FileData.ofPath(trustStorePath, READ)))))
234+
Collections.addAll(
235+
serverScopes,
236+
new Scope("org.bouncycastle.fips.tls", List.of(new FilesEntitlement(List.of(FileData.ofPath(trustStorePath, READ))))),
237+
new Scope("org.bouncycastle.fips.core", List.of(new ManageThreadsEntitlement()))
236238
);
237239
}
238240

0 commit comments

Comments
 (0)