Config, storage and stateLesson 2 of 6
  1. ConfigMaps, not reconciled
  2. Secrets and external secret stores, not reconciled
    1. Secret types
    2. Encoding is not encryption
    3. Encryption at rest
    4. Access paths
    5. Mount, do not export
    6. External stores
    7. Rotation
  3. Volumes inside a pod, not reconciled
  4. PersistentVolumes, claims and StorageClasses, not reconciled
  5. StatefulSets, not reconciled
  6. Snapshots, clones and volume attributes, not reconciled

Secrets and external secret stores

A Secret is a ConfigMap with a type, tmpfs mounts and its own RBAC resource. Base64 is not protection; encryption at rest, narrow access and mounted files are.

  • 25 min
  • 4 objectives
  • 7 scenes
  • Includes an On AWS layer

Shows the lesson one block at a time. Arrow keys step, number keys jump to a scene, and Escape returns to the page where you were.

A SecretAn API object for small amounts of sensitive data, such as a password, token or key, that pods consume as files or environment variables. looks almost exactly like a ConfigMap: a namespaced map of keys to values, consumed through secretKeyRef, envFrom or a volume, with the same 1 MiB limit, the same optional flag and the same immutable field. The differences are few, and each one matters: Secrets have a type, their values are base64-encoded, the kubelet mounts them on tmpfs, and RBAC treats secrets as a separate resource, so access can be granted apart from everything else.

None of that makes the data secret. This lesson is about what does: who can reach the object, how it is stored, how it reaches the process, and how to keep the source of truth outside the cluster.

Reconcile, in 7 scenes

Secret types

The type field tells the API server which keys to require, and tells consumers what the data is.

TypeHoldsRequired keys
OpaqueAnything; the defaultNone
kubernetes.io/tlsA certificate and its private keytls.crt, tls.key
kubernetes.io/dockerconfigjsonRegistry credentials for imagePullSecrets.dockerconfigjson, which must parse as JSON
kubernetes.io/basic-authA username and passwordusername or password
kubernetes.io/ssh-authAn SSH private keyssh-privatekey
kubernetes.io/service-account-tokenA long-lived service account tokenFilled in by the control plane

The API server checks that the required keys are present and that .dockerconfigjson parses as JSON, and nothing more. It does not verify that tls.crt is a certificate, that it matches tls.key, or that the JSON is a Docker config file. kubectl create secret has a subcommand per common type: generic for Opaque, tls with --cert and --key, and docker-registry, which builds the JSON for you.

Two Secrets, two types
kubectl create secret generic api-token --from-literal=token=tok-4f9a1c
secret/api-token created
kubectl create secret docker-registry ghcr-pull --docker-server=ghcr.io --docker-username=ci-bot --docker-password=example-token
secret/ghcr-pull created
kubectl get secrets
NAME        TYPE                             DATA   AGE
api-token   Opaque                           1      0s
ghcr-pull   kubernetes.io/dockerconfigjson   1      0s

Service account token Secrets are legacy. Kubernetes 1.22 and later give pods short-lived, audience-bound tokens from the TokenRequest API through a projected volume, and 1.24 and later stop creating long-lived token Secrets automatically. Create one only for a client that cannot use TokenRequest, and treat it as a credential that never expires.

Encoding is not encryption

The data map holds base64, because Secret values may be binary. Anyone who can read the object can decode it with base64 -d. For convenience, a manifest can use stringData instead, with plain-text values. stringData is write-only: the API server encodes each value and merges it into data, where it wins over a key of the same name, and the field never appears on read.

apiVersion: v1
kind: Secret
metadata:
  name: db-credentials
type: Opaque
stringData:
  username: app
  password: s3cr3t-pa55
What the API stores for stringData
kubectl apply -f db-credentials.yaml
secret/db-credentials created
kubectl get secret db-credentials -o yaml
apiVersion: v1
data:
  password: czNjcjN0LXBhNTU=
  username: YXBw
kind: Secret
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"v1","kind":"Secret","metadata":{"annotations":{},"name":"db-credentials","namespace":"default"},"stringData":{"password":"s3cr3t-pa55","username":"app"},"type":"Opaque"}
  creationTimestamp: "2026-11-19T09:01:00Z"
  name: db-credentials
  namespace: default
  resourceVersion: "268"
  uid: 79a4e77f-96b1-45df-a336-3b806ea852fe
type: Opaque
kubectl describe secret db-credentials
Name:         db-credentials
Namespace:    default
Labels:       <none>
Annotations:  <none>

Type:  Opaque

Data
====
password:  11 bytes
username:  3 bytes

kubectl describe prints sizes, not values. That keeps passwords off a shared screen, but it is a display choice, not access control.

Encryption at rest

Every object lives in etcd under a key built from its resource, namespace and name. A Secret is stored at /registry/secrets/<namespace>/<name>, in the same keyspace as Pods and ConfigMaps. By default the API server writes it there unencrypted, so an etcd backup or a disk image holds every credential in the cluster.

Encryption at rest is an API server setting. The --encryption-provider-config flag points at an EncryptionConfigurationA file read by kube-apiserver that lists, per resource, the providers used to encrypt objects before they are written to etcd.:

apiVersion: apiserver.config.k8s.io/v1
kind: EncryptionConfiguration
resources:
- resources:
  - secrets
  - configmaps
  providers:
  - kms:
      apiVersion: v2
      name: cloud-kms
      endpoint: unix:///var/run/kms-plugin/socket.sock
      timeout: 3s
  - identity: {}

The first provider encrypts every write. Every listed provider is tried on reads, which is why identity: {} (no encryption) stays at the end until existing objects have been rewritten with kubectl get secrets --all-namespaces -o json | kubectl replace -f -.

The KMS v2The API server’s envelope encryption interface: each object is encrypted with a data encryption key, which a key management service wraps with a key that never leaves it. is the one to choose. It generates data encryption keys locally and asks an external KMS, through a plugin on a Unix socket, to wrap them with a key encryption key the API server never holds. Stealing etcd then gets an attacker ciphertext and wrapped keys, nothing more. KMS v2 is stable from Kubernetes 1.29. KMS v1, a kms entry without apiVersion: v2, was deprecated in 1.28 and is disabled by default from 1.29. Of the local providers, secretbox is acceptable; aescbc is not recommended because it is open to padding-oracle attacks, and aesgcm is safe only with automated key rotation. All of them keep the key in a file on the control plane node, next to the data it protects.

Access paths

Encryption at rest protects disks and backups. A user with the right API permissions gets plain values whatever the storage. Count every path to a Secret’s contents:

  • get on secrets returns one Secret’s values.
  • list and watch return the values of every Secret in scope. RBAC has no verb that lists names without values; kubectl get secrets -A -o yaml is a full dump.
  • create on pods, or on anything that makes pods (Deployments, Jobs, CronJobs, StatefulSets), lets the creator mount or inject any Secret in the namespace and print it. The kubelet fetches what the pod references without asking whether the pod’s author may read it.
  • create on pods/exec reaches every Secret already mounted into running pods.
  • Node access. The Node authorizer limits each kubelet to the Secrets of pods scheduled to it, but a privileged container, or root on the node, can read every Secret used on that node.
No rule for Secrets, and still a way in
kubectl auth can-i get secrets -n payments --as=system:serviceaccount:payments:ci-deployer
no
kubectl auth can-i list secrets -n payments --as=system:serviceaccount:payments:ci-deployer
no
kubectl auth can-i create pods -n payments --as=system:serviceaccount:payments:ci-deployer
yes

The namespace is the real boundary, so put workloads with different trust in different namespaces. Within one, grant get with resourceNames on the specific Secrets an application needs, and avoid list and watch on secrets for anything but controllers that need them. A RoleBinding that grants a service account access must name the account’s namespace in the subject; a ServiceAccount subject without namespace is invalid. With an audit policy in place, the API server’s audit log records each request for a Secret: who made it, which Secret, and when.

Mount, do not export

An environment variable is the easy way to hand a value to a process, and the leakiest. It is inherited by every child process, readable in /proc/<pid>/environ by anything running as the same user, printed by debugging endpoints and env in a startup script, and captured in crash reports. A mounted file is read only by code that opens it.

apiVersion: v1
kind: Pod
metadata:
  name: ledger
spec:
  containers:
  - name: ledger
    image: busybox:1.37
    command: ["sh", "-c", "sleep 3600"]
    volumeMounts:
    - name: api-token
      mountPath: /var/run/secrets/ledger
      readOnly: true
  volumes:
  - name: api-token
    secret:
      secretName: api-token
      defaultMode: 0400

The kubelet writes Secret volumes to tmpfs, so values live in memory and never touch the node’s disk. That, not file permissions, is what distinguishes them from ConfigMap volumes: both default to defaultMode: 0644, readable by any user in the container. The files belong to root, so 0400 suits a container that runs as root, like the one above. For an application that runs as another user, set the pod’s securityContext.fsGroup to a group it belongs to and defaultMode: 0440: the kubelet gives the files that group, and other users in the container cannot read them. Mounted Secrets also follow updates, which environment variables never do.

When a value must be a variable, secretKeyRef exports one key under a name you choose, and envFrom with a secretRef exports every key. Any Secret key is a valid variable name on Kubernetes 1.32 and later, where names may use any printable ASCII character except =; on 1.31 and earlier envFrom skipped keys that were not C-style identifiers and recorded an InvalidEnvironmentVariableNames event.

Missing Secrets fail the same way missing ConfigMaps do. The pod is accepted and scheduled; a missing Secret behind secretKeyRef or envFrom leaves the container in CreateContainerConfigError, and a missing Secret behind a volume leaves the pod in ContainerCreating with FailedMount events, until the Secret appears or the reference is marked optional. A different failure is common after a refactor: the env entry itself disappears, the kubelet starts the container without the variable, and an application that requires it exits at startup and lands in CrashLoopBackOff.

External stores

A Secret written by hand has its source of truth in someone’s terminal history. A dedicated store keeps that source outside the cluster, with its own access control, audit and rotation, and one of two designs brings the values in.

External Secrets Operator (ESO) runs a controller that reads a store and writes ordinary Secret objects. A SecretStore (namespaced) or ClusterSecretStore describes how to reach the store; an ExternalSecret says which values to fetch, which Secret to write and how often to refresh. ESO serves its resources at external-secrets.io/v1. Release 0.17.0 (2025-05-14) stopped serving v1beta1, so v1beta1 manifests fail with no matches for kind.

apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: ledger-db
  namespace: payments
spec:
  refreshInterval: 1h
  secretStoreRef:
    kind: ClusterSecretStore
    name: aws-secrets-manager
  target:
    name: ledger-db
    creationPolicy: Owner
  data:
  - secretKey: password
    remoteRef:
      key: payments/ledger-db
      property: password

The result is a normal Secret, so everything above still applies: it sits in etcd, RBAC governs it, and pods consume it in any of the usual ways.

The Secrets Store CSI driver mounts values from the store straight into the pod as files, through a csi volume with driver secrets-store.csi.k8s.io that names a SecretProviderClass (secrets-store.csi.x-k8s.io/v1). A provider plugin per store does the fetching. By default no Secret object is created, so nothing lands in etcd. The optional secretObjects field syncs mounted values into a Secret for consumers that need one, such as environment variables or an Ingress certificate, if the driver was installed with syncSecret.enabled. Each objectName there must match the objectAlias, or the path-translated objectName, of a mounted object. The synced Secret exists only while some pod mounts the volume and is deleted when the last one goes.

Two other tools keep encrypted secrets in Git instead. SOPS (getsops/sops, a CNCF Sandbox project) encrypts values in YAML files with KMS, age or PGP keys. Sealed Secrets encrypts a Secret into a SealedSecret that only its in-cluster controller can decrypt, scoped strict, namespace-wide or cluster-wide. Its Helm chart is served from https://bitnami.github.io/sealed-secrets. The project publishes the controller image itself, as docker.io/bitnami/sealed-secrets-controller, so Bitnami’s 2025 changes to its application image catalog do not remove it; release 0.41.2 was published there on 2026-10-26. kubeseal looks for a controller named sealed-secrets-controller in kube-system, while the chart names its controller sealed-secrets, so pass --controller-name and --controller-namespace to match the install, or set the chart’s fullnameOverride. HashiCorp Vault has been under the Business Source License since 2023; OpenBao is the open-source fork.

Rotation

Rotating a mounted Secret in place takes no restart. The kubelet picks up the change on its sync loop through the same ..data symlink swap ConfigMaps use: the kubelet sync period, 1 minute by default, plus the delay of its watch-based cache.

Rotate in place, then read the file after the kubelet's next sync
kubectl get pods -n payments
NAME                      READY   STATUS    RESTARTS   AGE
ledger-5746c8867c-5wgzj   1/1     Running   0          30s
ledger-5746c8867c-tn9rt   1/1     Running   0          30s
kubectl exec -n payments deploy/ledger -- cat /var/run/secrets/ledger/api-token
tok-7f3a9c
kubectl patch secret ledger-api -n payments -p '{"stringData":{"api-token":"tok-81d2e4"}}'
secret/ledger-api patched
sleep 90
kubectl exec -n payments deploy/ledger -- cat /var/run/secrets/ledger/api-token
tok-81d2e4
kubectl get pods -n payments
NAME                      READY   STATUS    RESTARTS   AGE
ledger-5746c8867c-5wgzj   1/1     Running   0          2m
ledger-5746c8867c-tn9rt   1/1     Running   0          2m

The new file is only half of a rotation. The application must re-read it, by reading the file on each use, watching the directory, or reloading on a signal, and both old and new credentials must work while the change spreads. subPath mounts and environment variables never update, so those consumers need a rollout. Immutable Secrets rotate by name, exactly like versioned ConfigMaps: create ledger-api-v2, change the reference in the pod template, and let the Deployment roll; the kubelet also closes its watches on immutable Secrets, which spares the API server in large clusters.

With an external store, the delays add up. ESO rewrites the Secret on its refreshInterval, then the kubelet’s sync carries it into the volume. The CSI driver re-reads the store only when installed with --enable-secret-rotation, an alpha feature that is off by default. In Secrets Manager, single-user rotation changes the one password in place, so clients holding the old password fail until they fetch the new one; AWS says to absorb that with retries. The alternating-users strategy keeps the previous credentials valid through the rotation.

Mount a Secret and rotate it

  1. kubectl --context kind-kx create secret generic api-token --from-literal=token=tok-4f9a1c
  2. kubectl --context kind-kx create deployment token-demo --image=busybox:1.37 -- sleep 3600
  3. kubectl --context kind-kx patch deployment token-demo --type json -p '[{"op":"add","path":"/spec/template/spec/volumes","value":[{"name":"token","secret":{"secretName":"api-token","defaultMode":256}}]},{"op":"add","path":"/spec/template/spec/containers/0/volumeMounts","value":[{"name":"token","mountPath":"/var/run/secrets/demo","readOnly":true}]}]'
  4. kubectl --context kind-kx rollout status deployment/token-demo
  5. kubectl --context kind-kx exec deploy/token-demo -- cat /var/run/secrets/demo/token
  6. kubectl --context kind-kx patch secret api-token -p '{"stringData":{"token":"tok-9b2e77"}}'
  7. sleep 90; kubectl --context kind-kx exec deploy/token-demo -- cat /var/run/secrets/demo/token
  8. kubectl --context kind-kx get pods -l app=token-demo
  9. kubectl --context kind-kx delete deployment token-demo
  10. kubectl --context kind-kx delete secret api-token

For your own kind cluster kx: copy a command and paste it into your terminal. Run in the simulator runs the same command in this page's simulated cluster instead; nothing on this page touches your machine. The second read prints tok-9b2e77, and the RESTARTS column stays at 0: the kubelet swapped the file under the running container. defaultMode 256 is octal 0400 written as JSON.

Actual state

Check your understanding

5 checks

Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.

  1. Check 1 of 5

    A service account's only Role in payments grants create on pods, with no rule on secrets. Can it read the Secret ledger-api in that namespace?

  2. Check 2 of 5

    An API server starts with an EncryptionConfiguration for secrets that lists a kms (v2) provider followed by identity: {}. What happens to the Secrets that were in etcd before the restart?

  3. Check 3 of 5

    Check runs your command on a private cluster; what it prints shows here.

  4. Check 4 of 5

    A Deployment reads DB_PASSWORD from a Secret with secretKeyRef and also mounts the same Secret at /etc/db. You patch the Secret. What do the running containers see after a few minutes?

  5. Check 5 of 5

    An EKS cluster on Kubernetes 1.33 was created without a KMS key. How are its Secrets stored in etcd?

Lesson not yet reconciled

Desired: 4 objectives, 0 metReconciled: 4 of 4 objectives met

  • Create Secrets of the right type and consume them without leaking them into logs or environment dumps. (not yet met)
  • Explain that base64 is an encoding and that encryption at rest is a separate API server setting. (not yet met)
  • List who can read a Secret, including anyone who can create pods in its namespace. (not yet met)
  • Sync secrets from an external store with External Secrets Operator or the Secrets Store CSI driver. (not yet met)

Pass every check above to reconcile this lesson.

Every check has passed, so the desired state is met. First-try accuracy: 0 of 5. This lesson's review cards are in your queue.

Practice

Put this lesson to work on the simulated cluster. Everything runs in your browser, with nothing to install.

Changed since the notes

This lesson draws on an earlier set of study notes. Where the documentation contradicts a claim in them, qualifies it or has moved past it, the claim is listed here with the corrected statement and the source it was checked against.

Show 33 corrections
  1. Stale, true once, no longerConfigMaps and Secrets

    The notes said'EKS encrypts etcd at rest by default. You can enable envelope encryption with KMS for additional control.'

    CorrectedEKS applies envelope encryption to all Kubernetes API data (not only Secrets) by default on clusters running 1.28 or later, using KMS v2 and an AWS owned key; existing clusters were migrated by the eks:kms-storage-migrator role. Supplying a customer managed KMS key (or an existing Secrets-encryption key) makes that key the KEK for all API data. Every EKS-supported version (1.31 to 1.37) is covered, so 'you can enable envelope encryption' now means 'you can choose your own KMS key'.

    Sourcedocs.aws.amazon.com/eks/latest/userguide/envelope-encryption.html

  2. Stale, true once, no longerConfigMaps and Secrets

    The notes saidExternal Secrets Operator ExternalSecret resources

    CorrectedESO serves its resources at external-secrets.io/v1. v0.17.0 (2025-05-14) stopped serving v1beta1, so v1beta1 manifests fail with 'no matches for kind'. ESO reached v1.0.0 on 2025-11-07 and is on the 2.x line (v2.15.0 on 2026-11-10); v2.0.0 removed the Alibaba and Device42 providers. Lessons must use apiVersion external-secrets.io/v1.

    Sourcegithub.com/external-secrets/external-secrets/releases/tag/v0.17.0;%20https://github.com/external-secrets/external-secrets/releases/tag/v2.0.0

  3. Nuance, true with conditionsConfigMaps and Secrets

    The notes saidASCP via SecretProviderClass and CSI volume

    CorrectedASCP is available as the EKS add-on aws-secrets-store-csi-driver-provider (console, eksctl, API) in addition to Helm/manifests. The add-on itself needs no IAM permissions; pods need IRSA or EKS Pod Identity (both documented; AWS suggests AWSSecretsManagerClientReadOnlyAccess). Syncing mounted secrets into Kubernetes Secrets via SecretProviderClass secretObjects is a Secrets Store CSI Driver feature that requires the driver's secret sync to be enabled; whether the EKS add-on enables it by default was not confirmed.

    Sourcedocs.aws.amazon.com/eks/latest/userguide/workloads-add-ons-available-eks.html#add-ons-aws-secrets-store-csi-driver-provider;%20https://docs.aws.amazon.com/secretsmanager/latest/userguide/ascp-eks-installation.html

  4. Nuance, true with conditionsConfigMaps and Secrets

    The notes saidMounted ConfigMap updates take 'up to a minute by default'

    CorrectedThe documented delay is the kubelet sync period plus cache propagation delay. configMapAndSecretChangeDetectionStrategy defaults to Watch, so propagation is watch latency on top of the kubelet syncFrequency (default 1m): roughly a minute plus propagation, not a hard one-minute cap. Keys mounted with subPath never update, and env vars require a pod restart.

    Sourcekubernetes.io/docs/concepts/configuration/configmap#mounted-configmaps-are-updated-automatically

  5. Stale, true once, no longerConfigMaps and Secrets

    The notes saidenvFrom skips keys that are not valid environment variable names

    CorrectedRelaxedEnvironmentVariableValidation was beta and on by default in 1.32 to 1.33 and is GA (locked on) in 1.34: an env var name may be any printable ASCII character except '='. ConfigMap and Secret keys are limited to [-._a-zA-Z0-9]+, so on 1.32+ every key is a valid name and the skip (InvalidEnvironmentVariableNames event) only happens on 1.31 or with the gate disabled.

    Sourcekubernetes.io/docs/reference/command-line-tools-reference/feature-gates/;%20https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container

  6. Wrong, not trueConfigMaps and Secrets

    The notes saidSecret files have 'stricter default permissions' at mode 0644

    CorrectedBoth ConfigMap and Secret volumes default to defaultMode 0644, so nothing is stricter. The real difference is that the kubelet writes Secret volume data to tmpfs (memory) rather than node disk. Set defaultMode (for example 0400) to restrict access.

    Sourcekubernetes.io/docs/concepts/configuration/secret

  7. Nuance, true with conditionsConfigMaps and Secrets

    The notes saidImmutable Secrets help because 'the API server doesn't need to watch for changes'

    CorrectedThe benefit is right but the mechanism is misattributed: the kubelet closes its watches on ConfigMaps/Secrets marked immutable, which significantly reduces load on kube-apiserver in clusters with many mounts. The API server does not watch for changes itself.

    Sourcekubernetes.io/docs/concepts/configuration/configmap#configmap-immutable

  8. Wrong, not trueConfigMaps and Secrets

    The notes said'If a ConfigMap or Secret doesn't exist and isn't optional, pod creation fails'

    CorrectedThe Pod object is accepted and scheduled; it is the container that cannot start ('the Pod won't start'). Missing env/envFrom references give CreateContainerConfigError; missing volume sources leave the pod in ContainerCreating with FailedMount events. Missing keys behave the same unless marked optional.

    Sourcekubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap#restrictions

  9. Wrong, not trueConfigMaps and Secrets

    The notes said'In etcd, Secrets are stored separately from other resources'

    CorrectedSecrets live in the same etcd keyspace as every other resource, under /registry/secrets/<namespace>/<name>. Only an EncryptionConfiguration (resources: secrets) treats them differently, by encrypting them at rest; on EKS 1.28+ all API data is envelope-encrypted by default.

    Sourcekubernetes.io/docs/tasks/administer-cluster/encrypt-data

  10. Wrong, not trueAWS Secrets Manager vs Parameter Store

    The notes saidYou install ASCP as a DaemonSet; ASCP described as a standalone DaemonSet that creates and updates Kubernetes Secrets (grouped)

    CorrectedASCP is a provider plugin for the Secrets Store CSI Driver; the driver and provider both run as DaemonSets and mount secrets as files into pods that use a SecretProviderClass volume. Install them with Helm or through the 'AWS Secrets Store CSI Driver provider' EKS add-on; ASCP authenticates with IRSA or EKS Pod Identity (usePodIdentity). Syncing to Kubernetes Secrets is the driver's optional secretObjects feature and happens only while a pod mounts the volume.

    Sourcedocs.aws.amazon.com/systems-manager/latest/userguide/ascp-eks-installation.html%20;%20https://secrets-store-csi-driver.sigs.k8s.io/topics/sync-as-kubernetes-secret.html%20;%20https://docs.aws.amazon.com/systems-manager/latest/userguide/ascp-pod-identity-integration.html

  11. Nuance, true with conditionsAWS Secrets Manager vs Parameter Store

    The notes saidCommon schedules range from 30 to 90 days

    Corrected30-90 days is a convention, not a limit. Secrets Manager rotation can run as often as every 4 hours and as rarely as every 999 days.

    Sourcedocs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_schedule.html

  12. Wrong, not trueAWS Secrets Manager vs Parameter Store

    The notes said'EC2 instances can retrieve parameters through instance metadata'

    CorrectedConfirmed. IMDS doesn't serve Parameter Store values. Instances call the SSM GetParameter or GetParameters API using their instance-profile credentials, which IMDS does serve.

    Sourcedocs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html

  13. Nuance, true with conditionsAWS Secrets Manager vs Parameter Store

    The notes saidRotation is 'zero downtime' with both credentials valid, yet single-user rotation causes transient auth failures

    CorrectedConfirmed. Only the alternating-users strategy keeps the previous credentials valid during rotation. With single-user rotation, clients still using the old password fail until they fetch the new one, which AWS says to handle with retries.

    Sourcedocs.aws.amazon.com/secretsmanager/latest/userguide/rotation-strategy.html

  14. Stale, true once, no longerAWS KMS and Encryption Strategies

    The notes saidAutomatic rotation for customer managed keys creates new key material annually; presents 'annually' as the fixed period (grouped)

    CorrectedAutomatic rotation of customer managed keys runs on a configurable period of 90-2,560 days (default 365, set with RotationPeriodInDays), and on-demand rotation is also available. Each of a key's first two rotations adds $1/month to its price; later rotations are free.

    Sourcedocs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html%20;%20https://docs.aws.amazon.com/kms/latest/APIReference/API_EnableKeyRotation.html%20;%20https://aws.amazon.com/kms/pricing

  15. Nuance, true with conditionsAWS KMS and Encryption Strategies

    The notes saidImported key material can't use automatic rotation

    CorrectedAutomatic rotation still isn't available for keys with imported key material, but on-demand rotation works for symmetric encryption keys with imported (EXTERNAL) key material.

    Sourcedocs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html

  16. Stale, true once, no longerAWS KMS and Encryption Strategies

    The notes saidKMS keys can be configured for FIPS 140-2 compliance; CloudHSM FIPS 140-2 Level 3

    CorrectedAWS KMS HSMs are validated under FIPS 140-3 Security Level 3; KMS keys aren't configured per key for this. CloudHSM's hsm2m.medium instance type is FIPS 140-3 validated.

    Sourcedocs.aws.amazon.com/kms/latest/developerguide/data-protection.html%20;%20https://docs.aws.amazon.com/cloudhsm/latest/userguide/hsm-types.html

  17. Stale, true once, no longerAWS KMS and Encryption Strategies

    The notes saidEKS … You specify a KMS key during cluster creation; implies EKS secrets encryption must be chosen at creation (grouped)

    CorrectedOn Kubernetes 1.28 and later, EKS already envelope-encrypts all Kubernetes API data with an AWS-owned key by default. You can add your own KMS key at creation or later on an existing cluster (aws eks associate-encryption-config); once added it can't be disabled.

    Sourcedocs.aws.amazon.com/eks/latest/userguide/envelope-encryption.html%20;%20https://docs.aws.amazon.com/eks/latest/userguide/enable-kms.html

  18. Nuance, true with conditionsAWS KMS and Encryption Strategies

    The notes saidCustomer managed keys cost $1 per month; API calls $0.03 per 10,000

    CorrectedCorrect for symmetric keys and requests, with qualifiers: each of a key's first two rotations adds $1/month, most asymmetric requests cost $0.15 per 10,000, and the free tier covers 20,000 requests per month.

    Sourceaws.amazon.com/kms/pricing

  19. Stale, true once, no longerAWS KMS and Encryption Strategies

    The notes said'AWS managed keys rotate automatically every three years'

    CorrectedConfirmed. Since May 2022, AWS managed keys rotate every year (about 365 days).

    Sourcedocs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html

  20. Nuance, true with conditionsAWS KMS and Encryption Strategies

    The notes said'Traffic within a VPC isn't encrypted by default' ignores Nitro in-transit encryption

    CorrectedConfirmed. Traffic between supported Nitro-based instance types is automatically encrypted in transit in hardware within a VPC or between peered VPCs; other paths aren't, so use TLS or mTLS where it matters.

    Sourcedocs.aws.amazon.com/eks/latest/best-practices/network-security.html

  21. Stale, true once, no longerSecrets Management Deep Dive

    The notes saidaescbc encryption provider example

    CorrectedThe docs mark aescbc as not recommended because of padding-oracle attacks. Use KMS v2 or secretbox.

    Sourcekubernetes.io/docs/tasks/administer-cluster/encrypt-data

  22. Stale, true once, no longerSecrets Management Deep Dive

    The notes saidkms provider without apiVersion (KMS v1)

    CorrectedKMS v1 was deprecated in 1.28 and disabled by default in 1.29. Use apiVersion: v2, stable since 1.29.

    Sourcekubernetes.io/docs/tasks/administer-cluster/kms-provider

  23. Stale, true once, no longerSecrets Management Deep Dive

    The notes saidEKS envelope encryption needs a KMS key at cluster creation

    CorrectedEKS 1.28+ envelope-encrypts all API data by default with KMS v2 and an AWS-owned key. A customer key can be added at any time.

    Sourcedocs.aws.amazon.com/eks/latest/userguide/envelope-encryption.html

  24. Wrong, not trueSecrets Management Deep Dive

    The notes saideksctl create cluster --encrypt-secrets --encrypt-kms-arn

    CorrectedThese flags do not exist. Use ClusterConfig secretsEncryption.keyARN, or eksctl utils enable-secrets-encryption --cluster --key-arn.

    Sourcedocs.aws.amazon.com/eks/latest/eksctl/kms-encryption.html

  25. Stale, true once, no longerSecrets Management Deep Dive

    The notes saidMozilla SOPS

    CorrectedSOPS lives at getsops/sops as a CNCF Sandbox project.

    Sourcegithub.com/getsops/sops

  26. Nuance, true with conditionsSecrets Management Deep Dive

    The notes saidSecretProviderClass serviceAccountName uses IRSA

    CorrectedASCP defaults to IRSA and also supports Pod Identity with usePodIdentity: "true".

    Sourcedocs.aws.amazon.com/secretsmanager/latest/userguide/ascp-examples.html

  27. Nuance, true with conditionsSecrets Management Deep Dive

    The notes saidsealed-secrets Helm repo

    CorrectedThe repo URL is unchanged. The image status after the 2025 Bitnami catalog changes is unconfirmed.

    Sourcegithub.com/bitnami-labs/sealed-secrets

  28. Nuance, true with conditionsSecrets Management Deep Dive

    The notes saidHashiCorp Vault

    CorrectedVault has been under the BSL since 2023. OpenBao is the open-source fork.

    Sourceopenbao.org

  29. Wrong, not trueSecrets Management Deep Dive

    The notes saidRoleBinding ServiceAccount subject without namespace

    CorrectedServiceAccount subjects require a namespace.

    Sourcekubernetes.io/docs/reference/access-authn-authz/rbac

  30. Wrong, not trueSecrets Management Deep Dive

    The notes saidsecretObjects objectName matches the ARN

    CorrectedIt must match the objectAlias or the path-translated objectName. Sync also needs syncSecret.enabled and a pod that mounts the volume.

    Sourcedocs.aws.amazon.com/secretsmanager/latest/userguide/ascp-examples.html

  31. Wrong, not trueSecrets Management Deep Dive

    The notes saidKMS plugin socket configuration on EKS

    CorrectedThe EKS control plane is managed, so you cannot set this.

    Sourcedocs.aws.amazon.com/eks/latest/userguide/envelope-encryption.html

  32. Wrong, not trueSecrets Management Deep Dive

    The notes saidkubeseal works with a custom release name/namespace by default

    CorrectedPass --controller-name and --controller-namespace, or use the default names.

    Sourcegithub.com/bitnami-labs/sealed-secrets

  33. Wrong, not trueSecrets Management Deep Dive

    The notes saidKubernetes Secrets have no audit trail

    CorrectedAudit logging records Secret access.

    Sourcekubernetes.io/docs/tasks/debug/debug-cluster/audit

Every correction across the guide, by note and topic.

Sources

Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .

  1. kubernetes.io/docs/concepts/configuration/secret
  2. kubernetes.io/docs/concepts/security/secrets-good-practices
  3. kubernetes.io/docs/concepts/storage/volumes#group-ownership-gid
  4. kubernetes.io/docs/tasks/administer-cluster/encrypt-data
  5. kubernetes.io/docs/tasks/administer-cluster/kms-provider
  6. kubernetes.io/docs/concepts/security/rbac-good-practices
  7. kubernetes.io/docs/reference/access-authn-authz/rbac
  8. kubernetes.io/docs/tasks/debug/debug-cluster/audit
  9. docs.aws.amazon.com/eks/latest/userguide/envelope-encryption.html
  10. docs.aws.amazon.com/eks/latest/userguide/enable-kms.html
  11. docs.aws.amazon.com/eks/latest/eksctl/kms-encryption.html
  12. docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html
  13. aws.amazon.com/kms/pricing
  14. docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_schedule.html
  15. docs.aws.amazon.com/secretsmanager/latest/userguide/rotation-strategy.html
  16. docs.aws.amazon.com/systems-manager/latest/userguide/what-is-a-parameter.html
  17. docs.aws.amazon.com/secretsmanager/latest/userguide/ascp-eks-installation.html
  18. docs.aws.amazon.com/secretsmanager/latest/userguide/ascp-pod-identity-integration.html
  19. docs.aws.amazon.com/secretsmanager/latest/userguide/ascp-examples.html
  20. external-secrets.io/latest/provider/aws-secrets-manager
  21. external-secrets.io/latest/provider/aws-access
  22. secrets-store-csi-driver.sigs.k8s.io/topics/sync-as-kubernetes-secret.html
  23. secrets-store-csi-driver.sigs.k8s.io/topics/secret-auto-rotation.html
  24. github.com/getsops/sops
  25. github.com/bitnami-labs/sealed-secrets

Secrets and external secret stores

↓ ↑ step, 1 to 7 scene, Esc leave

kind cluster kxLast command: Nothing run yet