A Container Tag Is Not Deployment Evidence

●2 ●6 ●10
calendar_today ago • schedule3 min read
— Originally published at www.zen-mesh.io

Kubernetes makes it easy to deploy:

registry.example/service:candidate

That is convenient.

It is not strong evidence that the bytes running tomorrow are the bytes you tested today.

Tags are names, not immutable artifacts

A registry tag can move.

If candidate points to digest A during testing and digest B later, the YAML can remain identical while the artifact changes.

That is fine for many development workflows.

For a release we intend to stand behind, we want stronger provenance.

Bind the chain

A useful evidence chain is:

source revision
-> image build
-> registry digest
-> deployment uses repo@sha256:...
-> runtime imageID matches the expected digest

Each link answers a different question.

  • Source revision: what code did you intend to build?
  • Registry digest: what immutable artifact did the registry store?
  • Deployment reference: what artifact did you ask Kubernetes to run?
  • Runtime imageID: what did the node actually start?

If those identities match, the claim that this is the artifact you tested has much less ambiguity.

Why preloaded image shortcuts are dangerous

Local clusters encourage shortcuts: build an image on the host and import it directly into cluster nodes.

That can be useful for fast development.

It is weaker as release evidence because it bypasses the same registry pull path the real deployment will exercise.

A cluster can therefore pass while:

  • registry credentials are wrong;
  • mirror configuration is wrong;
  • the expected digest is absent;
  • image pull policy behaves differently;
  • the node already has a stale local image.

For release testing, we prefer the normal path: build, push, obtain the immutable digest, deploy by digest, and check the runtime image identity.

Kubernetes is not the missing piece

Kubernetes supports digest references perfectly well.

The gap is process discipline.

The platform does not know which artifact your organization tested, or which source revision it should correspond to. That release evidence belongs in your build and release process.

Configuration equality is not artifact equality

Identical YAML can run different bytes.

If a release claim matters, bind it to immutable identities wherever possible.

The same principle applies beyond images. A release also depends on its chart or manifest version, its configuration, its policy files and its dependencies. If an input can change behavior, your release evidence should know which version of it you tested.

A tag is a useful pointer.

A digest is a much better answer to "what exactly did we test?"

Digest pinning also improves debugging

Immutable provenance is not only a security control. It makes incidents easier to reason about.

When a Pod is unhealthy, operators can ask:

Which source revision produced this image?
Which registry digest was tested?
Which digest did the Deployment request?
Which imageID is the runtime actually using?

If those answers are exact, "works on my machine" and stale-node-cache problems become much easier to isolate.

Release testing should include the pull path

A release is not fully exercised if the test environment bypasses the artifact distribution path.

The cluster should be able to:

  • reach the registry or mirror;
  • authenticate if required;
  • resolve the exact digest;
  • pull it after local cache removal;
  • start the container;
  • report the matching runtime image identity.

Catching this class of deployment defect in a test cluster is much cheaper than catching it during a real rollout.

Tags still have a place

Human-friendly tags remain useful for browsing and promotion workflows.

A release process can publish both:

service:v1.2.3
service@sha256:...

The tag tells humans what the artifact represents. The digest tells automation exactly what it is.

Treating those as complementary gives you convenience without sacrificing provenance.

Originally published in Beyond Kubernetes Defaults on the Zen Mesh blog.

How do you prove that what you tested is what is actually running?

Want more #devops & #security deep dives?

Join 6,178+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

2 Comments

0 votes
0 votes

More Posts

Your AI Agent Doesn't Need Your Token: Edera's Ariadne Conill on Object Capabilities

Tom Smithverified - Nov 5

Your Kubernetes Requests Are a Guess. groundcover Wants an Agent to Keep Fixing Them.

Tom Smithverified - Nov 3

StarlingX 13.0 Turns Two Edge Upgrades Into One Reboot. Test the Targets Yourself.

Tom Smithverified - Nov 24

MCP Is the USB-C of AI. So Why Are You Plugging Everything In?

Ken W. Algerverified - Jun 10

Kamal vs Kubernetes: An Honest Comparison for Teams Who Don’t Need 1,000 Services

Alexandre Vazquez - Jul 24
chevron_left
887 Points • 18 Badges
Canada • zen-mesh.io
4Posts
7Comments
8Connections
Zen Mesh Inc. builds secure webhook delivery and event-routing infrastructure, and maintains indepen... Show more

Related Jobs

View all jobs →

Commenters (This Week)

23 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!