Skip to content
Opod

Security

Supply chain

Digest-pinned images, offline cosign keyless verification against a trust list, enforce or warn, and model signature checks during prefetch.

In short

Every image an endpoint runs is pinned by digest, so the bytes cannot change behind you. The control plane checks each image's cosign signature offline and compares the signer with a trust list. By default (warn) it records a missing or bad signature and carries on. With enforce, it refuses the rollout. Model repositories that publish a signature are checked the same way during prefetch (0.3.0).

When you need it

  • Your policy says only signed images may run: set images.verify=enforce.
  • You pull images from a private mirror: copy the signatures with the images and add a trust entry.
  • You run images you build and sign yourself.
  • Your network has no route to the public Sigstore: images.trustRoot=embedded, or a private root.

Do it

  1. See what is verified today

    Open Images & artifacts in the console, or run the doctor:

    kubectl -n opodcp exec deploy/opodcp -- /opodcp doctor     # read the images-signed row
  2. Add a trust entry for your own registry, if you use one

    # values-trust.yaml
    images:
      trust:
        - repositoryPrefix: harbor.example.com/opod/
          issuer: https://token.actions.githubusercontent.com
          identityRegex: ^https://github\.com/opod-io/opod-core/\.github/workflows/.+@refs/(heads|tags)/.+$
  3. Turn on enforce

    helm upgrade opodcp oci://ghcr.io/opod-io/charts/opodcp -n opodcp --reset-then-reuse-values \
      -f values-trust.yaml --set images.verify=enforce
  4. Roll out an endpoint to test it

    Post the stored plan to POST /api/v1/endpoints/{id}/rollouts. Its validate step checks every image the plan runs.

Check it worked

cosign verify --certificate-identity-regexp 'https://github.com/opod-io/' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com ghcr.io/opod-io/opodcp:0.3.6

A good answer: the rollout's validate step is passed, Images & artifacts shows verified for each pinned image, and no endpoint carries the alert endpoint.images-unverified. The cosign command above checks the control-plane image yourself, outside the control plane.

If it fails

Symptom or codeCauseFix
E-UNSIGNEDenforce, and no signature is published beside the imagecopy the signatures with cosign copy, or sign the image
E-SIGNATURE with untrusted-identitythe signature is valid, but no trust entry allows its signercopy the signer and issuer from the detail into an images.trust entry
E-SIGNATURE with bad-signaturethe image was altered, or the signature is for another digestuse the original image; find where it changed
E-UNVERIFIEDthe signature could not be checked: no-trust-root or unsupported-formatset a trust root; key-signed images are not supported
The control plane does not start after a values changean images.trust entry lacks a field, or its identityRegex does not compilefix the entry
A rollout holds at prefetch (0.3.0)a model signature is invalidan admin accepts or rejects it (Rollouts)

Images are pinned by digest

Every engine and leader image the chart names is pinned by digest, never a rolling tag. A plan pins the images it runs when it is created (plan.images), and only a rollout re-pins them, so a new build never rolls pods behind an operator's back. Images are never built on cluster nodes. The Images & artifacts page lists every image with its pin and its signature result.

The control plane verifies every pinned image

For each pinned image the control plane verifies the cosign keyless signature offline: the Fulcio certificate chain, the transparency log's signed timestamp, and the digest the payload names. Then it matches the identity that signed against images.trust.

ResultMeaning
verifiedthe signature verifies and an allowed identity made it
invalidbad-signature (altered, another digest, wrong root) or untrusted-identity (valid, but no trust entry allows the signer)
present-unverifieda signature is there and could not be verified: no-trust-root, or unsupported-format (a key-signed image, no transparency-log bundle; trusting a cosign public key is not planned until an owner asks for it)
absentno signature is published beside the image
unknownthe registry could not be asked — never treated as unsigned

Warn or enforce

images.verify reaches the control plane as OPODCP_IMAGES_VERIFY.

images.verifyEffect
offnever ask the registry
warn (default)verify, record image.unsigned or image.unverified, and carry on; a serving endpoint running such images carries the alert endpoint.images-unverified
enforcerefuse a rollout whose image is invalid (E-SIGNATURE), unsigned (E-UNSIGNED) or unverifiable (E-UNVERIFIED); an unknown is never refused and always recorded

enforce breaks a private mirror whose copies carry no signatures. Copy with cosign copy first; with the signatures in the mirror, verification needs no egress.

Who may sign

Two entries are built in, and images.trust is added to them:

Repository prefixSigned by (issuer https://token.actions.githubusercontent.com)
ghcr.io/opod-io/a workflow of github.com/opod-io/opod-core, on a branch or a tag: the leader and worker images
ghcr.io/opod-io/opodcpa workflow of github.com/opod-io/opod-cp, on a tag only: the control plane image

Nothing else is trusted until an entry says so. Each entry needs all three fields, and identityRegex must compile; a bad entry stops the control plane at start rather than quietly trusting nothing:

images:
  trust:
    - repositoryPrefix: harbor.example.com/opod/     # trailing slash = everything under it
      issuer: https://token.actions.githubusercontent.com
      identityRegex: ^https://github\.com/opod-io/opod-core/\.github/workflows/.+@refs/(heads|tags)/.+$

A mirror filled with cosign copy keeps our signatures, so its entry names our identity. A mirror you re-sign names yours. A valid signature by an identity no entry covers reads invalid with reason untrusted-identity, and the detail names the signer and the issuer, so you can copy them into an entry.

Both signature layouts are read and verified: cosign's sha256-<hex>.sig tag, and a Sigstore bundle attached as an OCI referrer. A registry in the middle of a move can hold both.

The trust root

ValueMeaning
images.trustRoot: auto (default)refresh Sigstore's public root through TUF daily when reachable, else the copy built into the binary
images.trustRoot: embeddednever go online
images.trustRootConfigMapa ConfigMap in the namespace with item trusted_root.json: a private Sigstore, or a current root after a key rotation

For example, a cluster with no route to the public Sigstore:

helm upgrade opodcp … --reset-then-reuse-values --set images.trustRoot=embedded
# or a private Sigstore: kubectl -n opodcp create configmap sigstore-root --from-file=trusted_root.json
helm upgrade opodcp … --reset-then-reuse-values --set images.trustRootConfigMap=sigstore-root

The doctor's images-signed row says which root is in use and how old it is. The SBOM attestation is checked for presence only on 0.3.0. From 0.3.2 it is verified like the signature: its DSSE envelope's signature by the same chain and images.trust identities, and its statement's subject must be the pinned digest. The Images page reads SBOM verified, SBOM invalid, present, unverified, none or unknown. An attestation published only as a cosign v3 referrer is not read yet.

Model signatures

Model signature checks are new in 0.3.0. Each rollout's prefetch checks whether the model repository publishes a signature (model.sig, OpenSSF model signing v1.0), verifies it with the same trust root, and checks every file the node will serve against the signed manifest. A signed repository's GGUF file is held to the Hub's sha256 by the fetch.

Model signers are matched against the same images.trust list, where a model's key is hf.co/<org>/<repo>. Nothing is trusted for models until an entry covers the repository.

ResultEffect
verifiednone
invalid (bad-signature, untrusted-identity, digest-mismatch)the rollout holds at prefetch until an admin accepts (load anyway; recorded for exactly that commit) or rejects (E-MODEL-SIGNATURE-REJECTED)
unverifiedsigned, and no trust entry covers it; recorded
unsignedrecorded
unknownthe Hub could not be asked, or refused the cluster's token; recorded

A gated repository is checked with the cluster's Hub token. With weights.skipSourceCheck, no model signature is checked. See Models for model approval, which is a separate gate.

Catalog signatures

weights.catalogPubKey (a minisign public key) makes a catalog file with a signature beside it verify against that key, and weights.catalogRequireSigned=true refuses an unsigned catalog file too.

Verify the control plane yourself

cosign verify --certificate-identity-regexp 'https://github.com/opod-io/' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com ghcr.io/opod-io/opodcp:0.3.6

See Releases.

Last updated · Source: content/docs/control-plane-security/supply-chain.mdx · View as Markdown