Policy Input Structure
When evaluating external image policies, Nuon provides the following input structure:Quick Reference
Basic Image Requirements
Require Signature Metadata
Require Nuon to discover signature metadata for an image. This is useful as a metadata-presence rule, but it does not replace native cryptographic verification: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
Inspect Signature Algorithm
Require discovered signature metadata to identify a specific signing format:Inspect Signature Issuer
Check the issuer recorded in discovered keyless signature metadata. This does not validate the certificate chain or signature; use native signature verification to trust the issuer cryptographically.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.Inspect In-Toto Statement Type
Check the Declared Subject Digest
Check whether decoded attestation metadata declares the image digest as its subject. This is not proof that the attestation itself has a valid signature: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
Image Metadata Policy
A policy combining several image metadata requirements. Pair this with native signature verification when signer trust is required: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:
- OCI referrers with SBOM artifact types
- Attestation layers with predicate types:
https://spdx.dev/Document→ format:spdxhttps://cyclonedx.org/bom→ format:cyclonedx