Skip to content

fix(logging): keep query strings out of request logs - #12

Closed
chenrui333 wants to merge 1 commit into
review-base/upstream-devfrom
fix/redact-query-strings-in-logs
Closed

chenrui333 wants to merge 1 commit into
review-base/upstream-devfrom
fix/redact-query-strings-in-logs

Conversation

@chenrui333

Copy link
Copy Markdown
Owner

Review copy of a proposed upstream change, based on falcondev-oss/github-actions-cache-server@dev (6ae06c2). Upstream accepts pull requests from collaborators only, so this branch is offered through an upstream issue.

The request, response and error log hooks and the Results Passthrough log event.path, which includes the query string. Upload URLs are used by Azure Blob-style clients that send SAS-style parameters in the query, so query strings can carry credentials. This logs paths without their query, and the upload route logs storage failures itself, because Nitro's default handler logs unhandled errors with the full URL.

Tests: pnpm test:run sqlite+filesystem 65 passed / 5 skipped.

The error hook, the debug request/response hooks and the Results
Passthrough logged `event.path` with its query string. Upload URLs are
used by Azure Blob-style clients that put SAS-style parameters in the
query, so those logs could record credentials. Log the path without its
query string.

Storage errors in the upload route are logged by the route and rethrown
as a handled error, because Nitro logs unhandled errors with the full
request URL.

The request-logging hooks move from `plugins/setup.ts` into their own
plugin so the test can drive them against the real upload route.

Signed-off-by: Rui Chen <rui@chenrui.dev>
@chenrui333

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T20:44:44.848019Z 651c24f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 651c24f1fe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chenrui333

Copy link
Copy Markdown
Owner Author

Superseded by upstream v9.10.0 (falcondev-oss#296).

@chenrui333 chenrui333 closed this Oct 29, 2026
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