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

Whitelist parameters #537

Merged
merged 2 commits into from
Nov 16, 2016
Merged

Whitelist parameters #537

merged 2 commits into from
Nov 16, 2016

Conversation

aub
Copy link
Contributor

@aub aub commented Nov 16, 2016

Our approach up to now has been to blacklist request parameters from the Rails logs. We've been directed to ensure that no PII makes its way into these logs, so this switches the approach to whitelisting, by default only logging the controller, action, and id.

Rails's method of doing this is pretty janky, letting you specify a block that must modify the parameters in-place. Under test, the parameters can be symbols, which one cannot modify in-place, although this does not seem to be the case in the app server.

@aub aub merged commit 823284d into master Nov 16, 2016
@aub aub deleted the whitelist branch November 16, 2016 18:08
@aub aub removed the in progress label Nov 16, 2016
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.

6 participants