Skip to main content
Every Docker image that Cube publishes to Docker Hub carries signed GitHub artifact attestations:
  • Build provenance (SLSA v1): the repository, workflow, Git ref and commit that built the image.
  • SBOM (SPDX 2.3): the packages inside the image.
They are signed keylessly with Sigstore: the signing certificate is issued to the GitHub Actions workflow run itself, and every signature is recorded in the public Rekor transparency log. There is no long-lived key to distribute or trust. This covers cubejs/cube (release, -jdk and dev tags) and cubejs/cubestore (release, -non-avx, -arm64v8 and edge tags). Images published before attestations were introduced have none, and fail verification. Replace vX.Y.Z in the examples below with the tag you run.

With the GitHub CLI

Install the GitHub CLI and verify that the image was built by the release workflow from its tag:
Pin the workflow and ref as shown. CI runs for pull requests in cube-js/cube also sign attestations, so --owner cube-js or --repo on their own would accept those too. To verify and print the SBOM, add its predicate type:
Add --bundle-from-oci to read the attestations from the registry, where they are stored next to the image, rather than from the GitHub API. On the multi-architecture tags (cubejs/cube and cubejs/cubestore releases, and cubejs/cubestore:edge), the SBOM attested on the tag describes linux/amd64. Their linux/amd64 and linux/arm64 manifests carry their own: verify oci://<image>@<digest>, with the same flags as above, using the platform digest that docker buildx imagetools inspect <image>:<tag> lists.

With cosign

cosign v3 or later reads the same attestations. Pin the identity to the release workflow and a tag:
Use --type https://spdx.dev/Document/v2.3 for the SBOM. For dev and edge, use the workflow from the table above with @refs/heads/master.

In an air-gapped environment

Verification needs Sigstore’s trusted root and the attestations, both of which can be carried across with the image.
1

Export the trusted root

On a machine with internet access:
2

Copy the image with its attestations

oras cp -r copies the image together with the attestations that refer to it:
3

Verify from your registry

Refresh trusted_root.jsonl periodically: Sigstore rotates its keys and certificate authorities.