Docs / Running yasp

Verifying a release

Every release is built by GitHub Actions from a tagged commit, with no long-lived signing keys. Each release ships:

FileWhat it is
yasp-<target>, yasp-probe-<target>Static binaries (x86_64 and aarch64, musl)
yasp.cdx.json, yasp-probe.cdx.jsonCycloneDX 1.5 SBOMs: every crate compiled into each binary
SHA256SUMSChecksums of all of the above
SHA256SUMS.sigstore.jsonKeyless cosign signature of SHA256SUMS (Sigstore bundle)

Every file also has a SLSA build-provenance attestation, and the yasp binaries have an SBOM attestation, stored with GitHub. The container images (ghcr.io/yasp-dev/yasp, ghcr.io/yasp-dev/yasp-probe and ghcr.io/yasp-dev/yasp-saml, each for linux/amd64 and linux/arm64) are signed with cosign and carry SBOM and provenance attestations in the registry.

Replace v0.1.1 and yasp-dev/yasp below with the release and repository you're installing from. v0.1.0 was built before the project moved to the yasp-dev organization: for that release, use Akshit-WTF/yasp in the certificate identity and --repo, and ghcr.io/akshit-wtf for its images.

# Binaries

  1. Check that the checksums were signed by this repository's release workflow:

    cosign verify-blob SHA256SUMS \
      --bundle SHA256SUMS.sigstore.json \
      --certificate-identity "https://github.com/yasp-dev/yasp/.github/workflows/release.yml@refs/tags/v0.1.1" \
      --certificate-oidc-issuer https://token.actions.githubusercontent.com
  2. Check the files against them:

    sha256sum --check --ignore-missing SHA256SUMS
  3. Optionally, check the build provenance with the GitHub CLI:

    gh attestation verify yasp-x86_64-unknown-linux-musl --repo yasp-dev/yasp

# Container images

The same commands work for yasp-probe and yasp-saml.

cosign verify ghcr.io/yasp-dev/yasp:v0.1.1 \
  --certificate-identity "https://github.com/yasp-dev/yasp/.github/workflows/release.yml@refs/tags/v0.1.1" \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

gh attestation verify oci://ghcr.io/yasp-dev/yasp:v0.1.1 --repo yasp-dev/yasp

The SBOM attached to an image can be read with docker buildx imagetools inspect ghcr.io/yasp-dev/yasp:v0.1.1 --format '{{ json .SBOM }}'.

# Scanning the SBOM

The SBOMs work with any CycloneDX tool, for example:

grype sbom:yasp.cdx.json
osv-scanner scan --sbom yasp.cdx.json

cargo deny check runs on every commit in CI and blocks known advisories, so a fresh release should come back clean.