Skip to content

fix(realtime): report liveness only on the public health probe - #10324

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/health-liveness-only
Nov 23, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/health-liveness-only

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • The realtime server's unauthenticated GET /health returned this pod's live socket connection count. It now returns {"status":"ok"}; the load balancer health check only needs the 200.
  • getTotalActiveConnections had no other caller, so it is removed from IRoomManager and its test mocks.
  • Self-hosting observability docs updated to the new response.

Test plan

  • New http.test.ts case asserts the probe body is exactly {status:'ok'}; it failed before the fix
  • realtime vitest suite (194 tests), type-check, biome
  • check:boundaries, check:realtime-prune, check:comment-hygiene, check:test-patterns

GET /health is unauthenticated and publicly reachable, and returned this pod's
live connection count. It now returns {"status":"ok"}. The connection counter
had no other caller, so it is removed from the room manager.
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 23, 2026 12:06am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 8 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

The public realtime GET /health now returns only {"status":"ok"}, without exposing the pod's connection count.

  • The public health probe returns only a simple liveness status.

Reviews (2) · Last reviewed commit: "fix(realtime): report liveness only on t..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit ffda23f into staging Nov 23, 2026
79 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/health-liveness-only branch November 23, 2026 00:07

This branch was successfully deployed

1 active deployment
Preview — 8bb1ca0c Deployed Nov 23, 2026 by vercel[bot]
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