Repository navigation
fix: production outage + dependency security updates - #10
Merged
Merged
Conversation
…dependency The live API went down on 2026-09-23: Render's health check pointed at /health/ready, which runs SELECT 1 every few seconds, so Neon's compute never slept, the free monthly quota ran out and Neon paused the project. With no timeouts anywhere, requests hung instead of failing. - render.yaml: healthCheckPath /health (liveness only) - /health exempt from the Redis-backed rate limiter - pg: connectionTimeoutMillis 5s, statement_timeout 15s - ioredis app connection: connectTimeout 3s, commandTimeout 2s - Fastify requestTimeout 30s; /health/ready capped at 3s - server.ts logs a failed buildApp() clearly instead of an unhandled rejection - ADR 51, deployment.md warns against pinging /health/ready
…s for pinned transitives bun audit: 22 known vulnerabilities (9 high) -> 1. - bun update within existing ranges; majors left for their own change - overrides, same major only: fast-uri ^3.1.6, find-my-way ^9.7.0, mysql2 ^3.24.4 - stripe pinned ~22.5.0: 22.6 moves the API version, which does not ride along with a security fix - remaining: deepmerge-ts <8, pinned by @prisma/config, input is our own config file only (ADR 52)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The live API stopped answering on 2026-09-23. Neon paused the database after the free monthly compute quota ran out, because Render's health check called
/health/ready(aSELECT 1) every few seconds and the compute never slept. With no timeouts anywhere, requests hung instead of failing.Phase 1 — resilience (ADR 51)
render.yaml:healthCheckPath: /health(liveness only, no database)/healthexempt from the Redis-backed rate limiterconnectionTimeoutMillis5 s,statement_timeout15 sconnectTimeout3 s,commandTimeout2 srequestTimeout30 s;/health/readycapped at 3 sserver.tslogs a failedbuildApp()clearlyPhase 2 — dependencies (ADR 52)
bun audit: 22 vulnerabilities (9 high) → 1X-Forwarded-*spoofing undertrustProxy), Prisma 7.10fast-uri,find-my-way,mysql2~22.5.0— 22.6 changes the API version; that gets its own changedeepmerge-ts, pinned by Prisma, input is our own config onlyTests
438 pass, 0 fail. New:
tests/integration/health.test.ts,tests/unit/timeout.test.ts. Production Docker image builds.After merge
/health, not/health/ready