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.
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.
| Type | Holds | Required keys |
|---|---|---|
Opaque | Anything; the default | None |
kubernetes.io/tls | A certificate and its private key | tls.crt, tls.key |
kubernetes.io/dockerconfigjson | Registry credentials for imagePullSecrets | .dockerconfigjson, which must parse as JSON |
kubernetes.io/basic-auth | A username and password | username or password |
kubernetes.io/ssh-auth | An SSH private key | ssh-privatekey |
kubernetes.io/service-account-token | A long-lived service account token | Filled 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.
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
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: Opaquekubectl 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:
getonsecretsreturns one Secret’s values.listandwatchreturn the values of every Secret in scope. RBAC has no verb that lists names without values;kubectl get secrets -A -o yamlis a full dump.createon 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.createonpods/execreaches 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.
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.
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.
kubectl --context kind-kx create secret generic api-token --from-literal=token=tok-4f9a1ckubectl --context kind-kx create deployment token-demo --image=busybox:1.37 -- sleep 3600kubectl --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}]}]'kubectl --context kind-kx rollout status deployment/token-demokubectl --context kind-kx exec deploy/token-demo -- cat /var/run/secrets/demo/tokenkubectl --context kind-kx patch secret api-token -p '{"stringData":{"token":"tok-9b2e77"}}'sleep 90; kubectl --context kind-kx exec deploy/token-demo -- cat /var/run/secrets/demo/tokenkubectl --context kind-kx get pods -l app=token-demokubectl --context kind-kx delete deployment token-demokubectl --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
Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.
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
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
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.
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.
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
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.
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.
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
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
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
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.
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
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
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
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.
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
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.
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.
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.
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
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
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
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
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
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
The notes saidMozilla SOPS
CorrectedSOPS lives at getsops/sops as a CNCF Sandbox project.
Sourcegithub.com/getsops/sops
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
The notes saidsealed-secrets Helm repo
CorrectedThe repo URL is unchanged. The image status after the 2025 Bitnami catalog changes is unconfirmed.
The notes saidHashiCorp Vault
CorrectedVault has been under the BSL since 2023. OpenBao is the open-source fork.
Sourceopenbao.org
The notes saidRoleBinding ServiceAccount subject without namespace
CorrectedServiceAccount subjects require a namespace.
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
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
The notes saidkubeseal works with a custom release name/namespace by default
CorrectedPass --controller-name and --controller-namespace, or use the default names.
The notes saidKubernetes Secrets have no audit trail
CorrectedAudit logging records Secret access.
Every correction across the guide, by note and topic.
Sources
Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .
- kubernetes.io/docs/concepts/configuration/secret
- kubernetes.io/docs/concepts/security/secrets-good-practices
- kubernetes.io/docs/concepts/storage/volumes#group-ownership-gid
- kubernetes.io/docs/tasks/administer-cluster/encrypt-data
- kubernetes.io/docs/tasks/administer-cluster/kms-provider
- kubernetes.io/docs/concepts/security/rbac-good-practices
- kubernetes.io/docs/reference/access-authn-authz/rbac
- kubernetes.io/docs/tasks/debug/debug-cluster/audit
- docs.aws.amazon.com/eks/latest/userguide/envelope-encryption.html
- docs.aws.amazon.com/eks/latest/userguide/enable-kms.html
- docs.aws.amazon.com/eks/latest/eksctl/kms-encryption.html
- docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html
- aws.amazon.com/kms/pricing
- docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_schedule.html
- docs.aws.amazon.com/secretsmanager/latest/userguide/rotation-strategy.html
- docs.aws.amazon.com/systems-manager/latest/userguide/what-is-a-parameter.html
- docs.aws.amazon.com/secretsmanager/latest/userguide/ascp-eks-installation.html
- docs.aws.amazon.com/secretsmanager/latest/userguide/ascp-pod-identity-integration.html
- docs.aws.amazon.com/secretsmanager/latest/userguide/ascp-examples.html
- external-secrets.io/latest/provider/aws-secrets-manager
- external-secrets.io/latest/provider/aws-access
- secrets-store-csi-driver.sigs.k8s.io/topics/sync-as-kubernetes-secret.html
- secrets-store-csi-driver.sigs.k8s.io/topics/secret-auto-rotation.html
- github.com/getsops/sops
- github.com/bitnami-labs/sealed-secrets
Secrets and external secret stores
↓ ↑ step, 1 to 7 scene, Esc leave