Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oauth/oidc: caddy-security fails when jwks contains an unsupported key #228

Open
ghost opened this issue Apr 17, 2023 · 1 comment
Open
Assignees
Labels
need triage question Further information is requested

Comments

@ghost
Copy link

ghost commented Apr 17, 2023

Hello,
we're using caddy-security with openID connect using a custom open id provider.
The jwks.json returned by the .well-known metadata contains an Ed25519 key, and caddy-security fails to start with this message:

caddy-caddy-1  | {"level":"error","ts":1681716993.476016,"logger":"security","msg":"failed provisioning app server instance","app":"security","error":"server initialization failed: failed configuring identity provider: failed to fetch jwt keys for OAuth 2.0 authorization server: invalid jwks key: jwks unsupported key type OKP for <key>"}

We do not intend to use Ed25519 keys with caddy-security, they just happen to be supported by the server. If I understand it correctly, I believe caddy-security could just ignore them instead of failing at start.

If we remove the ed25519 key from they keyset, caddy-security works fine. But we can't do it in production.

@ghost ghost added need triage question Further information is requested labels Apr 17, 2023
@ghost ghost assigned greenpau Apr 17, 2023
@em-
Copy link

em- commented Dec 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need triage question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants