Skip to content

Commit

Permalink
Make Keycloak work on Graal 19.3.0
Browse files Browse the repository at this point in the history
Remove some problematic substitutions and make
bouncycastle classes initialized at runtime to
work around security provider bug
  • Loading branch information
stuartwdouglas authored and gwenneg committed Dec 4, 2019
1 parent 344e6fe commit 85d8746
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 112 deletions.
2 changes: 1 addition & 1 deletion ci-templates/stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ stages:
parameters:
poolSettings: ${{parameters.poolSettings}}
expectUseVMs: ${{parameters.expectUseVMs}}
timeoutInMinutes: 25
timeoutInMinutes: 35
modules:
- kogito
- kubernetes-client
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem;
import io.quarkus.keycloak.pep.runtime.PortWatcherRunTime;

public class KeycloakReflectionBuildStep {

Expand Down Expand Up @@ -78,7 +77,12 @@ public void registerServiceProviders(BuildProducer<ServiceProviderBuildItem> ser
}

@BuildStep
RuntimeInitializedClassBuildItem runtimeInitializedClass() {
return new RuntimeInitializedClassBuildItem(PortWatcherRunTime.class.getName());
public void runtimeInit(BuildProducer<RuntimeInitializedClassBuildItem> runtimeInit) {
runtimeInit.produce(new RuntimeInitializedClassBuildItem("org.keycloak.common.util.BouncyIntegration"));
runtimeInit.produce(new RuntimeInitializedClassBuildItem("org.keycloak.common.util.PemUtils"));
runtimeInit.produce(new RuntimeInitializedClassBuildItem("org.keycloak.common.util.DerUtils"));
runtimeInit.produce(new RuntimeInitializedClassBuildItem("org.keycloak.common.util.KeystoreUtil"));
runtimeInit.produce(new RuntimeInitializedClassBuildItem("org.keycloak.common.util.CertificateUtils"));
runtimeInit.produce(new RuntimeInitializedClassBuildItem("org.keycloak.common.util.OCSPUtils"));
}
}
4 changes: 0 additions & 4 deletions extensions/keycloak-authorization/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>commons-logging-jboss-logging</artifactId>
</dependency>
<dependency>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>svm</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 85d8746

Please sign in to comment.