fix(export): redact cached Orb token envelopes#1679
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1679 +/- ##
=======================================
Coverage 95.58% 95.58%
=======================================
Files 204 204
Lines 22314 22314
Branches 8066 8066
=======================================
Hits 21329 21329
Misses 408 408
Partials 577 577 🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-06-29 15:37:52 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 3 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 4d51737 | Commit Preview URL Branch Preview URL |
Jun 28 2026, 09:49 PM |
Motivation
orb_enrollments.cached_token_jsonfrom being included in self-host D1 export artifacts, closing a redaction gap that could leak secret-bearing blobs when exports are shared.Description
cached_token_jsonto theorb_enrollmentsentry inREDACTED_COLUMNSinscripts/export-d1-core.mjsand document the column as sensitive, and extendtest/unit/export-d1-core.test.tsto assert the new redaction behavior.Testing
npx vitest run test/unit/export-d1-core.test.ts, which passed.npm run test:coveragewas started but unrelated long-running suites prevented a clean local completion (the targeted export redaction tests ran and passed);npm run test:cicould not fully complete locally due toactionlint/network and runner-label issues;npm audit --audit-level=moderatereturned403from the audit endpoint so could not complete locally.Codex Task