Skip to content

[Feature]: Scrub Request and Response Headers #70

@simonkurtz-MSFT

Description

@simonkurtz-MSFT

Describe the feature

Remove sensitive headers. Request headers containing auth credentials sent to API Management before sending requests on to backends or 3rd parties. For example, API Management subscription keys and Authorization headers should be scrubbed.

On the outbound side, response headers revealing backend information such as the ASP-Net version or web server should be removed as to not reveal internal implementations.

When removing headers, particularly inbound ones, it's important to ensure policies that rely on them being present (e.g. validate-jwt) run prior to header removal. As such, removal cannot occur in the global or product scope but most occur at the API or API operation scope.

Improvement to Project

By removing sensitive headers, we can reduce accidental credential and information leaks. This increases our security posture positively.

Are you able to collaborate and/or submit a pull request?

Yes

Metadata

Metadata

Labels

enhancementNew feature or requestsecuritySecurity-related issues

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions