Closed
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- This issue affects my Ory Cloud project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Describe the bug
The health/ready
endpoint returns OK when database connectivity is no longer given. I would expect it to check this because according to the docs: This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well.
.
Reproducing the bug
- Setup postgres service in k8s cluster
- Deploy keto to cluster with dsn pointing to postgres service
- Kill postgres
- Call keto 'health/ready' endpoint -> Returns OK
However when I try to insert/query tuples I will obviously be greeted with an error code.
Relevant log output
No response
Relevant configuration
No response
Version
0.6.0-alpha.1
On which operating system are you observing this issue?
No response
In which environment are you deploying?
Kubernetes with Helm
Additional Context
No response