Trust internal CA for Rancher OIDC discovery #4
Reference in New Issue
Block a user
Delete Branch "benvin/rancher-oidc-ca"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rancher OIDC login fails with
x509: certificate signed by unknown authorityon the server-side discovery call to the Authentik issuer (https://identity.unkin.net), because the keycloak_oidc auth config never set a CA certificate and Rancher does not trust the internal unkin.net PKI.Change:
pki_int/cert/ca_chain) via avault_generic_secretdata source.certificateonrancher2_auth_config_keycloak_oidc, defaulting to the Vault-sourced chain (no hardcoding, so trust cannot go stale on rotation); adds an optionalkeycloakoidc.certificateoverride.Issuer, client, scopes and role bindings are unchanged. CI-parity plan:
rancher2_auth_config_keycloak_oidc.this[0]updated in-place, only+ certificateadded,0 to add, 1 to change, 0 to destroy.Note: Rancher login also needs the parallel terraform-authentik RS256 provider fix (task 49) merged+applied — this CA fix alone resolves TLS trust but the HS256->RS256 issue remains.
https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv