Skip to content

Add public GET /api/health - #244

Merged
ralyodio merged 1 commit into
masterfrom
ops/health-endpoint
Oct 6, 2026
Merged

ralyodio merged 1 commit into
masterfrom
ops/health-endpoint

Conversation

@ralyodio

@ralyodio ralyodio commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Adds GET /api/health (SvelteKit route) for status.profullstack.com.

  • 200 {"status":"ok","db":"ok"} after select 1 through the shared libsql-pg client, 3s timeout
  • 503 {"status":"error","db":"down"} on failure, no error details
  • Cache-Control: no-store, no auth (hooks.server.js only resolves a session if a cookie is present)

Before: the path was 404 because no route existed.

Verified: bun run build, and the built server returns 503 + no-store against an unreachable DB.

🤖 Generated with Claude Code

Returns 200 {"status":"ok","db":"ok"} after a select 1 (3s ceiling),
503 {"status":"error","db":"down"} otherwise. No auth, no-store, no
error details. For status.profullstack.com.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

ThreatCrush Security Scan

11 finding(s)

HIGH/CRITICAL: 5 | MEDIUM: 3 | LOW: 3

Severity Rule Location
HIGH secret-database-url apps/web/.env.example:9
HIGH secret-database-url docs/Environment-Setup.md:46
HIGH secret-database-url docs/Environment-Setup.md:132
HIGH secret-slack-webhook docs/WEBHOOK_CONFIGURATION.md:145
HIGH secret-generic-credential src/nodes/README.md:271
MEDIUM sql-template-interpolation apps/web/src/routes/api/secrets/[id]/+server.js:80
MEDIUM sql-template-interpolation apps/web/src/routes/api/workflows/[id]/+server.js:141
MEDIUM sql-template-interpolation src/queue/test-helpers.js:52
LOW sql-template-interpolation docs/Turso-Migration.md:70
LOW secret-generic-credential src/nodes/webhook.test.js:287
LOW sql-template-interpolation workers/orchestrator.test.js:52

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit 1823da3 into master Oct 6, 2026
5 checks passed
@ralyodio
ralyodio deleted the ops/health-endpoint branch October 6, 2026 18:40
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