> ## Documentation Index
> Fetch the complete documentation index at: https://docs.backtale.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify the Backtale image with cosign

> Pull ghcr.io/rahilp/backtale by the 1.0.0 digest and check the cosign signature, SBOM, and provenance with the published public key.

Check the Backtale image with the `cosign.pub` file from your order before you start it. The signature and the two attestations are the proof. Backtale does not publish those signatures to the public Sigstore log, so the public key is the whole check, including on a machine that cannot reach Sigstore.

Install cosign 2.4 or later. You do not run `docker login`. The package `ghcr.io/rahilp/backtale` is public.

## Fingerprint the key first

The SHA-256 fingerprint of `docs/release/cosign.pub` for this release is:

```text theme={null}
8c6b0c4269c1aace534479a90f72b3d45f3b3be44a099d1eda60fec094578e82
```

Backtale also sends that string on a second channel. Print the fingerprint of the file you have:

```bash theme={null}
openssl pkey -pubin -in cosign.pub -outform DER | openssl dgst -sha256
```

Stop if the two strings differ. Do not verify or run the image with a key you cannot match.

## Pull and verify release 1.0.0

**1. Pull the digest**

```bash theme={null}
DIGEST=sha256:a4b6216589d14bd4be4deb7db4ed2f81ad28f65b76475135d741bab4c0d8721a
IMAGE=ghcr.io/rahilp/backtale@$DIGEST
docker pull "$IMAGE"
```

**2. Check the signature and attestations**

Each command must exit 0. `--insecure-ignore-tlog=true` is expected.

```bash theme={null}
cosign verify --key cosign.pub --insecure-ignore-tlog=true "$IMAGE"
cosign verify-attestation --key cosign.pub --insecure-ignore-tlog=true --type cyclonedx "$IMAGE"
cosign verify-attestation --key cosign.pub --insecure-ignore-tlog=true --type slsaprovenance1 "$IMAGE"
```

**3. Stop on any failure**

If a command fails, do not run the image. Contact Backtale support and send the command output. The CycloneDX attestation is the same bill of materials attached to the release as `sbom.cdx.json`.

A later release uses the same commands with the new digest from that release's notes. Replace `DIGEST` only after you have read [Upgrade by digest](https://docs.backtale.app/install/upgrade.md).

## Optional mirror

You can copy the image and its signatures into your own registry:

```bash theme={null}
cosign copy ghcr.io/rahilp/backtale@sha256:a4b6216589d14bd4be4deb7db4ed2f81ad28f65b76475135d741bab4c0d8721a your.registry/backtale
```

Still deploy by digest. On AWS, App Runner cannot pull GitHub Container Registry, so the Terraform pack mirrors into Amazon ECR with `mirror-image.sh`. See [AWS](https://docs.backtale.app/install/aws.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.