Skip to main content
External image policies allow you to enforce security requirements on container images pulled from public or private registries before they are deployed to customer installs. Nuon automatically fetches rich metadata about container images including SBOMs, signatures, attestations, and in-toto statements, making this data available to your OPA policies.

Policy Input Structure

When evaluating external image policies, Nuon provides the following input structure:

Quick Reference


Basic Image Requirements

Require Image Signing

Ensure all images are cryptographically signed:

Require SBOM Presence

Ensure all images include a Software Bill of Materials:

Require Specific SBOM Format

Enforce a specific SBOM format (SPDX or CycloneDX):

Signature Inspection

Check Signature Algorithm

Require a specific signing algorithm:

Require Signature from Trusted Issuer

Validate signature issuer for keyless signing (e.g., Sigstore):

Attestation Policies

Require SLSA Provenance

Ensure images have SLSA provenance attestations:

Check Specific Predicate Types

Inspect attestation layers for specific predicate types:

Advanced: Decoded Attestation Content

When attestation layers are fetched with content decoding enabled, you can inspect the decoded in-toto statements.

Validate In-Toto Statement Type

Verify Subject Digest Matches Image

Ensure attestation subjects match the image being validated:

Inspect SLSA Provenance Predicate

Access the full provenance predicate for advanced validation:

Platform-Specific Policies

Require Multi-Architecture Support

Ensure images support specific platforms:

Image Registry Policies

Allowlist Trusted Registries

Only allow images from approved registries:

Block Latest Tag

Prevent use of mutable tags:

Combining Multiple Requirements

Production-Ready Image Policy

A comprehensive policy combining multiple security requirements:

Configuring Image Policies

Add external image policies to your Nuon configuration:
policies/external-images.toml

Using External Policy Files

Reference policies from your repository:
policies/external-images.toml

Metadata Field Reference

input.metadata.sbom

SBOM Detection: Nuon detects SBOMs from two sources:
  1. OCI referrers with SBOM artifact types
  2. Attestation layers with predicate types:
    • https://spdx.dev/Document → format: spdx
    • https://cyclonedx.org/bom → format: cyclonedx

input.metadata.signatures

input.metadata.attestations

Attestations discovered via OCI referrers:

input.metadata.attestation_manifests

Full attestation manifest data including layers:

input.metadata.attestation_manifests[].layers

input.metadata.attestation_manifests[].layers[].decoded

Decoded in-toto statement:

input.metadata.index

OCI image index (manifest list):

input.metadata.index.manifests