How packslip works

For publishers and installer authors new to packslip: follow one release from build to installation, and see which files belong in your repository, in the release, and at the well-known URL. To run commands now, use Try packslip locally or Bootstrap a tool.

A release's packslip connects the vendor's release job with the installer that consumes its output. The vendor signs a description of the files it built. The installer uses that description to select a download, check who published it, and check that the downloaded bytes match. Adopting packslip requires no change to your build or release hosting.

From build to installation

  1. Build and package. Produce the final archives, executables, installers, and separate resource files. Finish any platform signing or notarization that changes the files before you create the packslip, because the packslip records the final bytes.
  2. Describe and sign. packslip create takes the local files and release metadata, hashes the files, and records their platform and layout. It signs the resulting statement with a CI identity (keyless) or an Ed25519 key. Either way, the result is an in-toto statement in a Sigstore bundle.
  3. Publish. Upload the artifacts and any separate resource assets to the URLs the statement records, and put the release bundle beside them. Each recorded URL must serve exactly the bytes that were hashed. On GitHub, the jdx/packslip action signs the bundle and, by default, uploads it to the release; see Publish with GitHub Actions.
  4. Make the release discoverable. A GitHub project whose tags name their versions needs nothing more: consumers find its releases through GitHub and read each version from its tag. A domain project publishes a signed release list at its well-known URL. Consumers refuse a domain project that has no release list there. A gitlab.com project has no discovery, so packslip install refuses it.
  5. Verify and install. The consumer finds an eligible release and verifies its signer and metadata against the requested project. It then chooses an artifact and checks the downloaded bytes before unpacking or running them.

Two packslip commands verify releases:

Three files with different jobs

Only the two signed files, the release bundle and the release list, are published for consumers. release.toml is local input to the release job.

FileCreated byContainsWhere it belongs
release.toml (optional)The vendorLocal paths, metadata overrides, and resource declarations, passed with packslip create --manifest.The source repository or build workspace.
The release bundle, packslip.sigstore.jsonpackslip create, or the jdx/packslip actionOne release statement, its signature, and verification material.Beside the published release files.
The release listpackslip releases or the jdx/packslip/releases actionA signed list of release bundles, their digests, and discovery policy such as withdrawals.A domain project's well-known URL: https://<host>/.well-known/packslip.json, or https://<host>/.well-known/packslip/<path>.json for a name with a path. A GitHub repository's optional list goes under .well-known/ on its default branch.

packslip create resolves release.toml's local paths into subject names, digests, download URLs, and artifact metadata, so uploading release.toml alone does not publish a packslip. The release.toml reference lists its keys.

Inside the release bundle, the statement's subject lists file digests, and its predicate holds the project, version, artifacts, and resources. packslip show prints the statement without verifying it. The JSON schemas describe the decoded statements, not release.toml or the outer Sigstore bundle.

Identity, version, and location

Keep these values distinct when you configure a release:

ValueExamplePurpose
Projectgithub.com/owner/mytoolNames the tool the consumer requested. It has no URL scheme.
Version1.2.3The release's semver version, used for selection.
Source tagmytool-v1.2.3Preserves the vendor's tag spelling.
Artifact URLhttps://github.com/owner/mytool/releases/download/mytool-v1.2.3/mytool-linux-x64.tar.gzLocates bytes whose digest is in the signed statement.
SignerA workflow identity and issuer, or a trusted public keyAuthenticates the statement.

Artifact URLs can point at any download host. How trust works explains which signer a consumer expects for a project, and why the download host does not replace that check. The version is semver whatever the tag looks like; see Spelling a version.

What changes after publication

Warning: Do not change a release's files or its bundle once they are published. A changed archive no longer matches its signed digest, so consumers refuse it. A re-signed bundle has a new digest, so it no longer matches the digest a release list recorded for it. Publish changed software as a new release.

Publish a new signed release list to withdraw a release, mark a security fix, recommend a default version, or extend the list's expiry. The release bundles stay unchanged. Manage release lists explains sequence numbers, expiry, and what a GitHub project's list must keep.

Put it into practice