Skip to content
This repository was archived by the owner on Apr 22, 2021. It is now read-only.

Make sure to send pii_from_doc in ProofDocument, ProofDocumentMock#43

Merged
zachmargolis merged 2 commits intomasterfrom
margolis-document-proofer-pii
Nov 27, 2020
Merged

Make sure to send pii_from_doc in ProofDocument, ProofDocumentMock#43
zachmargolis merged 2 commits intomasterfrom
margolis-document-proofer-pii

Conversation

@zachmargolis
Copy link
Copy Markdown
Contributor

Why: GetResultsResponse#to_h (from identity-doc-auth)
intentionally excludes to prevent accidental logging

@aduth's comment (18F/identity-idp#4464 (comment)) prompted me to check in why we weren't receiving PII, and the answer was because we exclude PII from #to_h intentionally: https://github.com/18F/identity-doc-auth/blob/ac9f43820717343788ea6e0dfb9f75f8ec610f8d/lib/identity_doc_auth/acuant/responses/get_results_response.rb#L27-L40

**Why**: GetResultsResponse#to_h (from identity-doc-auth)
intentionally excludes to prevent accidental logging
end

result = proofer_result.to_h
# pii_from_doc is excluded from to_h to prevent accidental logging
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Copy Markdown
Contributor

@stevegsa stevegsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@zachmargolis zachmargolis merged commit 67f4401 into master Nov 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants