Keycloak's own chart already accepts ingress.host, but the OIDC
consumers rebuild the issuer as keycloak.<root-host> on their own. Moving
Keycloak to another hostname therefore changed the issuer of every token
while the dashboard and linstor-gui gatekeepers, Grafana, the info
kubeconfig and tenant clusters in oidc.mode System kept expecting the
old one, and SSO broke everywhere at once.
authentication.oidc.keycloakHost resolves the host once in the platform
and publishes it as _cluster.keycloak-host, which Keycloak (Ingress,
HTTPRoute, KC_HOSTNAME) and every consumer read. Left empty it resolves
to keycloak.<root-host>, so existing clusters render unchanged.
The kind is checked before any default, since `default` treats false and
0 as unset and would silently fall back to the derived host. An explicit
host must also respect the RFC 1123 label and total length limits. Setting
the chart's ingress.host and a different non-default keycloakHost is
refused, as KC_HOSTNAME and the consumers' issuer would disagree; a legacy
ingress.host alone keeps working.
Any valid DNS name is accepted, including all-digit labels and words such
as true, so the host is quoted wherever it is rendered; unquoted it turns
into a YAML number or bool and the Ingress no longer decodes.
The Gateway path's whole-apex cert modes render listeners for the apex
only, and the Keycloak chart cannot see the TenantGateway cert mode to
refuse an out-of-apex host, so that constraint is documented next to the
setting.
Assisted-by: LLM
Signed-off-by: Mattia Eleuteri <mattia@hidora.io>