Skip to content

Redact Vercel preview bypass headers - #115

Open
maxsonderby wants to merge 1 commit into
mainfrom
fix/vercel-protection-bypass
Open

Redact Vercel preview bypass headers#115
maxsonderby wants to merge 1 commit into
mainfrom
fix/vercel-protection-bypass

Conversation

@maxsonderby

Copy link
Copy Markdown

Summary

  • document the existing CASEDEV_CUSTOM_HEADERS SDK contract for infrastructure-provided headers
  • redact x-vercel-protection-bypass from --debug request logs
  • cover the default redaction behavior without mutating the outbound request

Why

Hosted staging agents can use the same CLI commands as production while infrastructure supplies Vercel Preview authentication. The automation token must not appear in debug logs or model-visible transcripts.

Tests

  • go test ./internal/debugmiddleware
  • go test ./pkg/cmd -run '^TestValidateBaseURL$'

The full generated command suite requires the repository Prism mock server and was not run locally.

@dantedanelian
dantedanelian enabled auto-merge August 6, 2026 04:28
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