Description
This is a backend issue. app/lib/logger.ts logs request bodies that may contain Stellar memo PII. Add a redaction layer that masks emails, phone numbers, and long base32 strings except first/last 4.
Requirements and Context
- Redaction in serializer
- Tests with sample payloads
- Allowlist for explicit log fields
- Must be secure, tested, and documented
- Should be efficient and easy to review
Suggested Execution
- Fork the repo and create a branch
git checkout -b bug/logger-pii-redaction
- Implement changes
app/lib/logger.ts
app/lib/privacy.ts
- Test and commit
npm test -- logger privacy
- Include test output and notes in the PR
Example commit message
fix: redact PII in structured logs
Acceptance Criteria
Guidelines
- Allowlist over denylist
- Clear documentation and inline comments
- Timeframe: 96 hours
Description
This is a backend issue.
app/lib/logger.tslogs request bodies that may contain Stellar memo PII. Add a redaction layer that masks emails, phone numbers, and long base32 strings except first/last 4.Requirements and Context
Suggested Execution
app/lib/logger.tsapp/lib/privacy.tsnpm test -- logger privacyExample commit message
Acceptance Criteria
Guidelines