fix(auth): run_register derives key from mnemonic, no PEM read or key_path
- Replace load_private_key(hostname) with mnemonic derivation via hd_path from the existing keygen identity entry - Remove key_path from the written identity entry - Use hd_path_for_register (already loaded) instead of re-reading with load_identity - Update tests: _setup_key now runs keygen + patches keychain instead of writing a bare PEM; assert hd_path present and key_path absent post-register - Add test_auth_register_integrity.py (R1-R4): data-integrity invariants hd_path preserved, no key_path, fingerprint matches mnemonic, round-trip works
sha256:000c6ae34bd049b98afef153e1cd959782ddcdaecab94622663435f2a4f39114
sha
+27
~8
symbols
sha256:1af17661ecd03c8d6a15aad034afffbf5f438415a4d859d9130b56ad08167957
snapshot
+27
symbols added
~8
symbols modified
0
dead code introduced
Semantic Changes
35 symbols
+
TestRegisterFingerprintMatchesMnemonic
class
class TestRegisterFingerprintMatchesMnemonic L147–173
+
test_R3_fingerprint_matches_mnemonic_derivation
method
method test_R3_fingerprint_matches_mnemonic_derivation L150–173
+
test_R1_hd_path_present_after_register
method
method test_R1_hd_path_present_after_register L109–124
+
test_R4_resolve_signing_identity_works_after_register
method
method test_R4_resolve_signing_identity_works_after_register L179–197
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:000c6ae34bd049b98afef153e1cd959782ddcdaecab94622663435f2a4f39114 --body "your comment"
No comments yet. Be the first to start the discussion.