releasesig

package
v1.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const Namespace = "stepsecurity-mdm-checksum"

Namespace is bound into every release signature; a signature made for any other namespace is rejected.

View Source
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

func VerifyChecksum(checksum string, sigFile []byte) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL