﻿# A Kubernetes server dry run validates admission without starting the worker

A practical investigation of a Kubernetes server dry run validates admission without starting the worker, with explicit observations, control cases and evidence limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-security-kubernetes-dryrun-admission-not-runtime/
Language: en

## The operational scenario

A release pipeline submits a Pod through server dry run and receives an object containing the intended security context. The report declares the model worker restricted on its target node. The API response provides useful admission evidence, but no worker was started. It cannot establish that the selected runtime supports the profile, that a volume has the expected permissions or that the resulting process uses the intended identity.

## The trust-boundary mechanism

Kubernetes documents dryRun=All as processing admission, validation, defaulting and applicable merge logic without persistence. Authorization is the same as for the corresponding real request. Admission webhooks must declare suitable side-effect behavior, and NoneOnDryRun requires the webhook to suppress side effects for such requests. The returned object is close to a would-be stored object, but generated values and later execution remain distinct boundaries.

## Define the control contract

Define the claim that the pipeline intends to support. Schema validity, admission acceptance, proposed mutations, node placement and runtime enforcement need different evidence. Retain the response as the candidate admitted configuration, with request identity and observation time. Do not bind future runtime observations to a generated dry-run UID as though it were the identity of a persisted Pod, and do not assume a future admission decision is frozen by this response.

## A step-by-step verification

First inspect the server dry-run response against the submitted synthetic manifest, including security-relevant mutations. Next verify which webhooks participate and their dry-run contract without invoking private external actions. Where runtime evidence is required, deploy a separately authorized disposable Pod and inspect the actual admitted object, node and process behavior. Finally compare relevant fields, recording any differences rather than silently transferring the earlier would-be identity.

## Evidence required for acceptance

Acceptance requires separate admission and runtime records with an explicit relationship between them. A successful dry run can reject an invalid candidate early; a running fixture must establish the selected enforcement property. Preserve a harmless negative control for the runtime requirement and a rejected admission candidate for validation. A webhook declaration is configuration evidence, not an independent code audit proving it suppresses every possible side effect correctly.

## Failure cases and limits

This distinction does not make server dry run useless: it is a valuable stage before mutation and persistence. It prevents one stage from carrying unsupported claims about another. Cluster policy changes, node support and external dependencies can invalidate a later deployment assumption. The proposed procedure performs no production rollout and supplies no compliance certificate; it explains which evidence supports an approved configuration and which still requires execution under the intended runtime.

## Primary references and related reading

Retain the dry-run object as admission evidence and verify runtime enforcement through a separate deployed fixture. [Kubernetes server dry-run stages and generated values](https://kubernetes.io/docs/reference/using-api/api-concepts/); [Kubernetes webhook dry-run side effects contract](https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/).

The proposed investigation of kubernetes dryrun admission not runtime is a proposed control review; no live security test was executed. Related reading: [ConfigMap changed but the process sees old values: env, volumes and subPath](/journal/kubernetes-configmap-update-reload/); [Operation not permitted in a GPU container: checking seccomp](/journal/container-seccomp-permission-denied/).
