registry

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package registry implements the registry-security & artifact-management capability (CAPABILITY_SPEC domain 13). Where the verify module (domain 9) proves that a signature/attestation is valid, this module audits the *trust posture* of the registry an artifact is pulled from: is it an allowlisted, private source; is the pull pinned to an immutable digest; is the connection plaintext; does the image name look like a typosquat of a popular one.

It is deterministic and offline: every check reasons over image references extracted from the target (Dockerfile FROM lines, an image ref, or a registry target) plus optional policy supplied through the target Metadata. It reads neither the wall clock nor the network, so the same inputs always yield the same findings — the golden path the tests pin.

Configuration travels via the target Metadata so the module stays a pure function of its inputs:

registry.allow      comma-separated trusted registry hosts (enables allowlist mode)
registry.insecure   comma-separated hosts known to be served over plaintext HTTP

With no allowlist configured the module runs in advisory mode: it recommends pinning, an allowlist, and a private/pull-through source rather than failing a build outright.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r *engine.Registry)

Register adds the registry-security module to the registry. modules.Default() calls this during wiring; this package never edits the shared registry file.

Types

type Module

type Module struct{}

Module is the registry-security posture capability.

func New

func New() *Module

New returns a registry-security module.

func (*Module) Analyze

func (m *Module) Analyze(_ context.Context, t *engine.Target) ([]engine.Finding, error)

Analyze collects the image references the target pulls from and runs the registry-posture checks against each.

func (*Module) Description

func (m *Module) Description() string

func (*Module) Domains

func (m *Module) Domains() []string

func (*Module) Name

func (m *Module) Name() string

func (*Module) Supports

func (m *Module) Supports(t engine.TargetType) bool

Supports the three target kinds that carry an image reference: a Dockerfile (its FROM base images), a built image, and a registry reference.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL