Open Mitchell-Gant opened 2 years ago
Hi @Mitchell-Gant! Answering your question below:
For oidc_discovery_ca_pem, do I paste the contents of the pem file in quotes, or am I supposed to point to where the file is located on the Vault server. If pointing to the pem file itself, what does that syntax look like or is there an expected default location?
You should directly provide the PEM file contents in quotes to oidc_discovery_ca_pem
. You can also use the Vault CLI's file reading helper if the PEM file is on disk local to your Vault CLI.
I have the same problem with vault 1.14.1, deployed on openshift 4.10.
The audit logs also contain this warning:
Endpoint ignored these unrecognized parameters: [ default_role, oidc_discovery_ca_pem ]
The ca file seems to be ok, I can validate this with curl and openssl. I also added the GODEBUG=x509sha1=1
env var to the vault pods, just to be sure the root certificate (which uses sha1) isn't the problem. But this doesn't change anything.
The configuration with the UI (same certificate and settings) works. So there must be a difference in the configuration via the cli...
I’m running Vault 1.12 in dev mode on Amazon EC2 instance. I have configured the realm and client for vault in Keycloak with valid callback urls. Enabled OIDC in Vault UI and configured OIDC with valid OIDC discovery URL, OIDC client ID ,and OIDC client secret.
In the Vault CLI I’ve run these commands:
vault write auth/oidc/config oidc_discovery_url=""""
oidc_discovery_ca_pem=“”
oidc_client_id="
oidc_client_secret="
I get this error:
For oidc_discovery_ca_pem, do I paste the contents of the pem file in quotes, or am I supposed to point to where the file is located on the Vault server. If pointing to the pem file itself, what does that syntax look like or is there an expected default location?
Environment: <-- AWS EC2 instance -->
Vault Config File: <-- Dev Vault with no config file -->
Startup Log Output:
Expected Behavior: <-- Integrate Vault into Keycloak as an OIDC provider -->
Actual Behavior: <-- What actually happened? --> Received the referenced error above. Steps to Reproduce:
Important Factoids:
References: