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

Don't raise ValueError on unknown API keys in HTTP Authorization header #3845

Open
keegan-tatari opened this issue Jan 30, 2025 · 0 comments

Comments

@keegan-tatari
Copy link

We deploy the Onyx service in kubernetes and have the application behind a custom ingress that validates authentication with a JWT in the Authorization Bearer header.

It appears a change in PR #3423 began raising a ValueError when a Bearer token in the authorization HTTP header is unfamiliar. This is causing 4XX errors throughout the application in our deployment now. This worked fine on v0.15.0. and presented after upgrading to the new Onyx-named app on v0.19.0.

If we move this app behind an kubernetes ingress without this header and enable basic-auth, the app begins working correctly. The error seen prints the first three characters of a JWT (eyJ) so our issue indeed seems to be caused by this recent change.

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

No branches or pull requests

1 participant