Skip to content

chore(backlog): file and triage age secret key and Databricks/Square token redaction gaps - #109

Merged
jmlweb merged 2 commits into
mainfrom
hustle/maintainer/backlog-2026-11-25
Nov 25, 2026
Merged

jmlweb merged 2 commits into
mainfrom
hustle/maintainer/backlog-2026-11-25

Conversation

@jmlweb

@jmlweb jmlweb commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Backlog grooming run, 2026-11-25. Only .backlog/ changes.

State before the run

  • Pending reports: none. Pending ideas: none.
  • pnpm check and pnpm test pass on main (Node 22.22, NODE_ENV=development, per LRN-008).

Reports filed

Both were found by probing sanitize() with realistic token formats; neither is covered by a pending task (TSK-003/006/010–017) or a learning.

  • RPT-018 (security, high): age secret keys (AGE-SECRET-KEY-1 + 58 uppercase Bech32 characters) pass through sanitize (src/core/sanitizer.ts:802) unchanged. There is no dedicated rule. The opaque-id fallback (src/core/sanitizer.ts:217-237) only redacts runs that mix lowercase, uppercase and digits, and these keys are uppercase only. A full private key can therefore reach the report and the engine excerpts. Rated high because it is a private key, in the same class as the PEM keys the contract already redacts.
  • RPT-019 (security, medium): bare Databricks PATs (dapi + 32 hex characters) and Square access tokens (sq0atp- + 22 characters) are not redacted (redactProviderTokens, src/core/sanitizer.ts:87). They are caught only after --token or token=. Rated medium, the same as the earlier provider-token gaps (RPT-016, RPT-017).

Triage

  • RPT-018 → TSK-018 (P2, high). The criteria cover upper- and lowercase keys, age1... recipients staying readable, and tests.
  • RPT-019 → TSK-019 (P3, medium). The criteria cover both prefixes, no false positives on other hex words, and tests.

Idea reviews

None pending.

Note on one manual edit

GitHub push protection rejected the first push. Line 31 of RPT-019 is the reproduction's expected-output comment, and it contained the full sample Square token. I replaced that one body line by hand with <input unchanged, full token included>. Every other change, including all frontmatter, was made through the flowstate CLI.

🤖 Generated with Claude Code

…token redaction gaps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jmlweb

jmlweb commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

🤖 hustle review: approve — Only .backlog/ files change. Both reports cite file:line and reproductions, the triage matches the evidence, and the one manual edit is disclosed and harmless. The only flaw is that one RPT-018 sample body is 54 characters instead of 58, which is minor.

Resolve task index stats conflict: 11 pending, 8 complete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jmlweb

jmlweb commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

🤖 hustle review: approve — Only .backlog/ files changed. Both reports cite file:line with reproduction output, and TSK-018 and TSK-019 follow from that evidence with testable acceptance criteria. The index counts match, and the one manual edit removed a secret and is disclosed.

@jmlweb
jmlweb merged commit c3d1934 into main Nov 25, 2026
8 checks passed
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