Skip to content

Handle correct response code for token expired error#875

Open
philipgough wants to merge 1 commit intoobservatorium:mainfrom
philipgough:oidc-check
Open

Handle correct response code for token expired error#875
philipgough wants to merge 1 commit intoobservatorium:mainfrom
philipgough:oidc-check

Conversation

@philipgough
Copy link
Contributor

If your SLO depend on HTTP status code from metrics from this project, a disruptive user has the opportunity to generate 5xx responses with an expired token and burn your budget.

This change makes use of the provided error in github.com/coreos/go-oidc/v3/oidc to allow us to return a 4xx response in such cases.

@philipgough philipgough force-pushed the oidc-check branch 2 times, most recently from 31f241e to 478b82c Compare February 26, 2026 12:55
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