Notation, the command line tool of the Notary Project, signs container images and other OCI artefacts with X.509 certificates and verifies them against a trust store and trust policy that you control. It is the signing approach behind several managed cloud offerings, including the AWS Signer plugin for Amazon ECR and the Azure Key Vault plugin for Azure Container Registry, and it suits organisations that already run a public key infrastructure (PKI) and want image signing to follow the same certificate rules as the rest of their estate.
For identity and security teams the important point is that the signing key is a high value non-human identity credential. Whoever can use it can make any image look approved. This guide explains how Notary Project signatures work, what the trust store and trust policy enforce, how keys are held through plugins, how cloud integrations are permissioned and how to roll verification out without leaving gaps. For the general principles of code signing see our Code Signing Security Guide; for the keyless model see our Sigstore Guide.
Key takeaways
- The Notary Project describes itself as "a set of specifications and tools intended to provide a cross-industry standard for securing software supply chains". Notation is its CLI, extended by plugins for key management services.
- Signatures are stored in the registry next to the image, as OCI manifests linked to it, and signed by a certificate whose chain must be authenticated against a trust store.
- Verification is controlled by a trust policy: which repositories it covers, which trust stores apply, which certificate subjects are trusted and how strict the checks are.
- Only the
strictverification level enforces expiry and revocation.permissiveandauditonly log those failures. - Keep signing keys non-exportable in a key management service and grant signing rights to CI identities only, scoped to specific repositories.
- Always sign by digest, not by tag, because tags are mutable.
What the Notary Project and Notation are
The Notary Project is both a set of specifications and the community that maintains them and their implementations. The documentation lists Notation and the specifications as its main subprojects, and covers the Notation CLI with installation steps, a command reference and tutorials. At the time of writing, the documentation site lists release lines from v1.0 to v1.3 and announces "Notation v2.0.0-alpha.1", so check which version your platform plugin supports before standardising.
Notation supports plugins, which let signing keys stay inside an external key management or signing service while the CLI handles the OCI side. The project publishes guidance on installing and managing plugins and a developer guide titled "Securely develop plugins for Notation". Cloud providers ship their own plugins, covered below.
How a Notary Project signature works
The Notary Project specifications define the signature format and the verification rules.
Storage in the registry
Signatures are stored as OCI image manifests and discovered through the referrers mechanism. By default the manifest sets artifactType to application/vnd.cncf.notary.signature, and each manifest points to a signature envelope blob. Because signatures travel with the image inside the registry, copying an image between registries should include its referrers, or verification will fail at the destination. Microsoft's documentation notes that since Notation v1.2.0, signatures are stored using the OCI referrers tag schema by default.
Envelope and signed attributes
The envelope is either JWS (JSON serialisation) or COSE_Sign1. It carries the payload, signed attributes and the signature. Key signed attributes are:
- Signing scheme, either
notary.x509ornotary.x509.signingAuthority. It decides how signing time is trusted. - Signing time, required for
notary.x509. The specification warns that although it is signed, "it's considered unauthenticated", because a signer can change their own clock. - Authentic signing time, required for
notary.x509.signingAuthority, provided by a signing authority to show the certificate was valid at signing. - Expiry, an optional "best by" time set by the signer. Past it, the artefact counts as expired, though policy can still accept it.
Algorithms and certificate rules
The algorithm follows the signing certificate's key. Implementations must support RSASSA-PSS with RSA 2048, 3072 and 4096 bit keys (SHA-256, SHA-384 and SHA-512 respectively) and ECDSA on P-256, P-384 and P-521. RSA keys must be at least 2048 bits and ECDSA keys at least 256 bits, and SHA-1 signatures are not allowed anywhere in the chain.
The certificate profile is strict, which matters if you plan to reuse an existing CA:
- CA certificates must have critical
basicConstraintswithcAtrue andkeyCertSignset. - Leaf certificates must have
digitalSignatureset. - The leaf may carry the code signing EKU, but must not include
anyExtendedKeyUsage,serverAuth,clientAuth,emailProtectionortimeStamping. - Every certificate in the chain must be valid at signing time.
In practice this means you should issue dedicated signing certificates from a dedicated issuing CA, not repurpose TLS or client authentication certificates.
Trust stores and trust policy
Verification in Notation is driven by two pieces of local configuration, defined in the trust store and trust policy specification.
Trust stores
Trust stores are named collections of root certificates, in three types: x509/ca for certificate authority roots, x509/signingAuthority for signing authority roots and x509/tsa for timestamping authority roots. The specification says entries "are root certificates" and that "placing intermediate certificates in the trust store is not recommended". Symlinks are not allowed for store directories or certificate files.
Trust policy fields
| Field | Purpose |
|---|---|
name | Policy name. |
registryScopes | Fully qualified repository URIs the policy applies to, or a single * for a global policy. |
signatureVerification | The level, optional override of individual checks, and verifyTimestamp. |
trustStores | Named stores such as ca:acme-rockets; a tsa store is needed for timestamp verification. |
trustedIdentities | Certificate subject DNs prefixed x509.subject:, or * for any certificate that chains to the trust store. |
For a given OCI artefact there must be only one applicable policy, apart from the global one. An exact repository match wins; otherwise the global policy applies; if neither exists, verification fails.
Verification levels
| Level | Enforced | Logged only |
|---|---|---|
strict | Integrity, authenticity, authentic timestamp, expiry, revocation | None |
permissive | Integrity, authenticity | Authentic timestamp, expiry, revocation |
audit | Integrity | Authenticity, authentic timestamp, expiry, revocation |
skip | Nothing | Nothing |
Integrity cannot be overridden, and skip cannot be used with the global scope. The security consequence is simple: audit does not check who signed the image, and permissive will accept a signature from a revoked certificate. Use them only during rollout.
Identity pinning
A wildcard trustedIdentities value trusts any certificate issued by a CA in the store. If that CA also issues certificates for other teams or purposes, any of them can sign images your policy accepts. Pin the exact subject of the signing certificate for each repository scope, as in Microsoft's example policy, which trusts a single x509.subject value with the strict level.
Revocation and timestamping
Revocation is the main way to respond to a stolen signing key, so its behaviour needs to be understood before an incident.
- Only
strictenforces revocation. The specification states that "thepermissiveverification level only logs failures of revocation check and does not enforce it". - OCSP is preferred over CRLs when both are present, with CRL fallback. Default timeouts are 2 seconds for OCSP and 5 seconds for CRL download.
- If status cannot be determined, the result is "revocation unavailable", which is treated as a failure at the configured enforcement.
- Certificates with no OCSP or CRL information are treated as not revoked, so make sure your signing certificates carry revocation endpoints.
Our Certificate Revocation Guide covers running OCSP and CRL endpoints reliably.
Timestamping lets signatures stay valid after the signing certificate expires. Microsoft describes RFC 3161 timestamping, added in Notation v1.2.0, as extending "the trust of signatures created within the certificate's validity period by trusting a time stamp authority". Under the specification, timestamp verification applies to the notary.x509 scheme when a tsa trust store is configured, and when it runs, the TSA's integrity, authenticity and revocation are enforced. Without it, the signing certificate chain must be valid at verification time, so short lived certificates without timestamps will break verification of older images.
Keeping signing keys safe with plugins
The signing key is the credential that matters. Notation's plugin model lets you keep it in a managed service so it never sits on a build agent.
Azure Key Vault
Microsoft's tutorial signs images in Azure Container Registry with the notation-azure-kv plugin and a certificate held in Azure Key Vault. Its example certificate uses a non-exportable RSA 2048 bit key, digitalSignature key usage and the code signing EKU, which Microsoft notes "isn't required for Notation to sign artifacts". It lists the minimum roles as Key Vault Certificates Officer to create certificates, Key Vault Certificates User to read them and Key Vault Crypto User for signing, plus registry push and pull roles. The plugin tries credentials in order (environment, workload identity, managed identity, Azure CLI). In CI, use workload identity rather than a stored client secret. See our Azure Key Vault Security Guide and Azure Container Registry Security Guide for platform hardening.
AWS Signer
AWS documents signing Amazon ECR images with Notation and the AWS Signer plugin. Its installer bundles the Notation binary, the plugin, a trust store set up with AWS Signer's root certificate and a configurable trust policy. AWS asks you to verify the installer's signature before running it: if the GPG fingerprint does not match, "don't run the installer". Its example IAM policy combines ECR repository actions on a specific repository with signer:PutSigningProfile, signer:SignPayload and signer:GetRevocationStatus. Split these in production: the identity that creates signing profiles should not be the CI identity that signs, and signing rights should be limited to the profiles that pipeline needs.
Plugin trust
A plugin runs with access to your signing session, so treat plugins as part of the trusted computing base. Install them only from the publisher, verify their signatures and pin versions in build images.
Signing and verifying in pipelines
A sound pipeline signs once, after build and scanning, and verifies at every point of use.
- Build and push, capture the digest. Microsoft's guidance is to "always use the digest value to identify the image for signing, because tags are mutable and can be overwritten".
- Sign with a CI workload identity that can call the key service but cannot export the key or change its policy.
- Timestamp signatures if your certificates are short lived or images are kept for long periods.
- Verify before promotion between registries or environments, with
notation verifyand astrictpolicy. - Enforce at deployment. Use a Kubernetes admission controller or platform policy so unsigned or untrusted images cannot run. Microsoft points to Ratify with Azure Policy and AKS Image Integrity; see our Kubernetes Admission Control Guide.
Signing proves who approved an image, not how it was built. Pair it with provenance attestations as described in our SLSA and Build Provenance Guide.
Managing signing identities over time
- Separate certificates by product or team so trust policies can pin subjects per repository and a compromise has a bounded scope.
- Distribute trust stores and policies as code to clusters and verifiers, with change review. A change to
trustedIdentitiesis a change to who can ship to production. - Plan certificate renewal. Add new roots or subjects before rotation and remove old ones after, so deployments do not break.
- Log every signing operation in the key service and correlate it with pipeline runs. A signature without a matching pipeline run is an incident.
- Rehearse revocation, including re-signing good images with a new certificate.
Treat the signing certificate, its private key and the CI identity that can use it as one non-human identity with a named owner. Review its access at least as often as you review privileged human access, because in practice it has the same power: anything it signs, your clusters will run.
Common failure patterns
- Production clusters left on
auditorpermissiveafter rollout, so revoked or unknown signers are only logged. trustedIdentitiesset to*with a broadly used enterprise CA in the trust store.- Exportable signing keys downloaded to build agents or developer machines.
- Signing by tag, so the signed content can change after signing.
- Signing certificates without OCSP or CRL endpoints, which verifiers treat as not revoked.
- Images copied between registries without their signatures, leading teams to disable verification.
- One CI identity holding rights to create signing profiles, sign and push to every repository.
Practitioner checklist
- Issue dedicated signing certificates from a dedicated CA that meets the Notary Project certificate profile.
- Hold signing keys non-exportable in a key management service, reached through a verified, pinned plugin.
- Grant signing to CI workload identities only, scoped per repository or signing profile.
- Sign by digest after scanning, and add timestamps where certificates are short lived.
- Write trust policies per repository scope with pinned subjects and the
strictlevel. - Enforce verification at admission and before promotion between registries.
- Ensure signing certificates carry revocation endpoints and test revocation end to end.
- Manage trust stores and policies as reviewed code, and log every signing operation.
Standards and references
- Notary Project: Signature specification
- Notary Project: Trust store and trust policy specification
- Notary Project documentation
- Microsoft: Sign container images with Notation and Azure Key Vault
- AWS: Prerequisites for signing container images with AWS Signer
- NIST: SP 800-218 Secure Software Development Framework (SSDF) Version 1.1
- OpenSSF: SLSA v1.0 Security Levels
- MITRE ATT&CK: T1195.002 Compromise Software Supply Chain
Related NHI Mgmt Group resources: Sigstore Guide · Code Signing Security Guide · Container Image Security Guide · SLSA and Build Provenance Guide