이 페이지는 아직 사용자의 언어로 번역되지 않았거나 번역이 기술 검토를 기다리고 있습니다. 아래에는 영어 원문이 표시됩니다. 영어 페이지 열기
E1004 -- API key found in shell history
Severity: WARN. Rotate the key + scrub the history entry.
What happened
controlzero doctor found a Control Zero API key inside one of your
shell history files (~/.bash_history, ~/.zsh_history, or
~/.history). Most often this happens when someone pastes a key into
a one-off command:
export CONTROLZERO_API_KEY=cz_live_abcd1234...
controlzero install claude-code --api-key=cz_live_abcd1234...
Either of those commands lands the full key in your history file as soon as you press Enter.
Why it matters
Shell history files are:
- On disk, owned by your user, but often readable to any process running as the same user (extensions, language servers, MCP servers).
- Backed up by macOS Time Machine, iCloud Drive, Dropbox, or any
synced home-directory tool that does not exclude
.history. - Sometimes shared via dotfile repos that get pushed to GitHub.
- Cached in tmux scrollback and screen-sharing recordings.
A leaked key in history is harder to clean than a leak in a settings file because rewriting the history file is per-shell-syntax and shell-process-aware.