Hi, we upgaded keycloak image from 25.0.6 to 26.0.0 using redhat quay image image(Quay). Its throwing a below error while opening the admin console. Our keycloak sits behind nginx reverse proxy.
Hostname v1 options [proxy] are still in use, please review your configuration
ERROR [org.keycloak.quarkus.runtime.configuration.mappers.PropertyMappers] (main) Hostname v1 options [proxy] are still in use, please review your configuration
See the upgrade guide[1], you need to adjust your startup options, as some options do have changed.
[1] Release Notes
Thank you so much bpedersen2 for the reply. Here is our compose file, do we need to change any thing in the compose to adjust new startup options.
keycloak:
image: ‘ourcompanyartifactory:5050/apps/keycloak/keycloak:26.0.0’
restart: always
environment:
KC_HOSTNAME_STRICT: ‘false’
KC_HOSTNAME: ‘keycloak-dev.com’
KC_SPI_TRUSTSTORE_FILE_FILE: ‘/tmp/keycloak.jks’
KC_SPI_TRUSTSTORE_FILE_PASSWORD: ${KEYCLOAK_TRUSTSTORE}
KC_SPI_TRUSTSTORE_FILE_HOSTNAME_VERIFICATION_POLICY: ‘STRICT’
KC_PROXY: ‘edge’
KC_DB: ‘postgres’
KC_DB_URL_HOST: ‘keycloakdb-dev’
KC_DB_URL_DATABASE: ‘keycloak-dev’
KC_DB_URL_PORT: ‘5432’
KC_DB_USERNAME: ‘keycloak_dev’
KC_DB_PASSWORD: ${DB_PASSWORD}
TZ: America/New_York
KEYCLOAK_LOGLEVEL: TRACE
command:
- start
expose:
- ‘8080’
volumes:
- ./realms:/tmp
After further searching this issue has been fixed by making following changes in the compose file.
Remove:
KC_PROXY: ‘edge’
Add:
KC_HTTP_ENABLED: true
KC_PROXY_HEADERS: xforwarded