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

Parameters filtered in log #84

Open
rchekaluk opened this issue Aug 24, 2015 · 1 comment
Open

Parameters filtered in log #84

rchekaluk opened this issue Aug 24, 2015 · 1 comment

Comments

@rchekaluk
Copy link
Contributor

When receiving an IPN, I observe that some parameters are filtered from the Rails log:

"transaction"=>{"0"=>{
  ".is_primary_receiver"=>"[FILTERED]", 
  ".id_for_sender_txn"=>"redacted", 
  ".receiver"=>"[FILTERED]", 
  ".amount"=>"USD 1.23", 
  ".refund_id"=>"redacted", 
  ".status"=>"Partially_Refunded", 
  ".id"=>"redacted", 
  ".refund_amount"=>"USD 0.30", 
  ".refund_account_charged"=>"redacted", 
  ".status_for_sender_txn"=>"Partially_Refunded", 
  ".paymentType"=>"SERVICE", 
  ".pending_reason"=>"NONE"
}},
...
"pay_key"=>"[FILTERED]", 
"preapproval_key"=>"[FILTERED]", 

I have not explicitly filtered these parameters in my application (using config.filter_parameters); what has configured these to be filtered?

@tc
Copy link
Owner

tc commented Aug 30, 2015

It's been a while but I think this is a purely a Rails thing?
Try sending the data via IRB or rails console and seeing the log is still
there.

On Mon, Aug 24, 2015 at 6:13 AM, rchekaluk [email protected] wrote:

When receiving an IPN, I observe that some parameters are filtered from
the Rails log:

"transaction"=>{"0"=>{
".is_primary_receiver"=>"[FILTERED]",
".id_for_sender_txn"=>"redacted",
".receiver"=>"[FILTERED]",
".amount"=>"USD 1.23",
".refund_id"=>"redacted",
".status"=>"Partially_Refunded",
".id"=>"redacted",
".refund_amount"=>"USD 0.30",
".refund_account_charged"=>"redacted",
".status_for_sender_txn"=>"Partially_Refunded",
".paymentType"=>"SERVICE",
".pending_reason"=>"NONE"
}},
...
"pay_key"=>"[FILTERED]",
"preapproval_key"=>"[FILTERED]",

I have not explicitly filtered these parameters in my application (using
config.filter_parameters
http://guides.rubyonrails.org/configuring.html#rails-general-configuration);
what has configured these to be filtered?


Reply to this email directly or view it on GitHub
#84.

Tommy Chheng

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