Verify a release
Every release artifact is signed by the GitHub Actions workflow that built it, with cosign keyless signing:
- the workflow’s GitHub OIDC token gets a short-lived certificate from Sigstore’s Fulcio;
- the signature is recorded in the public Rekor transparency log.
There is no long-lived key to leak or rotate. You verify who built it: the release workflow file of the lastpulse repository, at a release tag.
| Artifact | Where | Signed by workflow |
|---|---|---|
| Agent image (amd64, arm64) | ghcr.io/<owner>/lastpulse-k8s-agent | .github/workflows/release-agent.yml (tag agent-vX.Y.Z) |
| Agent Helm chart (OCI) | oci://ghcr.io/<owner>/charts/lastpulse-k8s-agent | release-agent.yml |
Host agent, lastpulse-cli CLI and cluster agent binaries, .deb | https://dl.lastpulse.dev/agent/vX.Y.Z/ | release-agent.yml (SHA256SUMS + one .sigstore.json bundle per file) |
| SPDX SBOMs | attached to the images (BuildKit) and as files next to the binaries (syft) | the same workflows |
You need cosign v2.4 or newer (the workflows sign with v3), plus
docker buildx or crane to inspect images. Set these once:
OWNER=lastpulse-dev # the GitHub organization the images are published under
REPO=lastpulse-k8s-agent # the repository whose workflow built the release
ISSUER=https://token.actions.githubusercontent.com
VERSION=0.4.0
1. Agent image
Always verify, and then deploy, a digest, not a tag: a tag can be moved and a digest can’t.
DIGEST=$(docker buildx imagetools inspect ghcr.io/$OWNER/lastpulse-k8s-agent:$VERSION --format '{{json .Manifest}}' | jq -r .digest)
cosign verify "ghcr.io/$OWNER/lastpulse-k8s-agent@$DIGEST" \
--certificate-oidc-issuer "$ISSUER" \
--certificate-identity "https://github.com/$OWNER/$REPO/.github/workflows/release-agent.yml@refs/tags/agent-v$VERSION"
The command prints the verified claims, including the commit SHA (githubWorkflowSha) and the Rekor entry. Exit code 0
means verified. To accept any release tag instead of one version, use
--certificate-identity-regexp "^https://github.com/$OWNER/$REPO/\.github/workflows/release-agent\.yml@refs/tags/agent-v".
Deploy that digest with the chart: --set image.digest=$DIGEST. Released charts already pin the digest they were
released with.
2. Helm chart (OCI)
CHART_DIGEST=$(crane digest ghcr.io/$OWNER/charts/lastpulse-k8s-agent:$VERSION) # or: helm pull … and read "Digest:"
cosign verify "ghcr.io/$OWNER/charts/lastpulse-k8s-agent@$CHART_DIGEST" \
--certificate-oidc-issuer "$ISSUER" \
--certificate-identity "https://github.com/$OWNER/$REPO/.github/workflows/release-agent.yml@refs/tags/agent-v$VERSION"
# install exactly what you verified
helm install lastpulse-k8s-agent "oci://ghcr.io/$OWNER/charts/lastpulse-k8s-agent@$CHART_DIGEST" -n lastpulse --create-namespace -f values.yaml
3. Host agent and binaries (verify-blob)
Download the file, its .sigstore.json bundle and SHA256SUMS (plus its bundle) from that folder:
F=lastpulse-host-linux-amd64 # or lastpulse-host_0.4.0_amd64.deb, lastpulse-k8s-agent-linux-arm64, lastpulse-cli-windows-amd64.exe, ...
BASE=https://dl.lastpulse.dev/agent/v$VERSION
curl -fsSLO "$BASE/$F" -O "$BASE/$F.sigstore.json" -O "$BASE/SHA256SUMS" -O "$BASE/SHA256SUMS.sigstore.json"
cosign verify-blob "$F" --bundle "$F.sigstore.json" \
--certificate-oidc-issuer "$ISSUER" \
--certificate-identity "https://github.com/$OWNER/$REPO/.github/workflows/release-agent.yml@refs/tags/agent-v$VERSION"
# checksums: verify the list's signature, then the file against it
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json \
--certificate-oidc-issuer "$ISSUER" \
--certificate-identity "https://github.com/$OWNER/$REPO/.github/workflows/release-agent.yml@refs/tags/agent-v$VERSION"
sha256sum --ignore-missing -c SHA256SUMS
cosign verify-blob prints Verified OK. Each Go binary also ships a *.buildinfo.txt
(go version -m: Go version, module versions, build flags).
4. SBOMs and provenance
BuildKit attaches an SPDX SBOM and SLSA provenance (mode=max) to every image, per platform:
# SPDX SBOM (packages in the image)
docker buildx imagetools inspect "ghcr.io/$OWNER/lastpulse-k8s-agent@$DIGEST" --format '{{ json (index .SBOM "linux/amd64").SPDX }}' \
| jq -r '.packages[] | "\(.name) \(.versionInfo // "")"' | sort | head -50
# SLSA provenance: source repo, commit, workflow, build arguments
docker buildx imagetools inspect "ghcr.io/$OWNER/lastpulse-k8s-agent@$DIGEST" --format '{{ json (index .Provenance "linux/amd64").SLSA }}' \
| jq '{builder: .runDetails.builder.id, source: .buildDefinition.externalParameters.configSource,
args: .buildDefinition.externalParameters.request.args}'
The release also carries syft SBOMs as files: lastpulse-k8s-agent-image.spdx.json (the image),
and lastpulse-k8s-agent-source.spdx.json (the Go module), each with a .sigstore.json
bundle. Verify a file with cosign verify-blob as in section 3, then inspect it or scan it:
jq -r '.packages[] | select(.name | test("k8s.io|golang.org")) | "\(.name) \(.versionInfo)"' lastpulse-k8s-agent-source.spdx.json
grype sbom:lastpulse-k8s-agent-image.spdx.json # known vulnerabilities, if you use grype