awesome-everything RU
↑ Back to the climb

Deployment & Infra

Secrets at deploy: multiple-choice review

Crux Multiple-choice synthesis across the secrets-at-deploy unit: image hygiene, base64 vs encryption, etcd at rest, injection style, sealed secrets, and rotation.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at senior altitude — in orbit
◷ 13 min

Six questions that cut across the whole unit. Each mirrors a real call you make at deploy time — not a definition to recite, but a threat model to reason through under audit.

Goal

Confirm you can connect image hygiene, the base64 trap, etcd encryption, injection style, sealed secrets, and rotation into one coherent stance on where a secret enters and where it leaks.

Quiz

A Dockerfile sets ENV API_KEY=sk-live-abc in an early layer, then a later layer runs `unset API_KEY`. Is the key safe in the pushed image?

Quiz

A teammate insists the cluster is safe because every Kubernetes Secret value is base64-encoded. What is the precise correction?

Quiz

You configure an EncryptionConfiguration so the API server encrypts Secrets at rest in etcd. An auditor still finds an old Secret in plaintext in an etcd backup. Why, and what was missed?

Quiz

An error tracker shows a live DB password indexed in plaintext inside a stack trace. The secret was injected as an environment variable. What is the root cause and the structural fix?

Quiz

A small GitOps team must commit secret config to a private repo so Argo CD can apply it, and they want minimal external dependencies. Which approach is correct, and why is it genuinely safe to commit?

Quiz

Security wants secrets rotated every 30 days, and they want a stolen credential to be useless fast. You run on Kubernetes with Vault available. What pairing best meets both goals?

Recap

The through-line of the unit is one decision path: the secret enters at deploy or runtime (never in the image), it must be genuinely encrypted rather than base64-encoded, etcd needs encryption at rest configured and existing Secrets rewritten, file mounts beat env vars on leak surface and in-place rotation, Sealed Secrets make a committable GitOps artifact, and dynamic short-lived credentials make a stolen secret expire before it is useful. Every wrong answer here is a real incident someone has already lived through.

Continue the climb ↑Secrets at deploy: free-recall review
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.