Intermediate · 5 steps
Kubernetes secret contracts
Design a secret-validation boundary, interpret controller status, and make deployment gates enforceable.
Before you start
Kubernetes resources, namespaces, RBAC, and basic controller concepts. Use synthetic credentials for exercises.
What you will make
A scoped contract, an authorization matrix, and a deployment gate that rejects stale evidence.
01 · Book chapter
Define who may observe secret properties ↗
Treat validation status and Secret access as separate information boundaries.
Put it to work
List a contract author, workload author, operator identity, and status reader. Explain which secret properties each may infer and which namespaces they may access.
Keep as evidence: An authorization matrix using synthetic resources and explicit namespace boundaries.
02 · Book chapter
Make contract semantics unambiguous ↗
Separate required secret material, per-key validation, and optional mutation policy.
Put it to work
Draft a contract for two keys. Describe missing, empty, invalid, and valid inputs; distinguish omitted policy fields from explicit false values.
Keep as evidence: A decision table and a manifest labelled as a proposed API example.
03 · Book chapter
Interpret observations before trusting status ↗
Distinguish absence, denied access, and a failed observation without leaking raw errors.
Put it to work
Trace NotFound, Forbidden, and timeout responses. Decide which conditions can be reported and how old positive status should be treated.
Keep as evidence: A reconcile timeline with generation, observation outcome, and sanitized reasons.
04 · Book chapter
Place enforcement in the deployment path ↗
Connect validation evidence to the component that actually decides whether deployment proceeds.
Put it to work
Sketch a CI or GitOps gate. Describe stale generations, unavailable observations, and an explicit bypass policy without treating a condition as automatic admission control.
Keep as evidence: A gate decision table and the exact point where the deployment is stopped.
Practice in the browser
Reject stale deployment evidence →05 · Book chapter
Diagnose a failed contract safely ↗
Investigate permissions, contract state, and consumer readiness without dumping credentials.
Put it to work
Write an incident sequence for a contract that becomes unsatisfied after rotation. Record observations before proposing a workload change.
Keep as evidence: A reversible runbook containing static reasons and synthetic examples only.
Pause and check
Explain the secret and deployment boundaries
Choose an answer for every scenario, then check your reasoning. Progress is saved only in this browser.
Your checklist is saved only on this device. Keep your own evidence alongside each exercise. Follow new guides →