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

Token introspection can respond {"active": false} for a valid token when losing DB connection #3811

Closed
3 of 5 tasks
konstantin-baidin-y42 opened this issue Aug 1, 2024 · 1 comment
Labels
bug Something is not working.

Comments

@konstantin-baidin-y42
Copy link

Preflight checklist

Ory Network Project

No response

Describe the bug

When Hydra has some problems with DB connection, it can respond with {"active": false} instead of responding with an error status or being unavailable.

Reproducing the bug

I managed to reproduce it in k8s. I requested the hydra introspection endpoint multiple times with a valid token. At the same time, I scaled down the database deployment to 0. At some moment, hydra responded with {"active": false} several times, and after that, it stopped responding to requests.
When I scaled DB deployment back to 1, hydra responded with active: true.

So, from the client's perspective, Hydra can randomly respond with false negatives. I expect Hydra to return an error status or not respond at all if it can not access the database.

Relevant log output

No response

Relevant configuration

No response

Version

v2.2.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Kubernetes with Helm

Additional Context

No response

@aeneasr
Copy link
Member

aeneasr commented Sep 14, 2024

Dupe #3671

@aeneasr aeneasr closed this as completed Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants