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:
- OCI referrers with SBOM artifact types
- Attestation layers with predicate types:
https://spdx.dev/Document→ format:spdxhttps://cyclonedx.org/bom→ format:cyclonedx