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.75% 95.75%
=======================================
Files 211 211
Lines 22972 22972
Branches 8294 8294
=======================================
Hits 21997 21997
Misses 401 401
Partials 574 574 🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-06-29 18:36:17 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 | 2352994 | Commit Preview URL Branch Preview URL |
Jun 29 2026, 06:00 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