Skip to content

feat: add GET /healthz endpoint to cluster HTTP server#650

Open
nikrich wants to merge 1 commit into
mainfrom
agent/junior-503453dc
Open

feat: add GET /healthz endpoint to cluster HTTP server#650
nikrich wants to merge 1 commit into
mainfrom
agent/junior-503453dc

Conversation

@nikrich
Copy link
Copy Markdown
Owner

@nikrich nikrich commented Mar 30, 2026

Summary

  • Adds unauthenticated GET /healthz route to ClusterHttpServer, placed before the auth check so external health checkers can reach it
  • Returns {status: "ok", timestamp: <epoch ms>} with HTTP 200
  • Adds src/cluster/cluster-http-server.test.ts with a unit test covering the happy path

Test plan

  • npx vitest run src/cluster/cluster-http-server.test.ts passes
  • Endpoint returns 200 without an Authorization header even when auth_token is configured

🤖 Generated with Claude Code

Adds an unauthenticated health check endpoint at GET /healthz that returns
{status: "ok", timestamp: <epoch ms>} with a 200 status code. Includes
a unit test covering the happy path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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