diff --git a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java index a240bf2cabc32..1b9a6f21932e7 100644 --- a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java +++ b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java @@ -214,6 +214,11 @@ private static void prepareBouncyCastleProvider(CurateOutcomeBuildItem curateOut .produce(new RuntimeReinitializedClassBuildItem("org.bouncycastle.jcajce.provider.drbg.DRBG$Default")); runtimeReInitialized .produce(new RuntimeReinitializedClassBuildItem("org.bouncycastle.jcajce.provider.drbg.DRBG$NonceAndIV")); + // URLSeededEntropySourceProvider.seedStream may contain a reference to a 'FileInputStream' which includes + // references to FileDescriptors which aren't allowed in the image heap + runtimeReInitialized + .produce(new RuntimeReinitializedClassBuildItem( + "org.bouncycastle.jcajce.provider.drbg.DRBG$URLSeededEntropySourceProvider")); } else { reflection.produce(ReflectiveClassBuildItem.builder("org.bouncycastle.crypto.general.AES") .methods().fields().build());