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

Add a processor to sanitize the HTTP headers #428

Merged

Conversation

ste93cry
Copy link
Collaborator

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes

Some HTTP headers like the Authorization header could contain sensitive informations. The processor added with this PR is a porting of the one added for the Ruby client in getsentry/sentry-ruby#537

@ste93cry ste93cry force-pushed the feature/sanitize-http-headers-processor branch 2 times, most recently from 384d630 to d3e3f1b Compare March 13, 2017 18:47
@dcramer
Copy link
Member

dcramer commented Mar 13, 2017

Any reason you wouldn't use processorOptions for this?

@ste93cry
Copy link
Collaborator Author

The reason is that the code is a porting from the Ruby processor where the options were specified directly in the configuration of the client. If you want (I absolutely agree on this) I can change the code to use that method instead.

@dcramer
Copy link
Member

dcramer commented Mar 24, 2017

sorry for delay -- most of our SDKs aren't fully in sync with non-standard configuration, so I'd prefer we use processorOptions here

@ste93cry ste93cry force-pushed the feature/sanitize-http-headers-processor branch from d3e3f1b to e49ffe9 Compare March 24, 2017 00:09
@ste93cry ste93cry force-pushed the feature/sanitize-http-headers-processor branch from e49ffe9 to a9b5cd2 Compare March 24, 2017 00:11
@ste93cry
Copy link
Collaborator Author

I fixed everything as requested, PR is ready for review and merge

@dcramer dcramer merged commit 801367e into getsentry:master Mar 24, 2017
@dcramer
Copy link
Member

dcramer commented Mar 24, 2017

Thanks!

@ste93cry ste93cry deleted the feature/sanitize-http-headers-processor branch March 24, 2017 00:26
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.

None yet

2 participants