Skip to main content
Version: v0.36.0

oci

The oci analyzer fetches image metadata and platform details using the regctl CLI.

Overview

  • Analyzer Name: oci
  • Tool Dependency: regctl
  • Output Schema: oci.schema.json

Functionality

This analyzer provides a comprehensive view of image metadata, including:

  • Raw manifest and config data.
  • Per-platform details for multi-arch images (architecture, OS, size, layers).
  • Exposed ports and environment variables.
  • OCI labels.
  • Flat list of supported platform identifiers (platforms_supported), e.g. ["linux/amd64", "linux/arm64"].

Default Rules

The following rules are provided by default:

SlugTitleLevel
user-blacklistImage must not run as root.critical
max-sizeImage size is within limits.warning
layers-countImage has an acceptable number of layers.warning
tag-blacklistImage tag should not be 'latest'.warning
platforms-countImage should support multiple platforms.info
platforms-requiredImage must support a required set of platforms.warning
platforms-whitelistImage must only support allowed platforms.warning
platforms-blacklistImage must not support forbidden platforms.warning
exposed-ports-whitelistImage exposes permitted ports.warning
required-labelsImage must have required OCI labels.warning
env-blacklistImage must not contain forbidden environment variables.critical
Opt-in rules

platforms-required, platforms-whitelist, and platforms-blacklist ship disabled by default — their defaults are policy choices that would otherwise warn on common images. Activate one by binding its criterion in your playbook (for example criterion: platforms-whitelist with options:); binding a criterion enables it automatically. All other rules above run by default.