-
Notifications
You must be signed in to change notification settings - Fork 66
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
filter form from logs #516
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the catch-all with form
. I think logic belongs in /vets-api/config/initializers/filter_parameter_logging.rb
@@ -47,5 +47,7 @@ class Application < Rails::Application | |||
end | |||
|
|||
config.middleware.use 'OliveBranch::Middleware' | |||
|
|||
config.filter_parameters << :form |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way to make this more specific? We may have forms in the future that don't need to be filtered. It looks like in Rails 5 you can specify the parent as well, maybe someone has written a port of that?
rails/rails#13897
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a worst-case, we could just filter :education_benefits_claim
which sits one level above :form
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
closes department-of-veterans-affairs/platform-team#171