Skip to content

Commit 6ee55f3

Browse files
authored
More entitlements for bouncycastle (#123548) (#123574)
1 parent 41aa167 commit 6ee55f3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,14 @@ private static PolicyManager createPolicyManager() {
242242
if (trustStorePath != null) {
243243
Collections.addAll(
244244
serverScopes,
245-
new Scope("org.bouncycastle.fips.tls", List.of(new FilesEntitlement(List.of(FileData.ofPath(trustStorePath, READ))))),
245+
new Scope(
246+
"org.bouncycastle.fips.tls",
247+
List.of(
248+
new FilesEntitlement(List.of(FileData.ofPath(trustStorePath, READ))),
249+
new OutboundNetworkEntitlement(),
250+
new ManageThreadsEntitlement()
251+
)
252+
),
246253
new Scope(
247254
"org.bouncycastle.fips.core",
248255
// read to lib dir is required for checksum validation

0 commit comments

Comments
 (0)