Repository navigation
Conversation
We want more information on what data was actually retrieved from the credential.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@copilot go bananas on this PR. Codecov is also complaining about the "documentDataForLog" function missing a test, please add that. |
Co-authored-by: Didr <9605751+Didr@users.noreply.github.com>
Added table-driven coverage for portrait redaction, the empty-portrait case, and preservation of document fields. |
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Debug logs expose personal identity and expiry data contrary to the repository’s privacy policy.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Adds debug diagnostics for document parsing in ID scan and process-request flows to investigate issues #70 and #71.
Changes:
- Logs OCR document data with portrait omission.
- Adds expiry-check diagnostic fields.
- Updates and adds related tests.
| File | Description |
|---|---|
internal/apiv1/client.go |
Adds document and expiry debug logging. |
internal/apiv1/liveness_expiry_test.go |
Updates expiry tests and tests portrait omission. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
||
| // documentDataForLog is the OCR result written at debug level. The portrait | ||
| // is a base64 face image, so only its length is included. | ||
| func documentDataForLog(doc facetec.DocumentData) facetec.DocumentData { |
Co-authored-by: Didr <9605751+Didr@users.noreply.github.com>
Addressed the privacy review finding in 33c27b8. |
|
Already implemented in #75 |




Added this while debugging #70 and #71.