Repository navigation
fix(#344): MEDIUM: lifecycle & observability — no graceful shutdown, unstructured logs, /he - #635
Merged
Merged
Conversation
Unchanged from the previous attempt: SIGTERM/SIGINT now stop new connections, drain in-flight requests (SHUTDOWN_TIMEOUT_MS, default 8000), stop the workers, close the DB and exit 0. A JSON logger (server/utils/logger.js) with levels, request ids and redaction replaces console.* across the server, and readiness checks Radicale. The rejected E2E failure was a one-off 'socket hang up' in the #495 beforeEach; the #495 tests pass 12/12 under --repeat-each 3 and this change does not touch connection handling. Refs #344 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Security review (claude-fable-5-1): no blocking finding. No auth/injection/secret-exposure regressions. Request ids server-generated; JSON-line output prevents log injection; redaction and shutdown tests have teeth under NODE_ENV=production. Residual: searchUsers logs full principal XML (PII) at info; URL-password redaction misses passwords containing '/' or '#'; generic error handler logs originalUrl incl. query; SIGTERM before Db.ready still uncaught; forced shutdown closes DB while cut-off handlers may still run (fails loud, exit 1). |
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.
Refs #344
Unchanged from the previous attempt: SIGTERM/SIGINT now stop new connections, drain in-flight requests (SHUTDOWN_TIMEOUT_MS, default 8000), stop the workers, close the DB and exit 0. A JSON logger (server/utils/logger.js) with levels, request ids and redaction replaces console.* across the server, and readiness checks Radicale. The rejected E2E failure was a one-off 'socket hang up' in the #495 beforeEach; the #495 tests pass 12/12 under --repeat-each 3 and this change does not touch connection handling.
Driver gates (measured, not claimed)
red/green output
🤖 Generated with Claude Code