Skip to content

Merkalis Distribution Registry

Customer-facing distribution registry for promoted, signed release artifacts:

  • Container images promoted from the internal build registry and tagged with a customer-facing semver (e.g. <customer>/kastoria-testcontainer:v0.0.1)
  • OpenTofu module packages published under modules/<env>/<component> (e.g. modules/azure/compute:v0.0.1)

Example tags

v0.0.1 in the examples here and below is an example placeholder, not a tag that exists in the registry. Substitute the actual tag of the release you are working with — or, where the supply chain matters, the resolved digest (see §5).

Registry login server:

acrmerkalisdist0c66.azurecr.io

Every artifact is signed with Notation (Notary v2) using an HSM-backed certificate in Azure Key Vault. The trust material to verify those signatures is published in this directory:

File Purpose Download
trust-policy.json Notation trust policy to import with notation policy import Download
merkalis-dist-ca.pem Public root certificate of the AKV signing cert (trust anchor) Download

This material is versioned alongside the modules you consume: update it whenever a new module version is published.

The dist cert is the single trust anchor for everything in this registry. Promoted releases carry two kinds of dist signatures: one over the image and one over the attached SLSA build provenance — you never need any other certificate to verify a release image or its provenance.

Prerequisites

  • Docker (or another OCI client such as oras)
  • ORAS 1.3.x — required for the referrer discovery in §6, the digest resolution in §7, and the mirroring/offline workflows in §8 (oras discover, oras manifest fetch, oras pull; see the mirroring guide for its full tool list)
  • Notation CLI 1.3.x
  • jq and sha256sum (coreutils) — used by the digest-resolution and tarball-checksum recipes in §8
  • OpenTofu >= 1.10 (only needed for module consumption)
  • Your registry credentials (below)

1. Get your credentials

Access is granted with a scoped token minted for your customer namespace:

  • Username: token-<customer>
  • Password: issued to you by Merkalis. It is stored in the audited Key Vault secret acr-token-<customer> and is the only credential you need.

The token only allows read access to the repositories you are entitled to (your image namespace plus the whole modules/azure/* module namespace). It cannot write or delete anything.

2. Authenticate to the registry

Log in with the scoped token. Docker writes the credential to ~/.docker/config.json, which is also what OpenTofu reads for OCI module sources:

docker login acrmerkalisdist0c66.azurecr.io
# Username: token-<customer>
# Password: <password issued by Merkalis>

If you use oras, log in the same way:

oras login acrmerkalisdist0c66.azurecr.io --username token-<customer>

For notation verify to reach the registry, Notation needs the credential too:

notation login acrmerkalisdist0c66.azurecr.io --username token-<customer>

3. Trust the signing certificate

Import the published trust anchor and trust policy (run from this directory):

notation cert add --type ca --store merkalis-dist ./merkalis-dist-ca.pem
notation policy import ./trust-policy.json

Confirm both took effect:

notation cert show --store merkalis-dist --type ca merkalis-dist-ca.pem
notation policy show

The policy is named merkalis-dist, applies to every repository on the registry, requires strict signature verification, and skips revocation because the self-signed root has no CRL/OCSP endpoints. It uses registryScopes: ["*"], so the same trust material also verifies artifacts in a mirror of this registry in your own infrastructure (§8) — no reissue is needed.

4. Pull a promoted image by semver tag

Promoted images are published under the customer namespace with semver tags:

docker pull acrmerkalisdist0c66.azurecr.io/<customer>/kastoria-testcontainer:v0.0.1

List the tags available to you at any time with:

az acr repository show-tags --name acrmerkalisdist0c66 --repository <customer>/kastoria-testcontainer

(requires az + reader access to the dist subscription; ask Merkalis if you need the list).

5. Verify the signature

Verify the image against the trust material before use:

notation verify acrmerkalisdist0c66.azurecr.io/<customer>/kastoria-testcontainer:v0.0.1

A successful verification prints:

Successfully verified signature for acrmerkalisdist0c66.azurecr.io/<customer>/kastoria-testcontainer@sha256:9afc667179f1f83af9ea0a29f12397ae7cbfd3c69b8d2c63f5d964cd68aa6506

Tags are mutable, so for supply-chain-rigorous verification pin the digest instead:

notation verify acrmerkalisdist0c66.azurecr.io/<customer>/kastoria-testcontainer@sha256:9afc667179f1f83af9ea0a29f12397ae7cbfd3c69b8d2c63f5d964cd68aa6506

6. Verify the build provenance

Promoted images ship with SLSA build provenance attached as an OCI referrer. At promotion both the image and the provenance get a dist-key signature, and the infra-key signature the build pipeline puts on them survives the promotion copy — so each carries two Notation signatures (the tree below shows the image's pair; the provenance's own pair attaches to its digest). Only the dist-key ones verify against the published trust material; the infra-key signatures show up in discovery output but are not something you verify against. The provenance has its own digest, discovered from the image:

oras discover acrmerkalisdist0c66.azurecr.io/<customer>/kastoria-ohif@sha256:f7c1e79b5131f396c8d3f950d2e180cd90a7fcb2524ad5daa4da458adb5fa4e6

The output lists referrers by artifact type; the provenance is the application/vnd.dsse+json entry (carrying the annotation io.kastoria.slsa.provenance: "true"):

acrmerkalisdist0c66.azurecr.io/<customer>/kastoria-ohif@sha256:f7c1e79b5131...
├── application/vnd.cncf.notary.signature
│   ├── sha256:b3e85d02eeec...          (infra key, from the build)
│   └── sha256:...                       (dist key, added at promotion)
├── application/vnd.dsse+json
│   └── sha256:ba5806e878a6f8877dd0c735d4defa17d0ab1c6ea646ae7503436094366613a1
│       ├── [annotations]
│       │   ├── io.kastoria.slsa.provenance: "true"
│       │   └── io.kastoria.slsa.provenance.run: "37019690770"
└── application/spdx+json
    └── sha256:6161b920ff0976b3f11e170129576fc781dc64c0190fbf8cd5be9674b9fa86f6

The digests above are illustrative — always discover them from the image you are verifying.

Verify that digest exactly like an image — the same trust material from step 3 is enough:

notation verify acrmerkalisdist0c66.azurecr.io/<customer>/kastoria-ohif@sha256:ba5806e878a6f8877dd0c735d4defa17d0ab1c6ea646ae7503436094366613a1

A pass prints Successfully verified signature for ...@sha256:ba5806... naming the provenance digest. What a pass proves: the provenance document is authentic Merkalis material, unchanged since the promotion gate signed it, and it is attached to the image you verified (pinning the provenance digest next to the image digest binds the two). What a pass does not prove: that the claims inside the provenance (build source commit, build pipeline, environment) are honest — the signature only attests who sealed the document. Reading it shows what the build itself asserted; pull the provenance artifact to a local file first:

oras pull acrmerkalisdist0c66.azurecr.io/<customer>/kastoria-ohif@sha256:ba5806e878a6f8877dd0c735d4defa17d0ab1c6ea646ae7503436094366613a1 \
  -o ./provenance
cat ./provenance/*

Checking those claims against your expectations (commit you meant to release, pipeline that should have built it) is the point of reading it, not of verifying it.

Releases promoted before 2026-10-08

Their provenance is signed only by an internal Merkalis key that is not part of the published trust material: notation verify on the image passes, on its provenance fails. The image signature remains the authoritative release check; ask Merkalis to re-sign such a release's provenance (a maintenance operation that attaches a dist signature; no artifact is re-pushed) if you need provenance verification for it.

7. Use signed modules (OpenTofu >= 1.10)

Module packages are published as OCI artifacts under modules/<env>/<component> and consumed natively by OpenTofu with an oci:// source. The ?tag= selects the release (all modules share the same version train, so the tag applies to every component):

terraform {
  required_version = ">= 1.10"
}

module "compute" {
  source = "oci://acrmerkalisdist0c66.azurecr.io/modules/azure/compute?tag=v0.0.1"
  # ... required variables for the module
}

(v0.0.1 is an example tag — use the release tag you were given.)

OpenTofu reads the registry credential from ~/.docker/config.json (written by docker login in step 2), so no extra setup is needed:

tofu init

You can also verify the module package directly with Notation, exactly like an image:

notation verify acrmerkalisdist0c66.azurecr.io/modules/azure/compute:v0.0.1

Tags are mutable here too: where the supply chain matters, resolve the tag to a digest (oras manifest fetch --descriptor) and verify/consume by ?digest=<sha256:…> instead.

8. Move releases into your own registry (or an air-gapped site)

If you want to run promoted releases out of your own registry, mirror them with oras copy --recursive — the same mechanism our promotion gate uses — to carry the full OCI referrer graph (signatures, provenance, SBOM) across, then verify the copy against this document's trust anchor at the destination. The published trust-policy.json uses registryScopes: ["*"], so no reissue of trust material is needed for your mirror; the same policy verifies artifacts in your registry too.

Do not use docker pull + docker push, docker save + docker load, or az acr import to move a release you intend to verify. Signatures, provenance, and the SBOM live on the image as OCI referrers, not inside the image; those operations copy only the image and silently drop the evidence. The mirrored artifact will run identically and will have nothing to verify against.

docker save/load remains viable only for the true air-gapped case (no registry reachable at transfer time), where you deliberately accept a weaker, process-controlled model: verify the digest on a connected machine before transfer, record the successful notation verify output and a tarball sha256sum in your change-control record, and re-check the checksum at the receiving end before docker load. Inside the isolated site there is no cryptographic re-verification — the tarball carries no signature, and docker load does not preserve registry digests (empty RepoDigests), so docker inspect cannot confirm the load matches what was verified.

The full procedure — mirroring an image, confirming the referrer graph survived, post-import verification, mirroring module packages, the air-gapped recipe for images and modules, an end-to-end validation checklist, and troubleshooting — is in Mirroring releases into your own registry.

Trust anchor fingerprints

The published certificate is self-signed (subject CN=merkalis.io, valid through 2036). Recorded fingerprints, so the file you import can be cross-checked against an out-of-band channel:

SHA256 (S256): 6895c859070cc242f2799aa5bb456b625da3dd06e6594275d021b453f172c062

Token lifecycle

  • Rotation: the token password expires ~1 year after issuance. Merkalis rotates it on the annual cycle; a new password is issued through the same channel.
  • Revocation: removing a customer's entitlement immediately breaks subsequent pulls; the token is disabled at the registry.
  • Audit: every pull is recorded in the registry's activity log; credentials are retrieved from the audited Key Vault only.