Skip to content

Keep the master key in the macOS Keychain: one command, README how-to - #25

Merged
Julian-dev28 merged 1 commit into
mainfrom
docs-keychain
Nov 16, 2026
Merged

Julian-dev28 merged 1 commit into
mainfrom
docs-keychain

Conversation

@Julian-dev28

Copy link
Copy Markdown
Owner

Adds scripts/master_key_to_keychain.py (stores the key via stdin, reads back to verify, then removes it from .env.local; prints no key) and the how-to in README (safety bullet + Maintainer section) and docs/SECRETS.md. Tested with a fake Keychain and by hand against the real Keychain with a fake key.

🤖 Generated with Claude Code

…move it

scripts/master_key_to_keychain.py moves HYPERLIQUID_MASTER_PRIVATE_KEY from
the env file into the login Keychain: stores it via `security -i` on stdin
(never argv, never history), reads it back and compares, and only then
removes the line (atomic, mode kept). Prints no key. --dry-run.

README: a safety bullet for everyone (links the GitHub SECRETS.md, since
the plugin README omits the maintainer section) and a Maintainer how-to.
docs/SECRETS.md has the same steps.

Tests: tests/test_master_key_to_keychain.py (fake Keychain). Run by hand on
macOS 15 against the real Keychain with a fake key and a dummy item: dry
run, move, mode 600 kept, read back, second run is a no-op.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Julian-dev28
Julian-dev28 merged commit d84e4bc into main Nov 16, 2026
13 checks passed
Julian-dev28 added a commit that referenced this pull request Nov 16, 2026
…#25)

docs/strategy/OIL_STRATEGY.md: kept this branch's copy. Main's copy is this
branch's own e469b0e version (via #24); the branch has edited it since.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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