Refuse a Read, Grep or Bash call that reads ~/.claude/.env or a config's env-file
CI / tests (pull_request) Failing after 2m29s

This commit is contained in:
2026-11-13 20:56:17 +01:00
parent effe6393c0
commit 333ebe58b8
10 changed files with 143 additions and 12 deletions
+1
View File
@@ -2,6 +2,7 @@
## Unreleased
- rule-hook refuses a Read, a Grep or a Bash command that reads `~/.claude/.env` or the `env-file` of any project's config, so no credential lands in a transcript.
- To keep Mattermost DMs, move the keys from `~/.claude/.env` into a file outside the checkout and the config's folder, such as `~/.claude-projects/<key>.env`, and name it in the project's config as `env-file`; `mattermost-dm` and loop-claude's DMs no longer read `~/.claude/.env`, and a project with no `env-file` gets none. A failure names each missing key and holds no token.
## 0.10.0