Skip to content

feat: add response header removal - #68

Open
ryanwilson wants to merge 1 commit into
google:mainfrom
ryanwilson:feature/response-header-redaction
Open

ryanwilson wants to merge 1 commit into
google:mainfrom
ryanwilson:feature/response-header-redaction

Conversation

@ryanwilson

@ryanwilson ryanwilson commented Aug 27, 2026

Copy link
Copy Markdown
Member
  • Add ResponseHeaderRemovals to EndpointConfig to support filtering sensitive/internal response headers during recording.
  • Implement wildcard-aware, case-insensitive response header removal on RecordedResponse.
  • Add Go unit tests covering YAML configuration parsing and response header removals.

Comment thread internal/config/config_test.go Outdated
Comment on lines +56 to +61
TargetHost: "www.google.com",
TargetPort: 443,
SourcePort: 1443,
SourceType: "http",
TargetType: "https",
RedactRequestHeaders: []string{"X-Goog-Api-Key"},

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI this is just gofmt changing for alignment

@ryanwilson
ryanwilson force-pushed the feature/response-header-redaction branch from fcc88c9 to cb94ac5 Compare September 15, 2026 14:31
@ryanwilson ryanwilson changed the title feat: add response header redaction feat: add response header removal Sep 15, 2026
- Add ResponseHeaderRemovals to EndpointConfig to support filtering sensitive/internal response headers during recording.
- Implement wildcard-aware, case-insensitive response header removal on RecordedResponse.
- Add Go unit tests covering YAML configuration parsing and response header removals.
@ryanwilson
ryanwilson force-pushed the feature/response-header-redaction branch from cb94ac5 to 59fc978 Compare September 15, 2026 15:58
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