Skip to content

fix(tamanu/doctor): external_users only warns, never fails#430

Merged
passcod merged 1 commit into
mainfrom
extusers-warn-only
May 30, 2026
Merged

fix(tamanu/doctor): external_users only warns, never fails#430
passcod merged 1 commit into
mainfrom
extusers-warn-only

Conversation

@passcod
Copy link
Copy Markdown
Member

@passcod passcod commented May 29, 2026

🤖 The external_users doctor check could previously flip the overall doctor result to FAILING when a session had been continuously connected for 24h or more. Operators don't want a forgotten interactive/RDP session to take the whole healthcheck down.

This downgrades the check so a long-lived session can only ever warn:

  • Removed the 24h FAIL_AGE threshold and its Check::fail branch.
  • Sessions of 12h+ still produce a warning (degrades this check's line on the wire but never flips the top-level result); shorter sessions pass.
  • Updated the module docs to describe the single warning-only threshold.

A long-lived interactive session now only ever produces a warning; it no
longer flips the overall doctor result to FAILING. Removes the 24h FAIL_AGE
threshold, leaving a single 12h WARN_AGE threshold.

Co-authored-by: Claude <noreply@anthropic.com>
@passcod passcod added this pull request to the merge queue May 30, 2026
Merged via the queue into main with commit 9012e5f May 30, 2026
8 checks passed
@passcod passcod deleted the extusers-warn-only branch May 30, 2026 05: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