Build native image#29
Merged
Merged
Conversation
Keycloak 22 is EOL; 26.6 brings hostname v2 with backchannel-dynamic support. Postgres 13 is EOL and unsupported by Keycloak 26. docker-compose.full.yml also gets hostname v2 config and parameterized ports so the browser-facing issuer URL stays in sync.
UniversalJwtDecoder extracts the issuer from tokens and fetches JWKS from that URL. In Docker, the browser-facing issuer (localhost:8010) is unreachable from the API container. The new issuer-overrides config maps external base URLs to internal Docker hostnames for JWKS fetching while preserving the original issuer for token validation.
Pass -PbuildNative to produce a GraalVM native image via buildpacks. Add build and launch cache volumes for faster repeat builds.
Builds both JVM and native Docker images on every push and PR. Native images get -native suffix tags (e.g. beta-abc1234-native).
- Use withJwkSetUri when issuer override is active to avoid issuer mismatch between Docker hostnames (token says localhost, API resolves via internal hostname) - Change JwtIssuerOverridesConfig from Map to List<IssuerOverride> to fix Spring Boot property binding with URL keys - Replace manual resource-config.json with RuntimeHintsRegistrar for Liquibase native hints (avoids conflict with AOT-generated file) - Make GraalVM plugin conditional (apply false + hasProperty check) so JVM builds use JRE instead of NIK
mtruebl1
approved these changes
May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#13