gabriel / muse public
BREAKING dev
AI Agent gabriel · 59 days ago · Apr 17, 2026 · Diff

security: revert theater zeroing; document Python memory limitation in DerivedKey

Revert bytearray-copy-then-zero on PEM bytes from C extensions (load_private_key, _load_private_key_from_path, _write_private_key_pem, sign.py) — the original immutable bytes from read_bytes() / private_bytes() / load_pem_private_key() cannot be zeroed regardless; creating a bytearray copy zeroes the copy, not the source, so it is security theater.

Add a 'Python memory-zeroing boundary' section to DerivedKey's docstring naming the limitation honestly: C extension bytes objects are immutable and cannot be zeroed; the Rust port will use the zeroize crate with a compiler fence for a proper guarantee.

sha256:01f1e0401c1c838a439f0cac01dbc718368d14d152dc828c6890611c196f092f sha
sha256:b06a0d2476ec6478b8edcced25347b21f51fdaf00db708dacf2d423e99a16080 snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:01f1e0401c1c838a439f0cac01dbc718368d14d152dc828c6890611c196f092f --body "your comment"