Skip to content

oidc: wrap the error of the key set in Verify - #516

Open
Mic92 wants to merge 1 commit into
coreos:v3from
Mic92:wrap-keyset-error
Open

Mic92 wants to merge 1 commit into
coreos:v3from
Mic92:wrap-keyset-error

Conversation

@Mic92

@Mic92 Mic92 commented Nov 18, 2026

Copy link
Copy Markdown

Verify formats the key set's error with %v, so a caller cannot tell a failed key fetch from a bad signature. Wrapping it lets errors.Is/errors.As see the cause, e.g. to answer 503 instead of 401 when the provider is down.

A caller can then tell a failed key fetch from a bad signature with
errors.Is/As.

Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant