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

Not filtering query string params #229

Closed
bluengreen opened this issue Sep 27, 2017 · 3 comments
Closed

Not filtering query string params #229

bluengreen opened this issue Sep 27, 2017 · 3 comments

Comments

@bluengreen
Copy link

bluengreen commented Sep 27, 2017

I'm seeing sensitive data logged (api keys, etc) that is coming from the querystring. The path isn't being filtered for the query string. Any suggestions on how to do that other than remove the action / controller from being logged?

@benlovell
Copy link
Collaborator

benlovell commented Sep 27, 2017 via email

@bluengreen
Copy link
Author

Hmm. I'm not changing the payload. And only the query string params are the issue. All others are filtered.

@benlovell
Copy link
Collaborator

OK, they're being included in the path? The easiest thing to do is to exclude that action as you rightly stated. Otherwise, I'd happily accept a patch that performs the requisite filtering at Lograge::RequestLogSubscriber#extract_path.

stanhu added a commit to stanhu/lograge that referenced this issue Mar 20, 2018
The Location URL may contain sensitive information, so just like the path
we should remove the query string.

Closes roidrage#229
stanhu added a commit to stanhu/lograge that referenced this issue Mar 20, 2018
The Location URL may contain sensitive information, so just like the path
we should remove the query string.

Closes roidrage#229
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

No branches or pull requests

2 participants