keycloak(host): hopefully enable java4shell mitigation

Hopefully enable the java4shell mitigation for Keycloak by setting
JAVA_OPTS_APPEND to "-XX:-UseBASE64Intrinsics". I wasn't able to verify
the running options, but the container logs "Appending additional Java
properties to JAVA_OPTS" when JAVA_OPTS_APPEND is set, so it should
hopefully work.
https://calif.io/java4shell/
This commit is contained in:
June 2026-11-18 02:26:06 +01:00
commit 1b1e774a5e
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

View file

@ -42,6 +42,7 @@ services:
KC_HOSTNAME_ADMIN: https://keycloak-admin.hamburg.ccc.de
KC_PROXY_HEADERS: xforwarded
KC_HTTP_ENABLED: true
JAVA_OPTS_APPEND: "-XX:-UseBASE64Intrinsics"
ports:
- "8080:8080"