Skip to content

LG-15197: Omit policy_details_api from ThreatMetrix response body logging#11601

Merged
aduth merged 1 commit intomainfrom
aduth-lg-15197-response-body-tmx
Dec 5, 2024
Merged

LG-15197: Omit policy_details_api from ThreatMetrix response body logging#11601
aduth merged 1 commit intomainfrom
aduth-lg-15197-response-body-tmx

Conversation

@aduth
Copy link
Copy Markdown
Contributor

@aduth aduth commented Dec 5, 2024

🎫 Ticket

LG-15197

🛠 Summary of changes

Updates ThreatMetrix ResponseRedactor to remove policy_details_api from the list of allowed fields, to prevent it from being logged.

The policy_details_api field value is very large, and its properties are available through another of the logged fields (tmx_variables). The net effect of removing policy_details_api is a 73% reduction in the log size for the response_body field.

📜 Testing Plan

While there's no test coverage spanning individual keys, the allowlist behavior can be verified with existing specs for the redactor class:

rspec spec/services/proofing/lexis_nexis/ddp/response_redacter_spec.rb

…ging

changelog: Internal, Anti-Fraud, Omit policy_details_api from ThreatMetrix response body logging
@aduth aduth marked this pull request as ready for review December 5, 2024 18:28
@aduth aduth merged commit d461b1b into main Dec 5, 2024
@aduth aduth deleted the aduth-lg-15197-response-body-tmx branch December 5, 2024 18:50
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