mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 09:13:02 +03:00
[PR #2032] [MERGED] Added DbConn to /alive healthcheck #3314
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/2032
Author: @BlackDex
Created: 10/9/2021
Status: ✅ Merged
Merged: 10/18/2021
Merged by: @dani-garcia
Base:
main← Head:alive-db-check📝 Commits (1)
881524bAdded DbConn to /alive healthcheck📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
src/api/web.rs(+3 -1)📄 Description
During a small discusson on Matrix it seems logical to have the /alive
endpoint also check if the database connection still works.
The reason for this was regarding a certificate which failed/expired
while vaultwarden and the database were still up-and-running, but
suddenly vaultwarden couldn't connect anymore.
With this
DbConnadded to/alive, it will be more accurate, becauseof vaultwarden can't reach the database, it isn't alive.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.