LG-7306 Redacted logging of ThreatMetrix response#6857
Conversation
There was a problem hiding this comment.
was this not caught as part of earlier refactor? can we add a regression spec that would have caught this?
There was a problem hiding this comment.
yeah this was a bug. it was adding costing for tmx at the resolution step and checking for proofingcomponent in the spec but was using the transaction_id from resolution not tmx. i'll update the spec
There was a problem hiding this comment.
Any update on this? haven't seen specs for it yet
app/jobs/resolution_proofing_job.rb
Outdated
There was a problem hiding this comment.
where do we pass back the alerts for AAMVA, InstantVerify? Is it in this structure?
There was a problem hiding this comment.
yes. callback_log_data.result[:context][:stages][:resolution and :state_id...
085f9ac to
d3ce41c
Compare
| "tmx_risk_rating": "neutral", | ||
| "fraudpoint.score": "500" | ||
| "fraudpoint.score": "500", | ||
| "first_name": "WARNING! YOU SHOULD NEVER SEE THIS PII FIELD IN THE LOGS" |
There was a problem hiding this comment.
That's a nice way to test!
There was a problem hiding this comment.
yes. if you have suggestions on how to make that message more clear they are welcome. essentially if we see that in our log files we know there is a bug and we'll simply assume that successful responses always contain PII fields
|
@stevegsa before I approve, can you address this comment: #6857 (comment) |
zachmargolis
left a comment
There was a problem hiding this comment.
LGTM, thanks for fixing all this!
omg thanks for staying on that one. found some more costing bugs!!! that should have been a separate story. i tried to slip it in... |
stevegsa
left a comment
There was a problem hiding this comment.
Costing fix will be put in a separate pr...
Why: To prevent PII from appearing in log files. Fields like
first_nameappear when their retention is not set to zero. It will be set that way in prod but we want to be doubly sure PII-ish fields will never appear in log files.How: Create a redacter service that finds fields that should be filtered and puts the response 'redacted' in them. Note: only first level fields will be processed
Example ThreatMetrix response logging event: