Repository navigation
fix(privacy): redact credentials in feedback and diagnostics - #4526
benjaminshafii wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (5730f65e6142465a6fd985b649e6e32982b928b0). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Test evidence — feedback-removes-credentials-before-submission-and-email-delivery — ✅ passedSHA 7453a35 · engine v1 ✅ passed · 2 expectations passed · 0 failed · 0 pending verdict passed · 0 user observations · 0 probes · steps 0/0 ℹ️ ASSERTION — 1. Browser redacts pasted credentials before HTTP transmissionSynthetic bearer and API credentials absent; failure context and intentional contact preserved
ℹ️ ASSERTION — 2. Email boundary redacts direct submissions and diagnostic contextTwo synthetic emails captured locally; secrets absent and useful context/contact retained
Test run created 2026-09-05T18:12:13.433Z · Source: |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (7453a351c0d5003b5419a46fb8f4f5f1481cb7af). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Deploying openwork with
|
| Latest commit: |
c13ea14
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://960592d7.openwork.pages.dev |
| Branch Preview URL: | https://fix-mail-11-feedback-redacti.openwork.pages.dev |
Change
Feedback notes and diagnostic context could include pasted credentials. Reuse the desktop diagnostic sanitizer as a shared utility, redact feedback in the browser before HTTP transmission and again before email delivery, and sanitize the complete generated diagnostic bundle. Intentional name and reply-email fields remain separate.
Covers common bearer/basic, API and OAuth token formats, sensitive nested fields, credential assignments, CLI arguments, and URL credentials. This is bounded credential redaction, not exhaustive PII detection.
Verification
Final head: 7453a35.
bun test apps/app/tests/diagnostics-bundle.test.ts apps/app/tests/cloud-mcp-diagnostics.test.ts— exit 0, 11 passed, 0 failed.node evals/node_modules/typescript/bin/tsc --noEmit -p packages/types/tsconfig.json— exit 0.evals:node node_modules/vitest/vitest.mjs run --config vitest.config.ts --project pr --maxWorkers=1 --minWorkers=1 specs/feedback-privacy.test.ts— exit 0, 1 passed, 0 failed/skipped.node evals/scripts/spec-boundary-ratchet.mjsandnode evals/scripts/spec-channel-ratchet.mjsexit 1 on this branch and cleanorigin/devat 85a5dfc, with byte-identical output. First failures are existingbench-opencode-engines.test.tsproduct-source imports and staleactive-session-workspace-storm.e2e.test.tsbaseline counts. The new journey is not among reported violations.gh pr checks --watch --fail-fastexited 0; GitHub reports merge state CLEAN. Skipped/neutral checks are not counted as runtime proof; the targeted journey has no skips.Journey reproduction: run a local landing development server with
LANDING_FORM_ALLOWED_ORIGINSmatching its URL,SMTP_HOST=127.0.0.1, a freeSMTP_PORT, and syntheticEMAIL_FROM/OPENWORK_FEEDBACK_EMAILaddresses underexample.invalid. Clear external email provider configuration. SetOPENWORK_EVAL_LANDING_URLandOPENWORK_EVAL_FEEDBACK_SMTP_PORTto those same values, then runpnpm evals:pr specs/feedback-privacy.test.ts --maxWorkers=1 --minWorkers=1. The test owns the synthetic SMTP receiver. Local dependency reuse avoided downloads after disk pressure; temporary source-resolution links were not committed.No source messages, real credentials, real accounts, or external mail delivery were used.