You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm looking at using rest-client-components so we can filter out params which are sensitive (e.g. password). This is not to be confused with the "username:password@host" type thing which rest-client already does.
Given logging is middleware and this gem is recommended by rest-client for middleware I was looking at how to implement it.
It seems to be fairly logical BUT ParameterFilter relies on an @env variable called 'action_dispatch.parameter_filter' being setup. This exists globally in Rails.application.env_config
Hi, I'm looking at using rest-client-components so we can filter out params which are sensitive (e.g. password). This is not to be confused with the "username:password@host" type thing which rest-client already does.
We figured the most logical approach is to hook into Rails's param filter (http://api.rubyonrails.org/classes/ActionDispatch/Http/ParameterFilter.html)
Given logging is middleware and this gem is recommended by rest-client for middleware I was looking at how to implement it.
It seems to be fairly logical BUT ParameterFilter relies on an @env variable called 'action_dispatch.parameter_filter' being setup. This exists globally in Rails.application.env_config
Having a look at how this gem sets up env:
https://github.com/crohr/rest-client-components/blob/master/lib/restclient/components.rb#L102
There's no real room to get your apps existing env and make that the default or override this default, etc.
Do you have any opinion on the ability for me to "merge" this env into your default env or how I would best go about this?
The text was updated successfully, but these errors were encountered: