Skip to content
Container image support is in beta. Configuration and behaviour may change between releases.

Container images

The proxy implements the OCI distribution pull API, the protocol Docker, containerd, Podman, and CRI-O all use to pull images. The proxy decides each image manifest before the client receives it, and only serves the layers of images the workspace may pull, checked again on every layer request, so a denied image’s layers cannot be fetched by digest. An image’s signatures and attestations are served when the workspace may pull the image, so verifiers such as cosign and Kyverno can check it through the proxy before it runs. Every pull is recorded against the project on the API key.

Endpoint: <proxy-host>/v2/<registry>/, where <registry> is one of:

Registry Serves Notes
cgr.dev Chainguard Images Signed SBOMs, verified out of the box.
dhi.io Docker Hardened Images Signed SBOMs and VEX statements, verified out of the box. Requires a Docker account’s registry credentials; not served without them.
docker.io Docker Hub, including official images (docker.io/nginx is docker.io/library/nginx) Official images carry unsigned SBOMs, which are not trusted. They are judged on the packages found in their layers.
ghcr.io GitHub Container Registry Varies by publisher, and none is trusted out of the box. Judged on their layers.
quay.io Quay Varies by publisher, and none is trusted out of the box. Judged on their layers.
mcr.microsoft.com Microsoft Artifact Registry Microsoft signs images but publishes no SBOM. Judged on their layers, including Azure Linux 3 and its distroless images.

Authentication: the API key, sent as HTTP basic auth with the key as the password. The username is not checked; _ is used here as a placeholder.

Container runtimes only talk to registries over HTTPS, so the proxy must be reachable over TLS at <proxy-host>.

An image is tracked like any other package: its name and digest appear under Packages with the ecosystem OCI, and allow and deny rules with that ecosystem apply to it. A rule’s package pattern is the image name including its registry, such as docker.io/library/* (see Image names in rules), and its version is a platform digest or * (see Platform digests). A rule with a digest needs the exact image name, and is checked against the registry when it is saved.

ShieldedStack learns what an image contains from two sources, and judges the image on the known vulnerabilities of the packages they show, with the workspace’s usual thresholds:

  • The SBOM its publisher signs and attaches to it. On the first pull of each image, the proxy finds that SBOM and verifies its signature before answering. Docker Hardened Images and Chainguard Images are verified out of the box, and each workspace chooses which of them it trusts under Settings -> Security Policy.
  • The image’s own layers. The worker downloads each new image once and reads what was installed inside it: the operating system’s packages and the application’s. See Images without a signed SBOM.

An image with both is matched on the packages of both together, so a package its SBOM leaves out still counts. The packages inside an image appear on its Image Contents tab, each with where it was found, and each advisory on its Security tab names the package it was found in. Its description, authors, source repository, license, creation date, and size come from the image itself: the standard OCI labels or annotations its publisher sets (org.opencontainers.image.description, .authors, .source, .licenses, and .created), where present, and the layer sizes in its manifest. Docker’s official images set a source and creation date but no description. An image’s license is shown for information; license rules do not apply to images.

When an advisory for a package in an image cannot be fully checked, the image is judged on the advisories that could be. The package is marked Not fully checked on the Image Contents tab, and the next check asks again.

The running mode decides what happens on the first pull, while the image is being read and its packages matched:

  • Trust then Verify allows it straight away and inspects it in the background. Findings then raise alerts and block later pulls.
  • Verify then Trust waits up to 20 seconds for the inspection to finish and serves the image if it does. Otherwise it refuses the pull with a message asking to retry in about a minute. See The first pull under Verify then Trust.

If the registry cannot be reached to look for a signed SBOM, the pull is refused with a request to retry in either running mode: an unreachable registry is never taken as having one, or as missing one.

When part of an image cannot be read, such as the packages of a distribution with no advisories to match against, the image is judged on the packages that could be read, and its Image Contents tab shows why the rest could not be. A workspace can refuse such images instead. See Images that cannot be fully inspected.

Most public images carry no signed SBOM from a publisher the workspace trusts: Docker Hub’s official images, and nearly everything on ghcr.io, quay.io, and mcr.microsoft.com. ShieldedStack reads these itself. The worker downloads the image’s layers once per digest, reads the package database the distribution keeps inside the image and the records the application’s package managers left, and matches the packages they list:

Distribution Package database read
Debian, Ubuntu, and distroless images built from Debian dpkg (/var/lib/dpkg/status and /var/lib/dpkg/status.d/)
Alpine and Wolfi apk (/lib/apk/db/installed)
Red Hat UBI 9 and 10, Rocky Linux 9 and later, AlmaLinux 9 and later, Oracle Linux 9 and later, Amazon Linux 2023, Fedora, Azure Linux 3 rpm in its SQLite form (/var/lib/rpm/rpmdb.sqlite)
SUSE Linux Enterprise 15 and its BCI images, openSUSE Leap 15 and Tumbleweed rpm in its ndb form (/usr/lib/sysimage/rpm/Packages.db)
Red Hat UBI 8, Rocky Linux 8, AlmaLinux 8, Oracle Linux 8, Amazon Linux 2 rpm in its Berkeley DB form (/var/lib/rpm/Packages)
Azure Linux 3 distroless the package list the image keeps in place of an rpm database (/var/lib/rpmmanifest/container-manifest-2)

The operating system packages of these images are not read. Their application packages still are, and the image is judged on those unless the workspace refuses images that could not be fully inspected.

Distribution Why Code shown
CentOS Stream, and CentOS 7 and older No advisories are published for them. DistributionNotSupported
CBL-Mariner, Photon OS, and other distributions not listed above Layer inspection does not name the distribution. DistributionNotSupported
Alpine edge, Debian testing and sid A rolling or pre-release branch has no advisories of its own. Wolfi, which is rolling by design, is read. DistributionNotSupported

An image with no distribution at all, such as one built FROM scratch or on BusyBox, is judged on its application packages.

Ecosystem What is read
Maven pom.properties in each jar, war or ear, including the jars inside it (Spring Boot and web applications)
npm each package’s package.json under node_modules
PyPI installed packages’ METADATA (.dist-info) and PKG-INFO (.egg-info)
Go the module list and Go version compiled into every Go binary
NuGet the application’s .deps.json
RubyGems installed gem specifications
Packagist vendor/composer/installed.json
crates.io the crate list in binaries built with cargo auditable, and Cargo.lock
Hex each application in an Erlang or Elixir release
Pub the pub cache and pubspec.lock
Swift Package.resolved

A package the distribution installed counts as the distribution’s, even when it carries a language manifest, such as Debian’s python3-requests: the distribution’s advisories cover it, including the fixes it backports. Azure Linux distroless images list their packages without the files each one installed, so there a language package that came from an rpm is also judged as an application package, which can add advisories but never hides one.

The image is then decided by vulnerability policy exactly like a signed one. The worker does this, never the proxy: no pull waits on a layer download except as described for Verify then Trust. Layers compressed with gzip or zstd, and uncompressed ones, are read. They are read as they are downloaded and are not written to disk, every layer is checked against its digest before its contents count, and what was read from a layer is kept, so a base layer shared by many images is downloaded once.

Three things shape the list of advisories on an image, and they differ by distribution:

  • Kernel advisories are not counted. A container runs on the kernel of the host it is started on, not on anything in the image. Images often carry kernel header packages for compiling software; these are listed in Image Contents and are not matched against advisories.
  • Advisories the distribution has dismissed are not counted. Debian marks an advisory unimportant, and Ubuntu negligible, when its security team judges that it is not a security problem in the package as that distribution builds it. Such an advisory is left out for that package and release, and is not shown. An advisory the distribution has not yet assessed is counted in full, and so is one it has assessed as real but will not fix.
  • Some distributions publish an advisory only once it is fixed. Alpine, Wolfi, Rocky Linux, AlmaLinux, Oracle Linux, Amazon Linux, Fedora, and Azure Linux list a vulnerability when the fixed package is released. Several of them publish one advisory per update, which may fix several CVEs; it is listed under each CVE it fixes. For their images ShieldedStack reports packages that are behind on a released fix, and does not report a known vulnerability that has no fix yet. Debian, Ubuntu, and Red Hat publish unfixed vulnerabilities too, which is why their images list more.

A distribution builds several installable packages from one source package: Debian builds libssl3 and openssl from the openssl source. Each distribution’s security team files its advisories under one of the two names. Debian, Ubuntu, Alpine, Wolfi, and Azure Linux use the source package; Red Hat, AlmaLinux, Oracle Linux, Amazon Linux, and Fedora use the installed package. Rocky Linux has used both: its older advisories name the source package and its newer ones the installed packages, so Rocky Linux packages are looked up under both names. The package database in the image records both, so ShieldedStack looks each package up under the name its distribution uses, and Image Contents lists it under that name (Debian’s libssl3 appears as openssl). Versions are compared the way the distribution’s package manager compares them, epoch included.

One case is approximate. Azure Linux and older Rocky Linux advisories are filed under the source package, and an installed rpm records which source it was built from but not that source’s epoch, the leading number in a version such as 1:3.0.7-24.el9. ShieldedStack uses the installed package’s epoch, which is the source’s for nearly every package, because packages built from one source share it. The exception is a package with its own version numbering inside a larger source, such as the Perl modules built from Perl itself. For such a package an advisory can be listed that does not apply, or, more rarely, one can be missed.

Compared with two widely used open source scanners, as their code stood in November 2026:

ShieldedStack Grype Trivy
Names read from the image Installed and source package Installed and source package Installed and source package
Name looked up The one the distribution files advisories under, and both for Rocky Linux Both names The one its own advisory data uses for that distribution
Source epoch in Rocky Linux Taken from the installed package Left out of the comparison Not applicable (Rocky Linux is matched by installed package)

Leaving the epoch out, as Grype does, has its own edge case: two versions from different epochs are compared as if they were in the same series.

Without a trusted signed SBOM, an image is judged on what ShieldedStack can read from its layers. Sometimes part of an image cannot be read, such as a distribution with no advisories to match against or a damaged package database. ShieldedStack then judges the image on the packages it could read and records why the rest could not be read. Packages it could not read are not judged, so a vulnerability in one of them does not block the pull.

How such an image is treated is a workspace setting, Refuse images that could not be fully inspected, in the container images section of Settings -> Security Policy:

Setting Trust then Verify Verify then Trust
Off (the default) Judged on the packages that could be read Judged on the packages that could be read, once the inspection has finished
On Refused with image_not_fully_inspected Refused with image_not_fully_inspected
The Container images card under Settings, Security Policy, with Docker Hardened Images and Chainguard trusted and Refuse images that could not be fully inspected turned off.
The setting sits above the trusted publishers in Settings -> Security Policy. It is off by default.

With the setting off, an image of which nothing could be read at all is served as an image without packages. Turn the setting on if every image you run must have been read completely, and admit the exceptions with an allow rule. A refused pull names the image’s digest and the reasons:

Error response from daemon: denied: This image (sha256:4f2a…) has no signed SBOM from a publisher this workspace trusts and could not be fully inspected (DistributionNotSupported). A workspace admin can allow this digest with a package rule.

The reasons a part of an image cannot be read are listed below. A refusal names them by their codes, in the client’s error and in the event log. The Image Contents tab shows the wording in the second column, followed by the file, package, or distribution the reason is about.

Code Shown on Image Contents What it means Typical images
RpmDatabaseHasUnwrittenChanges the rpm database has changes that are not yet written to it The rpm database was left mid-update when the image was built. Its packages are read as last written. Not seen in ordinary images
RpmDatabaseCorrupt the rpm database could not be read The rpm database is damaged, or fails the checks rpm writes into it, such as a package’s checksum. Nothing in it is read, so a damaged entry is never matched as another version. Not seen in ordinary images
RpmPackageListCorrupt the rpm package list could not be read The package list an Azure Linux distroless image keeps is damaged. Not seen in ordinary images
NoPackageDatabase no package database was found No dpkg, apk, or rpm database is in the image, and no application packages were found either. BusyBox, and scratch images holding a binary that is not written in Go
NoOsRelease no os-release file was found A package database is present but nothing names the distribution, so its advisories cannot be chosen. Images that delete /etc/os-release
DistributionNotSupported no advisories are published for this distribution or release Layer inspection does not read this distribution or release, or it has no advisories to match against. See Distributions that are not read
PackageDatabaseEmpty the package database lists no packages The database is present and empty. Images that truncate it to save space
PackageNotNamed a package could not be named for advisory matching A package’s name or version cannot be turned into something an advisory could match. That package is left out; the others are read. Damaged or hand-edited databases
ForeignLayers the image has layers its registry does not hold A layer is a foreign or non-distributable layer hosted elsewhere, so none of the image is read. Windows base images
ImageOverLimit the image is larger than the inspection limit Its layers total more than 4 GiB compressed, so none of the image is read. Machine learning and SDK images
LayerOverLimit a layer’s package files are larger than the inspection limit A package database, or the list of package files in one layer, is beyond 64 MB. Nothing in that layer or the layers above it is read. Not seen in ordinary images
LayerUnreadable a layer could not be read A layer is damaged, or is not what its registry says it is. Nothing in it or the layers above it is read. Not seen in ordinary images

Whatever the setting, the reasons are shown on the image’s Image Contents tab under Packages. When more than one part could not be read, each reason is listed.

Things to know about these images:

  • The reason belongs to the digest. It is recorded once for the image digest and applies to every workspace. A new digest of the same tag is inspected afresh.
  • A registry failure is not one of these reasons. If a layer cannot be downloaded, does not match its digest, or takes longer than four minutes to read, the worker tries again later and nothing is recorded. Meanwhile the image is treated as not inspected yet: served under Trust then Verify, asked to wait under Verify then Trust.
  • A trusted signed SBOM is enough. An image with one is decided on that SBOM even when its layers cannot be read.
  • A later version of ShieldedStack may read more. When layer inspection learns to read a format, such as an older rpm database, images it could read only in part are read again, and the reason goes away.
  • A signed SBOM can still arrive. ShieldedStack looks for one again daily. When a trusted publisher attaches one, the image is decided on it.
  • Allow rules come first. A rule that admits the image is applied before any of this, so an allowed image is served whether or not it could be fully inspected.

In a workspace that refuses such images, allow one by its platform digest, or allow its repository with * if you trust everything its publisher pushes there. See Allowing unattested images.

A publisher that signs an SBOM may also sign VEX statements: declarations that a known vulnerability does not affect its image, for example because the vulnerable code is not present. Docker publishes them for Docker Hardened Images. The worker reads and verifies them each time it revisits an image, since a publisher revises them over time.

A statement is applied like a vulnerability exception the publisher supplied: the advisory stays on the image and is listed with the label vex, and it no longer counts toward the workspace’s threshold or raises an alert. Two conditions keep that narrow:

  • Only in workspaces that trust the publisher. A workspace that has not selected the publisher under Trusted Publishers sees the statement on the Image Contents tab as not applied, and the advisory counts in full.
  • Only when the statement covers every package the advisory was found on. If the advisory also matches a package the publisher’s statement does not name, including one found only in the layers, it counts in full.

Under Verify then Trust an image is not served before it has been inspected. On the first pull of a digest the proxy:

  1. Records the pull, which queues the image with the worker.
  2. Keeps the manifest request open for up to 20 seconds, and serves the image if its inspection finishes in that time.
  3. Otherwise answers 429 Too Many Requests with the message ShieldedStack is inspecting this image (sha256:…). Retry in about a minute.

The request log records the wait as a pending event, followed by the download or the block the pull ended in. A pending event counts neither as a download nor as a block. Clients retry a pending image several times, so it is recorded at most once every 15 minutes for each image in a workspace.

What the client then does depends on the client:

Client After the refusal
Docker Repeats the request a few times at once and reports the message. Run the pull again.
containerd, and Kubernetes through it The pull fails with the message, and the kubelet retries it on its usual schedule, starting after about 25 seconds. The pod starts on the first attempt after inspection completes.
Podman and CRI-O Retry by themselves for about 30 seconds, which is often long enough for a small image.

A digest is waited for once a minute in each workspace, so a client that repeats the request at once is answered at once. A HEAD request is answered without waiting, so that the refusal and its message come with the GET that follows: a reply to a HEAD cannot carry a message. The wait is set on the proxy with ProxySettings__OciInspectionHoldSeconds; keep it under 30, where Docker stops waiting for a response, or set it to 0 to refuse at once.

Every Docker Hub image has a namespace. Official images, such as nginx, postgres, and alpine, are in the library namespace, which clients leave out: docker pull nginx pulls docker.io/library/nginx, and the proxy records it under that name. Rules are saved as written and match the recorded name, so write official images with library/:

Package pattern Matches
docker.io/library/nginx The official nginx image
docker.io/library/* Every official image
docker.io/* Every Docker Hub image, official or not
docker.io/bitnami/* Every image in the bitnami namespace
docker.io/*/ngin* Images starting with ngin in any namespace, official ones included
docker.io/ngin* Namespaces starting with ngin, such as docker.io/nginxinc/nginx-unprivileged, but not the official nginx, which is docker.io/library/nginx
docker.io/nginx Refused when saved: a name without a namespace matches no image

* matches any characters, including /. To admit only official images, add an allow rule for docker.io/library/* and require an allow list match for OCI under Settings.

The other registries have no implicit namespace, so their image names are used as written.

As in every ecosystem, a deny rule matches an image name in any casing, while an allow rule matches only the name as the registry spells it. Image names are lowercase, so write patterns in lowercase.

Most images are published for several platforms, such as linux/amd64 and linux/arm64. Their tag points to an image index: a list of each platform’s image and its digest. The proxy serves the index without deciding it, and decides the platform image the runtime then pulls. Rules that pin a digest therefore name a platform digest.

When a rule with a digest is saved, ShieldedStack asks the image’s registry for that digest. The rule is saved only if the registry has it and it is a platform image; an index digest, an attestation or signature, a digest the registry does not have, or a registry that cannot be reached all refuse the save. Tags are not accepted as versions, since a tag moves: use * for a rule that should follow every update of an image, or a digest to pin one image.

To find an image’s platform digests:

  • In the rule form. Paste the reference docker pull prints, such as docker.io/library/nginx@sha256:9b0b…. The form splits it into the image name and digest, and for an index lists each platform with its digest.

  • Under Packages. Every image pulled or refused through the proxy is listed under Packages with the ecosystem OCI, by its platform digest, and an allow or deny rule added from there names it.

  • From the denial. A refused pull names the platform digest it was decided on:

    Error response from daemon: denied: This image (sha256:4f2a…) has no signed SBOM from a publisher this workspace trusts and could not be fully inspected (DistributionNotSupported). A workspace admin can allow this digest with a package rule.

    The same refusal is in the workspace’s event log.

  • On Docker Hub. A tag’s page lists each OS/ARCH with its own digest. Copy the digest from the row for the platform you run, not the index digest shown for the tag as a whole.

  • Before anything has pulled it. docker buildx imagetools inspect lists the index and each platform’s digest. It reads only the index, so it works through the proxy for any image:

    Terminal window
    docker buildx imagetools inspect <proxy-host>/docker.io/library/nginx:1.27
    Name: <proxy-host>/docker.io/library/nginx:1.27
    MediaType: application/vnd.oci.image.index.v1+json
    Digest: sha256:9b0b… <- index digest: not for rules
    Manifests:
    Name: <proxy-host>/docker.io/library/nginx:1.27@sha256:4f2a…
    Platform: linux/amd64 <- platform digest above
    Name: <proxy-host>/docker.io/library/nginx:1.27@sha256:c1d7…
    Platform: linux/arm64

Pin each platform you run with its own rule. An image published for a single platform has no index, and the digest docker pull prints is its platform digest.

An allow rule decides an image before its SBOM or its layers are looked at, so it admits an image in either running mode, including one that could not be fully inspected. The rule’s version sets how much it admits:

Package Version Admits
mcr.microsoft.com/dotnet/aspnet Platform digest (sha256: and 64 hex characters) That one platform’s image. A new digest, such as after its tag moves, is blocked until it is allowed too.
mcr.microsoft.com/dotnet/aspnet * Every image in the repository, including ones published later.
mcr.microsoft.com/* * Every image on the registry.

An allowed image is served whatever it contains. Where it could be inspected, its packages and their advisories still appear on its Image Contents tab; where it could not, ShieldedStack knows nothing of its contents and it is trusted on its publisher alone. Pin platform digests where the image matters, and update the rules with each base image update.

An allow rule also admits the signatures and attestations its publisher attaches to the images it allows, so verifiers can check them through the proxy. ShieldedStack cannot tell a genuine attestation from other data labelled as one, so whoever can push to an allowed repository can attach data that will be served alongside the allowed image. Container runtimes do not run it, but it can be downloaded. Allow repositories whose push access you trust.

A deny rule refuses an image by name, or by platform digest. To block a multi-platform release, deny each of its platform digests, or deny the image by name.

The runtime is told to fetch a registry’s images from the proxy, so docker pull nginx and image references in manifests stay as they are. Configure one entry per registry you pull from.

Every runtime treats a registry mirror as optional and goes to the original registry when the mirror refuses an image, including when the proxy blocks it. The configurations below avoid that by making the proxy the registry rather than a mirror of it, and they only enforce policy if the machine cannot reach the public registries directly. See Blocking direct pulls.

Docker reads per-registry configuration from /etc/docker/certs.d/<registry>/hosts.toml when it uses the containerd image store, the default for new installations of Docker Engine 29. For Docker Hub, create /etc/docker/certs.d/docker.io/hosts.toml:

server = "https://<proxy-host>/v2/docker.io"
override_path = true
[header]
Authorization = "Basic BASE64_OF_UNDERSCORE_COLON_API_KEY"

server replaces the registry rather than adding a mirror in front of it, so nothing falls back to Docker Hub. override_path tells Docker the path already ends in the API version. Produce the header value with:

Terminal window
printf '_:%s' "$SHIELDEDSTACK_API_KEY" | base64

Repeat for each registry, changing the directory name and the last segment of server, for example /etc/docker/certs.d/ghcr.io/hosts.toml with server = "https://<proxy-host>/v2/ghcr.io". Docker reads the files on every pull, so no restart is needed.

Docker installations still on the legacy image store ignore hosts.toml. Use rewritten image names there, or switch to the containerd image store.

containerd uses the same files under its own directory, /etc/containerd/certs.d/<registry>/hosts.toml, with the same content as for Docker:

server = "https://<proxy-host>/v2/quay.io"
override_path = true
[header]
Authorization = "Basic BASE64_OF_UNDERSCORE_COLON_API_KEY"

The CRI plugin only reads the directory when the containerd configuration points at it:

[plugins.'io.containerd.cri.v1.images'.registry]
config_path = "/etc/containerd/certs.d"

Kubernetes pulls through the node’s containerd, so configuring the nodes covers every pod on them without changing a manifest. Apply the files with the node image or your configuration management, so new nodes pull through the proxy from the start.

Podman and CRI-O read registries.conf. Point each registry’s location at the proxy:

[[registry]]
prefix = "quay.io"
location = "<proxy-host>/quay.io"

Use location, not a [[registry.mirror]] entry. A mirror falls back to the original registry when the proxy blocks an image; a location replaces it.

Credentials go in the containers auth file. For Podman:

Terminal window
podman login <proxy-host> --username _ --password "$SHIELDEDSTACK_API_KEY"

CRI-O reads the file named by global_auth_file in its configuration; write the same credentials there for <proxy-host>.

Where runtime configuration is not available, name the proxy in the image reference instead, with the registry as the first path segment:

Terminal window
docker login <proxy-host> --username _ --password "$SHIELDEDSTACK_API_KEY"
docker pull <proxy-host>/docker.io/nginx:1.27
docker pull <proxy-host>/ghcr.io/org/app:2.1.0

Every client supports this, but every image reference has to change, including the ones inside Helm charts and third-party manifests.

The proxy decides pulls it receives. A machine that can still reach registry-1.docker.io, ghcr.io, or another registry directly can pull from it with an unchanged image name, so enforcement needs the registries’ API hosts blocked at the network edge for workstations, CI runners, and cluster nodes.

How image layers travel depends on the proxy’s ProxySettings__UseRedirectMode setting:

  • Redirect mode (the default): for a layer of an image the workspace has been served, the proxy hands the client the short-lived signed download URL the registry issues for it, so the layer comes straight from the registry’s content delivery network. Clients must reach those download hosts, while the registry API hosts stay blocked. A layer request for any other image is refused before the registry is asked, so a signed URL is only issued for a layer of an approved image.
  • Passthrough mode: the proxy streams each approved layer itself. Use it when clients cannot reach the content delivery network either.

To switch the proxy to passthrough mode:

docker-compose.yml
services:
proxy:
environment:
ProxySettings__UseRedirectMode: "false"

The artifact cache keeps image manifests and layers on your own storage. Like the package cache, it requires forwarding mode: in redirect mode layers never pass through the proxy.

A runtime downloads an image’s layers over several connections, and a load balancer may send them to different proxy replicas. The replicas share which layers each has approved through the deployment’s Redis, which the Helm chart and the Docker Compose file run by default, so any replica can serve them. Without Redis (redis.enabled: false and no cache.connectionString), the Helm chart keeps each client on one replica with session affinity; set the same up on a load balancer of your own. Clients behind one NAT or ingress then share a replica.

The proxy pulls from the public registries as its own service identity, and the worker reads image attestations the same way. Without credentials both pull anonymously, which works for public images, but anonymous Docker Hub pulls are rate limited per IP address and an organization pulling through one proxy reaches that limit quickly; the proxy logs a warning at startup when Docker Hub has no credentials. Docker Hardened Images (dhi.io) serves nothing anonymously, so it is not available until its credentials are set, and a pull from it answers NAME_UNKNOWN naming the settings it needs.

Give each registry a username and token through the deployment’s environment, on the proxy, the worker, and the Portal, which checks the digests in rules against the registries:

.env
OCI_DOCKERHUB_USERNAME=acme
OCI_DOCKERHUB_TOKEN=YOUR_REGISTRY_TOKEN

Docker Compose reads .env beside the Compose file, and ShieldedStack’s Compose file passes these to the proxy, the worker, and the Portal.

Registry Settings
docker.io OCI_DOCKERHUB_USERNAME, OCI_DOCKERHUB_TOKEN
dhi.io OCI_DHI_USERNAME, OCI_DHI_TOKEN (required)
ghcr.io OCI_GHCR_USERNAME, OCI_GHCR_TOKEN
quay.io OCI_QUAY_USERNAME, OCI_QUAY_TOKEN
mcr.microsoft.com OCI_MCR_USERNAME, OCI_MCR_TOKEN
cgr.dev OCI_CHAINGUARD_USERNAME, OCI_CHAINGUARD_TOKEN

To pull a registry’s images from an internal mirror instead, set OCI_<REGISTRY>_URL, for example OCI_DOCKERHUB_URL=https://dockerhub-mirror.internal. The mirror must serve the same images under the same names.

Use organization credentials that can read public images only: a Docker organization access token, a Quay robot account, or a GitHub token with read:packages. A credential that can also read private repositories makes those repositories pullable by every API key holder, whatever the registry’s own permissions say. Supply the values from your secret store, as environment variables or mounted secret files; they are never stored in the ShieldedStack database.

Docker Hub counts every manifest request as a pull and limits how many it serves: without credentials, 100 an hour per IP address, more for an authenticated free account, and no limit beyond fair use on paid plans. Docker changes these from time to time; a HEAD request for ratelimitpreview/test, which costs nothing, answers with the limit that applies to the credentials it was sent with in its ratelimit-limit header. Layer downloads are not counted. Every image pulled through one proxy shares one quota: the proxy’s IP address, or its account once credentials are set.

ShieldedStack uses that quota as follows:

  • A HEAD on a tag costs nothing. Runtimes send one before they pull, and Kubernetes nodes running pods with imagePullPolicy: Always send one each time a container starts. The proxy asks the registry with a HEAD too. A single-platform image is still decided on the digest the registry gives, so a node cannot start one the workspace has since denied. A multi-platform tag names its image index, which is decided only when a platform image is pulled, so a node that already holds that platform image starts it without asking.
  • Every other manifest request costs one pull. The proxy fetches the manifest with a GET and decides on the bytes it has read. A multi-platform pull asks for the image index and then the platform image, which costs two.
  • The worker reads each new image once, with one pull for its platform image’s manifest, to record its description, authors, license, creation date, and size, and to find its layers. Looking up its signed SBOM costs a pull only for an image that has one. Downloading the layers to inspect them is not counted, and a layer already read for another image is not downloaded again.

The worker counts each 429 Too Many Requests a registry answers in the shieldedstack.worker.provider.throttles metric, tagged with the registry, so reaching the limit shows up before pulls start failing. Set Docker Hub credentials for anything beyond a trial, on a plan whose limit fits how often your machines pull.

hosts.toml files and registries.conf are machine configuration, not repository files. Distribute them with the node image, configuration management, or the CI runner image.

The hosts.toml header and the containers auth file hold the API key. Keep them readable by root only, and rotate them with your configuration management when the key changes.

Terminal window
docker pull cgr.dev/chainguard/static:latest

With /etc/docker/certs.d/cgr.dev/hosts.toml in place, the pull succeeds unchanged and the image appears under Packages with the ecosystem OCI, attributed to the project name on the API key. Its Image Contents tab lists the packages from Chainguard’s signed SBOM and from its layers.

Pulls still come from the public registry. The configuration is a mirror rather than a replacement: a hosts.toml with an upstream server and the proxy as a [host] entry, or a Podman [[registry.mirror]]. Make the proxy the server or the location, and block direct access to the registry.

401 Unauthorized. The Authorization header or auth file holds the key without the _: prefix, or its base64 encoding has a trailing newline. Generate it with printf, not echo.

ShieldedStack is inspecting this image ... Retry in about a minute. The workspace runs Verify then Trust and the image has not been inspected yet, or the registry could not be reached to look for its signed SBOM. Retry the pull. Kubernetes retries image pulls on its own, and its pod events show 429 Too Many Requests while it waits. A large image takes longer than a minute to download and read; the refusal ends when the worker has finished. See The first pull under Verify then Trust.

could not be fully inspected for an image that pulls elsewhere. The image has no signed SBOM from a publisher the workspace trusts, part of its layers could not be read, and the workspace refuses such images. The event log and the image’s Image Contents tab give the reason. Allow it with a package rule, check the trusted publishers, or turn off Refuse images that could not be fully inspected under Settings -> Security Policy. See Images that cannot be fully inspected.

An advisory the publisher’s VEX sets aside still blocks the image. The workspace does not trust the publisher, or the advisory also matches a package the statement does not name. The Image Contents tab shows each statement and whether it is applied.

is an image index when saving a rule. The digest is the one docker pull prints for a multi-platform image. Add a rule for each platform digest instead. See Platform digests.

has no or could not be asked when saving a rule. The registry does not have that digest under that image name, or the Portal could not reach the registry. Check the name and digest, and that the Portal has the registry’s credentials and network access.

describes no image this workspace may pull from cosign, Kyverno, or another verifier. The proxy serves an image’s signatures and attestations only when the workspace may pull the image itself. Pull the image through the proxy to see the reason it is refused. Under Verify then Trust, an image still being inspected refuses its signatures as it refuses its pull; the verifier’s request starts the inspection, so retry it in about a minute. A signature made on an image listing more than 32 platforms is not served.

Docker Hub images always have a namespace when saving a rule. The pattern names a Docker Hub image without its namespace, such as docker.io/nginx. Official images are in the library namespace: write docker.io/library/nginx. See Image names in rules.

NAME_UNKNOWN. The first path segment is not one of the registries listed at the top of this page.

Docker Desktop refuses the proxy. Registry Access Management, if your organization enables it, applies to the proxy host as well. Add <proxy-host> to the allowed registries.

After key rotation. Regenerate the hosts.toml header or rerun podman login and docker login with the new key.