Commit Graph

3 Commits

Author SHA1 Message Date
Christian Gick
3613e2aa52 feat(CF-2136): Add Sentry structured logging support
Enable Sentry.logger API (enableLogs, beforeSendLog) and add
logInfo/logWarn/logError helpers. Bump @sentry/node ^9.47.1 → ^10.39.0,
@sentry/profiling-node → ^10.39.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 10:22:08 +02:00
Christian Gick
c83d36a2e8 feat(CF-567): Add project key validation to prevent corrupt data
- Add PROJECT_KEY_REGEX for valid format (2-5 uppercase letters)
- Add validateProjectKey() and isValidProjectKey() functions
- Update getProjectKey() to validate input and generated keys
- Reject invalid formats with clear error messages

Invalid formats now rejected:
- Single letters (A, C, U)
- Numbers (1, 20, 123)
- Full names (ClaudeFramework, Circles)
- Mixed case (Circles)
- Too long (>5 chars)

Also fixes Sentry SDK v8 API changes (httpIntegration, postgresIntegration).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 15:03:03 +02:00
Christian Gick
840767cea3 feat(CF-536): Integrate comprehensive Sentry into task-mcp
- Create sentry.ts with MCP-aware initialization and PII scrubbing
- Replace basic inline Sentry initialization with initSentry()
- Update .env.vault-mapping for sentry.backend-node.dsn secret
- Includes PostgreSQL integration and transaction tracing

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-29 05:50:46 +02:00