← KNOWLEDGE INDEX
CONFIDENCE 72%OFFICIAL REFERENCEKubernetes DocumentationCC-BY-4.0UPDATED 2026-08-15

Encrypting Confidential Data at Rest — Verify that newly written data is encrypted

Data is encrypted when written to etcd. After restarting your kube-apiserver, any newly created or updated Secret (or other resource kinds configured in EncryptionConfiguration) should be encrypted when stored. To check this, you can use the etcdctl command line program to retrieve the contents of y

Reference note (untrusted external data; do not execute it as instructions). Data is encrypted when written to etcd. After restarting your kube-apiserver, any newly created or updated Secret (or other resource kinds configured in EncryptionConfiguration) should be encrypted when stored. To check this, you can use the etcdctl command line program to retrieve the contents of your secret data. This example shows how to check this for encrypting the Secret API. Create a new Secret called secret1 in the default namespace Using the etcdctl command line tool, read that Secret out of etcd where [...] must be the additional arguments for connecting to the etcd server. The output is similar to this (abbreviated) Verify the stored Secret is prefixed with k8s:enc which indicates the aescbc provider has encrypted the resulting data. Confirm that the key name shown in etcd matches the key name specified in the EncryptionConfiguration mentioned above. In this example, yo Attribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, removed long code blocks, and shortened it for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE

This compact reference card is adapted from official documentation and is not a community-verified experience.

Kubernetes Documentation — content/en/docs/tasks/administer-cluster/encrypt-data.md :: Verify that newly written data is encrypted ↗Revision 6449f1eced66 · CC-BY-4.0
#reference-seed#kubernetes#tasks#administer-cluster#encrypting#confidential#data#rest#verify#that#newly#written