Skip to main content

Module sshsig

Module sshsig 

Source
Expand description

OpenSSH SSHSIG commit signature verification (I-7) per .spec/sot/identity-and-access.sot.md and OpenSSH PROTOCOL.sshsig.

Produces an honest 4-state verdict:

  • Verified { signer, fingerprint } — valid ssh-ed25519 signature matching a registered user key
  • UnverifiedUnknownKey { fingerprint } — cryptographically valid ssh-ed25519 signature, but key is not registered in ForgeStore
  • BadSignature — malformed SSHSIG armor or signature verification failure
  • Unsigned — no gpgsig header present on the commit

Enums§

CommitSigStatus
4-state commit signature verification verdict (I-7).

Functions§

split_commit_gpgsig
Extract (gpgsig_value, unsigned_commit_payload) from a raw Git commit object body.
verify_commit_sshsig
Verify an OpenSSH SSHSIG signature over signed_payload against registered keys in store. Returns None if sig_armor is not an OpenSSH signature (e.g., OpenPGP/X.509 — caller should fall back to "Signed (unverified)").