Skip to content

fix(privacy): redact credentials in feedback and diagnostics - #4526

Open
benjaminshafii wants to merge 3 commits into
devfrom
fix/mail-11-feedback-redaction
Open

benjaminshafii wants to merge 3 commits into
devfrom
fix/mail-11-feedback-redaction

Conversation

@benjaminshafii

@benjaminshafii benjaminshafii commented Sep 5, 2026 •

Copy link
Copy Markdown
Member

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.

  • Published journey evidence: Passed, 1 journey, 2 recorded assertion groups, no skips. Browser HTTP payload and two locally captured SMTP messages exclude synthetic credentials while retaining context and intentional contact fields.
  • Diagnostic regressions: bun test apps/app/tests/diagnostics-bundle.test.ts apps/app/tests/cloud-mcp-diagnostics.test.ts — exit 0, 11 passed, 0 failed.
  • Shared types: node evals/node_modules/typescript/bin/tsc --noEmit -p packages/types/tsconfig.json — exit 0.
  • Local PR lane, restarted landing server on final head; this lane emitted no placement line. Executed the underlying runner from 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.
  • Both node evals/scripts/spec-boundary-ratchet.mjs and node evals/scripts/spec-channel-ratchet.mjs exit 1 on this branch and clean origin/dev at 85a5dfc, with byte-identical output. First failures are existing bench-opencode-engines.test.ts product-source imports and stale active-session-workspace-storm.e2e.test.ts baseline counts. The new journey is not among reported violations.
  • Final-head GitHub checks completed: 28 successful, 0 failed/pending, 6 conditional skips, 1 neutral review check. gh pr checks --watch --fail-fast exited 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_ORIGINS matching its URL, SMTP_HOST=127.0.0.1, a free SMTP_PORT, and synthetic EMAIL_FROM / OPENWORK_FEEDBACK_EMAIL addresses under example.invalid. Clear external email provider configuration. Set OPENWORK_EVAL_LANDING_URL and OPENWORK_EVAL_FEEDBACK_SMTP_PORT to those same values, then run pnpm 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.

@vercel

vercel Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Skipped Skipped Sep 5, 2026 7:53pm UTC
openwork-den Skipped Skipped Sep 5, 2026 7:53pm UTC
openwork-diagnostics Skipped Skipped Sep 5, 2026 7:53pm UTC
openwork-landing Skipped Skipped Sep 5, 2026 7:53pm UTC

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 5, 2026

@diff-warden diff-warden Bot left a comment

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.

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

@benjaminshafii

Copy link
Copy Markdown
Member Author

Test evidence — feedback-removes-credentials-before-submission-and-email-delivery — ✅ passed

SHA 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 transmission

Synthetic bearer and API credentials absent; failure context and intentional contact preserved

  • ✅ PASS Browser redacts pasted credentials before HTTP transmission — Synthetic bearer and API credentials absent; failure context and intentional contact preserved

ℹ️ ASSERTION — 2. Email boundary redacts direct submissions and diagnostic context

Two synthetic emails captured locally; secrets absent and useful context/contact retained

  • ✅ PASS Email boundary redacts direct submissions and diagnostic context — Two synthetic emails captured locally; secrets absent and useful context/contact retained

Test run created 2026-09-05T18:12:13.433Z · Source: evals/results/test-runs/2026-09-05T18-12-13-432Z-feedback-removes-credentials-before-submission-and-email-delivery/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4526 --test-run 2026-09-05T18-12-13-432Z-feedback-removes-credentials-before-submission-and-email-delivery

@benjaminshafii
benjaminshafii marked this pull request as ready for review September 5, 2026 18:12

@diff-warden diff-warden Bot left a comment

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.

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

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

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

View logs

This branch was previously deployed

4 inactive deployments
Preview – openwork-den — c13ea140 Deployed Sep 5, 2026 by vercel[bot]
Preview – openwork-landing — c13ea140 Deployed Sep 5, 2026 by vercel[bot]
Preview – openwork-diagnostics — c13ea140 Deployed Sep 5, 2026 by vercel[bot]
Preview – openwork-app — c13ea140 Deployed Sep 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant