Skip to content

feat: add response header redaction - #68

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

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

Conversation

@ryanwilson

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

- Add RedactResponseHeaders to EndpointConfig to support filtering sensitive/internal response headers during recording.
- Implement wildcard-aware, case-insensitive response header redaction on RecordedResponse.
- Add Go unit tests covering YAML configuration parsing and response header redactions.
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

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