Can You Rotate an Application Encryption Key Without Losing Data? A Readiness Checklist
Rotating an application encryption key can mean changing a key version, re-wrapping data keys, or re-encrypting stored data. Use this checklist to verify what your application does, protect backup access, and test recovery before changing production keys.

Start by identifying what the key actually encrypts
Before planning self-hosted application encryption key rotation, establish which key you mean and which data it protects. An application-level key may encrypt records or files within the application. A disk or volume encryption key protects storage at a lower layer, while passwords, API tokens, and other credentials authenticate access rather than necessarily encrypting stored application data.
These layers can coexist, and rotating one does not automatically rotate the others. Do not assume that changing a server’s disk-encryption setting updates an application’s encrypted records, or that changing an application secret affects the encryption protecting its backups.
Inventory the application’s documented encryption settings, key locations, and data stores. Record what is confirmed and what remains unknown.
- Which specific data is encrypted by the key: database values, files, backups, or another resource?
- Is the key used directly to encrypt data, or does it encrypt or wrap other data-encryption keys?
- Where is the key or key reference stored, and which application components or identities need access to it?
- Does the application also depend on separate credentials, disk encryption, or backup-encryption keys?
Rotation can describe different operations
The word rotation is not a guarantee that every stored byte is encrypted again. Depending on the application and its key-management design, rotation might create a new key version, change the key used for future encryption, re-wrap data-encryption keys, or trigger a process that re-encrypts existing data.
These are distinct behaviors. Some systems rotate key material without changing data keys or re-encrypting protected data. In a wrapping-key design, the system may re-wrap data-encryption keys while leaving the underlying data ciphertext unchanged. Verify the application’s own documentation rather than inferring behavior from the word “rotate.”
What a rotation operation may change
Use the application’s documentation to identify which layer changes. These patterns are alternatives, not a universal sequence.
| Rotation pattern | What may change | What may stay unchanged | Question to verify |
|---|---|---|---|
| New key material or version | The active key version for future operations | Existing data keys and already encrypted data | Does this action re-encrypt data, or only change the active version? |
| Re-wrapping data keys | The key that protects the data-encryption keys | The ciphertext of the underlying records or files | Are old and new key versions both needed until re-wrapping finishes? |
| Re-encrypting stored data | The encryption of existing records or files | Data outside the documented migration scope | How does the application report progress, completion, and failures? |

Find the documented procedure and confirm its scope
Look for instructions for the exact application and deployment model you operate. Confirm whether the procedure applies to your application version and configuration, and whether it is intended for a self-hosted installation rather than a managed service with different behavior.
Read the full procedure, including prerequisites, warnings, completion checks, and restore guidance. Identify whether rotation is automatic or operator-triggered, whether existing data is processed, and whether the application can continue serving reads and writes during the operation. Do not assume an automatic process has finished just because a new key version exists.
If the documentation does not explain how existing data is handled, treat that as an unresolved risk—not evidence that data is safely re-encrypted. Ask the application maintainer or a qualified specialist before proceeding with production data.
- What action starts rotation, and what does that action change?
- Does the application re-encrypt existing records or files, re-wrap data keys, or only use the new key for future writes?
- What indicates that the operation is complete, and how are partial failures or interrupted jobs handled?
- Are there maintenance, availability, resource, or ordering requirements documented for the procedure?
- Does the documented rollback or recovery procedure require the old key to remain available?

Map key dependencies across live data and backups
A successful rotation of the live application does not prove that every copy of its data can still be read. A database, uploaded-file store, backup archive, transaction log, export, or snapshot may have been encrypted under a different key or key version. Map each store to the key needed to read it and record who or what can provide that key.
Some systems leave older backups encrypted with the key version used when each backup was created. In that case, a restore can require the historical version and the correct access permissions even after newer backups use a new version. A configured backup schedule is not, by itself, evidence that a backup is decryptable.
Check whether restore operations depend on an identity, service account, or application component retaining permission to use the key. Confirm that this access will still exist in the recovery environment, not only on the production host.
- List each data store and backup type, its encryption layer, and the key or key version required to read it.
- Record whether each backup contains application data, encryption metadata, or both.
- Check how long historical backups and logs are retained, and whether their required key versions will remain available for that period.
- Verify restore-time permissions for the application, backup system, and any key-management identity.
- Include copies outside the primary server, such as exports or files stored in an external service, if they are within the documented encryption scope.
Keep old keys available for restores and recovery
Do not disable or destroy an old key merely because the new key is active. Depending on the application, the old key may still be required to finish re-encryption, read historical data, restore an older backup, or process logs. Some documented services explicitly require prior key versions to remain enabled during re-encryption or for database and backup restores.
Define a retention and access plan for old keys that matches the lifetime of the data and backups they protect. Confirm how the application handles key versions, whether they can be enabled when needed, and what access checks apply during a restore.
Treat key destruction as a potentially irreversible action. If a data copy depends on a key version that is destroyed or inaccessible, that copy may become unrecoverable. Make key retirement a separate, explicitly reviewed decision after recovery tests and retention requirements have been satisfied.
- Keep old key material or versions protected and available for as long as documented data and backups may require them.
- Document who can retrieve or enable an old key and how that access is authorized.
- Before retiring a key, verify that all data and retained backups that depend on it have been migrated, expired under policy, or otherwise accounted for.
Test rotation and recovery away from production
Use an isolated test environment with a representative application configuration and a restorable copy of data. Keep it separate from production key access and make sure the test does not accidentally alter production records, backups, or key states. Follow the application’s documented procedure; do not invent a rotation command or substitute a procedure from another product.
Test both the change and the recovery path. A rotation test that confirms new writes work but never reads older records or restores an older backup leaves a central question unanswered: can the application still decrypt data created under the previous key?
Capture the result of each test, including the test data or backup used, key versions involved, access permissions, errors, and evidence that restored data is readable and usable. If you cannot safely test the procedure or cannot explain a failure, pause before changing production.
- Restore a representative backup into the isolated environment using the documented recovery process.
- Verify that the application can read representative pre-rotation records and files.
- Perform the documented rotation and check how the application reports progress and completion.
- Verify that new writes work and that previously encrypted data remains readable.
- Record the result, unresolved limitations, and the conditions under which the test would need to be repeated.
Control access and prepare for a lost or compromised key
Assign a named owner for the application’s encryption-key procedure and a separate reviewer where your team can support that separation. Limit key access to the people and application identities that need it, and document how access is granted, reviewed, and recovered. Hosting the application does not remove your responsibility for data, key access, and governance choices.
Prepare two different response paths. If a key is lost or inaccessible, prioritize preserving key material and restoring authorized access; generating a new key may not make existing ciphertext readable. If a key is suspected to be compromised, follow the application’s incident guidance to assess the scope and plan a replacement or re-encryption. Changing the active key alone should not be assumed to protect copies of data that may already have been exposed.
Keep an auditable record of the decision and outcome without putting secret key material in operational notes. The record should help another authorized operator understand which data and backups depend on each key and how recovery was demonstrated.
- Name the key owner, approver, and authorized recovery contacts.
- Document where the key is managed, how access is recovered, and which identities need it during normal operation and restore.
- Record rotation dates, relevant key versions or identifiers, documented scope, completion evidence, and test results—never the secret itself.
- Define whom to contact and what actions to pause if the key is lost, access fails, or compromise is suspected.
Use a go/no-go checklist before changing production
Proceed only when you can explain what the key protects, what the application’s procedure changes, and how old data will remain readable. Base the answers on the documentation for your application and deployment, not on general expectations about encryption systems.
If a critical answer is unknown—especially whether existing data is re-encrypted, which keys a historical backup needs, or how to restore after rotation—pause and get application-specific guidance.
- The key’s scope and location are documented, including relevant databases, files, and backups.
- The application’s documented procedure and its behavior for existing data are understood.
- The old-key requirements for historical backups, logs, and restores are known.
- An isolated rotation and recovery test has succeeded, or its limitations are clearly documented and accepted by the responsible owner.
- Key access, ownership, recovery contacts, and response steps are defined.
- The team has a documented stop condition and will not disable or destroy old key versions until their dependencies are resolved.
Frequently asked questions
Does rotating an application encryption key automatically re-encrypt existing data?
Not necessarily. Rotation may change the active key version, re-wrap data-encryption keys, or re-encrypt existing data; these are different operations. Check the documentation for your exact application and deployment, and look for evidence that the existing-data process completed.
Can I delete the old key as soon as the new key is active?
Do not assume so. The old key may still be required to finish a migration, read existing data, or restore historical backups. Confirm the application’s documented dependencies before disabling or destroying an old key.
Is application-level key rotation the same as disk encryption rotation?
No. Application-level encryption can protect records or files inside an application, while disk or volume encryption protects storage at a lower layer. Changing one does not necessarily change the other, so identify the key’s scope before planning rotation.
What if the application documentation does not explain what rotation does?
Treat the behavior as unknown. Do not infer that existing data is re-encrypted or that old keys are no longer needed. Ask the application maintainer or a qualified specialist, and avoid a production change until the procedure and recovery dependencies are clear.
Sources and further reading 7
- Rotate AWS KMS keys Amazon Web Services
- Re-encrypting data Google Cloud
- Use customer-managed encryption keys to protect your backups Google Cloud Backup and DR
- Rotate the Transparent data encryption (TDE) protector Microsoft Learn
- Manage your customer-managed encryption key Microsoft Learn
- Encrypt backup data by using customer-managed keys Microsoft Learn
- Configure cryptographic key auto-rotation in Azure Key Vault Microsoft Learn