Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROD-36670] Expose new headerValueCallback option that will called on every visible header #107

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

stolosapo
Copy link
Contributor

Summary

This PR exposes a new callback function, the headerValueCallback. This function will be called on every visible header. And will give the ability to mutate the value of the header that will be logged.

This is useful in cases where the header value contains sensitive data that needed to be hide.

This PR is created as part of fixing the following issue: https://workable.atlassian.net/browse/PROD-36670
where the JWT token is part of the location header and although that the location header is needed to be logged it is also needed to not include id_token as part of it, because of a security issue.

Copy link
Contributor

@nikostoulas nikostoulas left a comment

Choose a reason for hiding this comment

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

Nice job @stolosapo !

Copy link
Contributor

@klesgidis klesgidis left a comment

Choose a reason for hiding this comment

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

💯

@stolosapo stolosapo merged commit e2449fe into master Apr 19, 2024
3 checks passed
@stolosapo stolosapo deleted the feature/header-value-callback branch April 19, 2024 12:44
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.

3 participants