Use this when securing the registry that stores container images.
Registry Security
Registry security protects where images are stored: authentication and RBAC for push and pull, TLS, image signing and scanning, and immutable tags so a trusted image cannot be silently replaced.
1. Registries: private, authenticated, scanned, signed images.
2. Least privilege for push.
3. Immutable tags or digests.
4. Admission policies only allow trusted registries.
5. Audit logs.
CI push → registry (scan, sign) → cluster pull (verified)
Context & applicabilityCommon mistakes · platform/version boundaries
- Pulling directly from public registries in production without a mirror or scanning.
- Mutable tags like
latestin deployments. - Registry credentials shared across all clusters and CI jobs.
- No cleanup, so registries hold years of vulnerable images.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
- Registry requires authentication; anonymous pull disabled unless intended.
- Images scanned on push and periodically (new CVEs).
- Tag immutability enabled, or deploy by digest (
image@sha256:...). - Signatures verified at deploy time.
- Retention policy removes old, unpatched images.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Require authentication for push and pull.
- Immutable tags prevent silent replacement.
- Scan and sign images in the registry.
- Registry access control (push/pull roles) — permissions
- Image immutability/tag protection — integrity
- Registry scanning enabled — continuous
ReferenceWhy it matters1 section · depth on demand
Registry controls
- Private registries with authentication and RBAC; read-only pull credentials for clusters.
- Scan images on push and continuously; block deployment of images with critical vulnerabilities.
- Sign images and verify signatures at admission (Cosign + Kyverno/Gatekeeper).
- Immutable tags or deploy by digest (
image@sha256:...). - Restrict which registries clusters may pull from.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Registry security protects where container images are stored and distributed. A compromised or untrusted registry can deliver malicious images straight into production.
| Control | Purpose |
|---|---|
| Private registry with authentication | Control who pushes and pulls |
| Least-privilege robot accounts | CI pushes, clusters pull only |
| Vulnerability scanning on push | Block or flag vulnerable images |
| Image signing (cosign/Notation) + admission verification | Only trusted images run |
| Immutable tags / digests | Prevent tag overwriting |
| Pull-through cache for public images | Control and availability |
| Retention policies | Remove old images |
Deploy by digest (image@sha256:…) rather than mutable tags like latest so what runs is exactly what was tested.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Container Security → Registry Security. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/190/final · confidence 94%