Skip to content

Server: redact query strings in Workers logs, which kept article URLs in clear - #266

Merged
TheGlitching merged 1 commit into
mainfrom
fm/squiggle-logs-redact
Nov 23, 2026
Merged

TheGlitching merged 1 commit into
mainfrom
fm/squiggle-logs-redact

Conversation

@TheGlitching

Copy link
Copy Markdown
Owner

Invocation logs are off since #264, but the lines server/src/lib/log.ts writes are still stored with the request URL, and its ?url= is the article address. This sets observability.redact_query_string so Cloudflare strips the query string from every logged request URL.

  • server/wrangler.jsonc: redact_query_string: true at the top level; no environment overrides observability, so it applies to all of them.
  • server/tests/deploy.test.ts: the logs test now checks it.
  • log.ts itself already records the route pattern, never the query string, and nothing else in server/src writes to the console.

Server tests (415) and typecheck pass.

@TheGlitching
TheGlitching merged commit c327586 into main Nov 23, 2026
1 check passed
@TheGlitching
TheGlitching deleted the fm/squiggle-logs-redact branch November 23, 2026 22:16
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