feat: adds observability with Worker logging and Sentry#26
Merged
wgordon17 merged 10 commits intogordon-code:mainfrom Mar 28, 2026
Merged
feat: adds observability with Worker logging and Sentry#26wgordon17 merged 10 commits intogordon-code:mainfrom
wgordon17 merged 10 commits intogordon-code:mainfrom
Conversation
- Fixes CI failure: removes test:waf script referencing gitignored hack/ dir - Fixes Content-Length bypass: enforces body.length after read, not header - Fixes parseSentryDsn path extraction: uses split/pop instead of replace - Fixes query_string scrubbing: uses scrubUrl instead of blanket redaction - Caches parsed DSN per isolate to avoid repeated URL parsing - Replaces securityHeaders() function with SECURITY_HEADERS constant - Moves token_exchange_started log after method check for accuracy - Simplifies token_exchange_missing_code log payload to 2 fields - Removes allowed_origin from api_request log (env var leak pattern) - Exports scrubUrl/beforeSendHandler/beforeBreadcrumbHandler for testing - Adds 26 new tests: sentry.ts unit tests, 413 enforcement, tunnel log assertions, OPTIONS tunnel, CORS mismatch for tunnel path
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.
Summary
@sentry/solid) with strict privacy hardening — no PII, no replay, no traces, URL scrubbing viabeforeSend/beforeBreadcrumb/api/error-reporting) through the Worker for same-origin delivery (zero CSP changes, ad-blocker bypass) with DSN validation to prevent open-proxy abuse