Using latest repeatedly removes build history and makes environments harder to compare. Teams can overwrite prior images without noticing, which weakens rollback safety and obscures whether staging and production are running the same artifact. It also increases the chance of deploying an unreviewed or tampered image, because the label does not prove content identity or release order.
Why This Matters for Security Teams
Using latest as a deployment reference creates ambiguity at the exact point where teams need certainty. A tag that can be reassigned does not tell operators what was built, tested, approved, or promoted, so incident response, change control, and rollback decisions all become less reliable. That problem is not only operational. It also affects supply chain assurance, because image identity is part of proving what actually ran in a cluster.
This is why guidance around immutable artifact references is treated seriously in modern control frameworks such as NIST SP 800-53 Rev 5 Security and Privacy Controls. In practice, the important question is not whether the tag is convenient, but whether it supports traceability across build, test, and production. Teams that lean on latest often discover that their deployment records are descriptive rather than evidential, which makes audits and post-incident analysis harder than they should be. In practice, many security teams encounter image drift only after a rollback fails or a production incident needs precise reconstruction, rather than through intentional release discipline.
How It Works in Practice
Container tags are human-readable pointers, not identity proofs. When a registry tag is updated, the name latest can point to a different image digest without changing the deployment manifest in any obvious way. That means two environments can show the same tag while running different content, and a redeploy can pull a newer build than the one previously tested. The safer model is to promote signed, versioned images by digest, then treat tags as convenience labels rather than authoritative identifiers.
In operational terms, teams should separate build, promotion, and runtime verification:
- Build once and record the immutable image digest.
- Scan and sign the exact artifact that will be deployed.
- Deploy by digest, not by mutable tag.
- Compare the running digest against the approved release record.
- Restrict registry write access so only controlled pipelines can publish release tags.
This approach aligns well with supply chain expectations in guidance such as SLSA and integrity-oriented practice in OWASP Kubernetes Top Ten, even though neither replaces internal release governance. It also supports better incident response, because a responder can ask which digest ran, where it came from, and whether it was promoted through approved gates. The practical value is that release order becomes observable instead of implied by a tag name. These controls tend to break down when registry permissions are broad and multiple CI jobs can retag images directly, because mutable labels then lose meaning as a trustworthy release signal.
Common Variations and Edge Cases
Tighter image control often increases release overhead, requiring organisations to balance deployment speed against traceability. That tradeoff is manageable in mature pipelines, but best practice is still evolving for teams that rely heavily on rapid ephemeral environments or GitOps-style automation. In those environments, tags may remain useful for convenience, yet they should never be the only mechanism used to define what is approved.
There are a few common edge cases. For local development, latest can be acceptable if the image is disposable and never promoted into shared environments. For blue-green or canary releases, teams sometimes use release tags for traffic routing while still pinning the underlying digest for auditability. For multi-architecture builds, a tag may resolve to different platform-specific manifests, so the real control point is still the immutable digest selected by the platform. In regulated or high-assurance environments, current guidance suggests combining tag discipline with artifact signing, provenance records, and change approval evidence.
Where identity and privilege enter the picture, the risk is often not the tag itself but who can move it. If deployment automation, registry publishing, and approval duties are not separated, a malicious or mistaken retag can substitute unreviewed code for an approved release. That is why the right control question is whether the pipeline enforces provenance and write restrictions, not whether the latest label looks convenient. For practitioners, the safest pattern is to reserve mutable tags for workflow convenience and rely on immutable digests for trust.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST CSF 2.0 provides the primary governance reference for this topic.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | ID.AM-5 | Asset inventory depends on knowing which image artifact is actually running. |
Track deployed image digests so asset records reflect the exact runtime artifact.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org