token-hygiene: `cat .env.local 2>/dev/null` counts as redacted
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- security, typescript
Research direction
Start in .claude/hooks/repo/token-hygiene/index.mts, where any > in a command is treated as a redaction step, and the .env read rule matches only bat|cat|head|less|more|tail. First confirm whether fleet/index.cjs loads this file or a synced copy, since that decides where the fix goes. Done means cat .env.local 2>/dev/null and cat .env.local 2>&1 are blocked, other readers of .env files are caught, and existing hook tests still pass.
Written by the indexing model from the issue text.
Description
In .claude/hooks/repo/token-hygiene/index.mts, any > in the command counts as a redaction step, so cat .env.local 2>/dev/null and cat .env.local 2>&1 are allowed while still printing every value to stdout. The .env read rule also only names bat|cat|head|less|more|tail, so other readers of the same file pass it.
I checked the rules in this file against our spellings by copying its patterns; I couldn't tell from the repo whether fleet/index.cjs runs this file or its own copy, so this may apply only to the copies synced to other repos. Happy to send the full list and a PR. I build Paveo, an open-source test for agent guards: uvx paveo test runs a repo's hooks the way Claude Code calls them.
- Dominant language
- TypeScript
- Stars
- 340
- Forks
- 78
- Avg merge
- 1d 33m
- Merged PRs (30d)
- 76
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SocketDev/socket-cli
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
SocketDev/socket-cli#1655 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
SocketDev/socket-cli#1691 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 22/100
SocketDev/socket-cli#1689 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 15/100
SocketDev/socket-cli#1688 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
SocketDev/socket-cli#1675 ·
Maintainers usually reply within 1 day
All issues in SocketDev/socket-cli
Similar issues
-
triage
Difficulty 1/5 Under an hour Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
ranxianglei/billion-context#7860 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opencollective/opencollective#9177 ·