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

Make credit card parameter filtering more specific #2481

Merged
merged 1 commit into from
Jan 18, 2018

Conversation

jordan-brough
Copy link
Contributor

@jordan-brough jordan-brough commented Jan 3, 2018

Avoid unintentionally filtering out other parameters matching these names. In
particular "number" is a param that shows up in other places is often important
to have in the logs.

These days most shops don't have credit card numbers posted directly to their
applications anyway.

Relevant previous PR: #1755 and issue: #1752

Avoid unintentionally filtering out other parameters matching these names. In
particular "number" is a param that shows up in other places is often important
to *have* in the logs.

These days most shops don't have credit card numbers posted directly to their
applications anyway.
@jhawthorn jhawthorn self-assigned this Jan 17, 2018
Copy link
Contributor

@jhawthorn jhawthorn left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I double checked this by looking through the logs after a spec run and as far as I can tell it filtered all occurrences of "number" it should have.

I used:

cat backend/spec/dummy/log/test.log | grep '^  Parameters:' | grep number
cat frontend/spec/dummy/log/test.log | grep '^  Parameters:' | grep number

@jhawthorn jhawthorn merged commit b253d60 into solidusio:master Jan 18, 2018
@jordan-brough jordan-brough deleted the restrict-number-filtering branch January 22, 2018 14:55
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.

2 participants