v0.1.1 — save_key hardening
Lifts two defenses from Muninn v1.11.1's save_key so every tool using gungnir inherits them.
Added
KeyFileSymlinkError— raised bysave_key()when the target key file is a symlink, closing a redirect-to-arbitrary-file vector.save_key()creates the file withO_CREAT|O_TRUNCat mode0o600atomically. Previously the file existed briefly at the umask default before chmod tightened it.
Compatibility
- API surface unchanged for callers that aren't writing key files.
save_key()callers that didn't catch the new exception will see it bubble up where v0.1.0 silently followed the symlink. Treated as a defect fix.
Used by
- Muninn v2.0.0 (pinned to gungnir 3ceac29 which is this release's content)