Properly report ring request parameters#21
Open
jeremyvdw wants to merge 2 commits intocircleci:masterfrom
Open
Properly report ring request parameters#21jeremyvdw wants to merge 2 commits intocircleci:masterfrom
jeremyvdw wants to merge 2 commits intocircleci:masterfrom
Conversation
Member
|
Thank you for the PR! I do have some concerns about sending query string/parameters and form parameters in the general case, it's fairly common for those to contain secrets such as API tokens or other credentials. |
Contributor
Author
|
@gordonsyme I do agree, that's a perfectly valid concern. Official rollbar-gem tackle this issue with a configurable scrubber: https://github.com/rollbar/rollbar-gem/blob/efe6468af071f0a37751033dc9e35dbec224be6c/lib/rollbar/configuration.rb#L103 To keep changes minimal, I can propose to update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As of version 1.0.131, the parameters of the request is not reported to Rollbar.
From ring wiki, base request parameters look like this:
It would then make sense that those are to be reported to rollcage client like:
Also ring's
wrap-parametersmiddleware adds three keys to the map::query-params,:form-paramsand:params. As a large number of people are using this middleware, it sounds reasonable to add those as arguments sent to Rollbar.