Documentation
¶
Overview ¶
Package releasesig verifies the signed checksums published with every dev-machine-guard release (`<asset>.sha256.sig`). The release operator signs the asset's hex SHA-256 with `ssh-keygen -Y sign` under a fixed namespace; the loaders verify it with `ssh-keygen -Y verify`. This package does the same check with the standard library only, so the agent can trust a binary it downloads itself without shelling out to ssh-keygen.
Format reference: OpenSSH PROTOCOL.sshsig. Only ssh-ed25519 keys are accepted, which is what the release key is.
Index ¶
Constants ¶
const Namespace = "stepsecurity-mdm-checksum"
Namespace is bound into every release signature; a signature made for any other namespace is rejected.
const PublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILN+WG4lOH/x6MysYOf1oY0PKXLLu9d3ZvQDcvq5Cboi releases@stepsecurity.io"
PublicKey is the release signing key, the same one the agent-api loaders pin (scripts/*/stepsecurity-loader.* PUBLIC_KEY_SSH).
Variables ¶
This section is empty.
Functions ¶
func VerifyChecksum ¶
VerifyChecksum reports whether sigFile is a valid release signature over checksum (the lowercase hex SHA-256 of the asset). sigFile is the content of a `.sha256.sig` release asset: base64 of the armored SSH signature. A raw armored signature is accepted too.
Types ¶
This section is empty.