-
Notifications
You must be signed in to change notification settings - Fork 14
Description
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