[codex] Redact sensitive profile and resume logs#273
Conversation
Greptile SummaryThis PR removes debug
Confidence Score: 5/5Safe to merge — all changes are pure log removals with no functional logic altered. Every changed line is either deleting a console.log call or replacing a raw value with a boolean/count indicator. No business logic, auth flow, data persistence, or API contract is touched. The one minor gap (email/phone excluded from the has_contact boolean) affects only debug output accuracy and carries no runtime risk. No files require special attention; the minor has_contact gap in import/route.ts is isolated to a debug log field. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PUT /api/profile] --> B[Parse request body]
B --> C[Schema validation]
C -->|Before PR| D1[log full body + wallet_addresses]
C -->|After PR| D2[No log]
D1 --> E[Supabase update]
D2 --> E
E -->|Before PR| F1[log saved wallet_addresses]
E -->|After PR| F2[No log]
G[POST /api/profile/import] --> H[parseResumeFile]
H --> H1[Extract text from PDF/DOCX]
H1 -->|Before PR| I1[log raw text 2000 chars]
H1 -->|After PR| I2[No log]
I1 --> J[parseWithOpenAI]
I2 --> J
J -->|Before PR| K1[log full_name, location, contact]
J -->|After PR| K2[log counts + has_full_name boolean]
K1 --> L[Return with text_preview 1500 chars in _debug]
K2 --> M[Return — no text_preview]
Reviews (2): Last reviewed commit: "Finish redacting resume import debug dat..." | Re-trigger Greptile |
Summary
_debugFixes #274.
Why
These paths handle profile data, wallet addresses, and resume/contact details. Dumping those values to server logs creates avoidable privacy exposure for routine user actions.
Validation
node_modules/.bin/tsc.cmd --noEmitgit diff --check -- src/lib/resume-parser.ts src/app/api/profile/import/route.tssrc/app/api/profile/import/route.test.tsexists in this repo.Note:
corepack pnpm install --frozen-lockfileinstalled dependencies, but the repo postinstall script failed under PowerShell because it invokes Unix-stylepnpm/truecommands. TypeScript validation was run directly after install.