# Migrate existing Kubernetes data when enabling at-rest encryption

> Changing encryption configuration does not by itself prove that older stored objects were rewritten.

- Canonical URL: https://update.dsesecurity.com/updates/migrate-existing-kubernetes-data-when-enabling-at-rest-encryption/
- Publisher: Detection Systems & Engineering (DSE Security)
- Author: DSE Security Editorial Team
- Published: 2026-10-20T18:15:00+00:00
- Modified: 2026-10-20T18:34:32+00:00
- Last reviewed by DSE: 2026-10-20
- Resource type: Guide
- DSE priority: Information
- Topics: IT, Networks & Infrastructure
- Reading time: 2 minutes

## What you need to know

Changing encryption configuration does not by itself prove that older stored objects were rewritten.

## Potentially affected

Review API-server datastore encryption configuration and the separate migration of previously stored resources.

## DSE recommendation

DSE recommends treating provider configuration, key distribution, object migration, and removal of obsolete decryption capability as distinct change stages.

## Article

Changing encryption configuration does not by itself prove that older stored objects were rewritten.

## Source facts

Kubernetes uses the first encryption provider in its configured list for new writes, while matching providers are tried in order to read stored data. An identity provider first in the list provides no confidentiality protection. Checking that encryption is enabled does not establish successful migration of previously stored data. The guide’s migration procedure replaces each stored Secret with the same data to apply server-side encryption.

Source: [Kubernetes documentation — Encrypting Confidential Data at Rest](https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/).

## Applicability

Review API-server datastore encryption configuration and the separate migration of previously stored resources.

## DSE recommendation

DSE recommends treating provider configuration, key distribution, object migration, and removal of obsolete decryption capability as distinct change stages. Keep a recovery plan and protect every required key before rewriting stored resources. Verify that all API servers use the intended configuration so one server does not write data differently from another. Record which resource types are covered and which historical objects have been verified. Do not discard an older key solely because new writes use a newer provider.

## Verification

In an approved test cluster, confirm new data is stored under the intended provider and inspect a preexisting disposable object before and after migration. Verify reads through every API-server instance. Keep secret values and raw datastore output out of ordinary tickets and screenshots. Record the provider prefix and object identity through a protected review path instead of copying plaintext content. Have the key custodian approve the migration evidence before any older decryption material is retired.

## Official reference

[Kubernetes documentation — Encrypting Confidential Data at Rest](https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/). Reviewed October 20, 2026.

## Primary reference

- Name: Kubernetes documentation — Encrypting Confidential Data at Rest
- Authority: kubernetes.io
- URL: https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/
- Source publication date: Not stated by the source

## Citation and use

Preferred citation: “Migrate existing Kubernetes data when enabling at-rest encryption,” DSE Security, https://update.dsesecurity.com/updates/migrate-existing-kubernetes-data-when-enabling-at-rest-encryption/
Publishing principles: https://update.dsesecurity.com/updates/dse-updates-editorial-methodology/
Usage and citation policy: https://update.dsesecurity.com/usage/
Copyright © 2026 Detection Systems & Engineering. All rights reserved.
