INFINITE UPSIDE

Technology and operations

What Happens to Old Data When an Encryption Key Rotates?

A new key can protect future work. Whether yesterday’s files remain readable depends on the system that holds their history.

A company rotates an encryption key because its security policy says to do so. New files save successfully. Months later, someone needs an older backup and discovers that the only system able to decrypt it no longer has access to the old key material. The rotation appeared successful on the day it happened. The recovery problem was waiting in the archive.

Encryption key rotation changes the key material used for new cryptographic operations according to a particular system’s rules. It does not automatically mean that existing encrypted data was re-encrypted, that an exposed key can no longer decrypt old data, or that old backups remain recoverable. Those outcomes depend on the product, key type, permissions and how the data was encrypted. The first question is not “Did the rotate button finish?” It is “What will decrypt each generation of data afterward?”

AWS Key Management Service documentation gives one concrete model: supported rotation changes the current key material while the logical KMS key remains the same, and AWS KMS retains earlier generated material for decryption as documented. That is a description of AWS KMS, not a promise about every key manager or application. Automatic and on-demand rotation eligibility also depends on key type and origin.

A key name and its secret material are different things

Think of a key-management service’s resource identifier as a durable label for a managed resource, not the secret bits themselves. In the documented AWS KMS rotation model, applications can continue referring to the same KMS key while newer material is used for appropriate new encryption operations. When decrypting existing ciphertext, the service identifies the material needed under its own rules. The continuity is a product feature with prerequisites: the key must remain usable, the caller must have the right permissions, and the data must still be available.

Another system might use a new key resource and require applications to switch to its identifier. A third might require manual changes to configuration, key distribution or data. “Rotation” on a policy checklist does not tell you which design is present. Inventory the actual system, key type, ownership, location, applications and documented procedure before treating one successful test as proof for everything encrypted by the organization.

Do not confuse a key-management key with a password, API token or a certificate private key simply because all are called “keys.” They have different roles and lifecycles. Rotating an API credential can stop future authentication with that credential; it does not automatically change the encryption of stored documents. Renewing a certificate has its own client-trust and private-key considerations. A single calendar reminder called “rotate all keys” hides the very differences the team needs to manage.

What changes—and what does not—on rotation day

Imagine an application uses a managed key to protect data today and the system rotates its underlying material tomorrow. In the AWS KMS model described above, supported new encryption operations use current material, while previously encrypted data remains associated with material that can be used for decryption through the same logical KMS key. AWS states that rotation does not re-encrypt existing data, rotate data keys, or mitigate the effect of a compromised data key. A successful new write alone therefore proves little about old data or a past exposure.

That distinction matters when a security incident prompted the action. If the concern is that a particular data key or plaintext was exposed, simply rotating a wrapping key may not revoke a copy already held elsewhere. An incident response needs to determine what was exposed, which data and systems were affected, and what revocation, re-encryption or other actions are appropriate. The right response is specific to the cryptographic design and evidence; a routine rotation record is not a substitute for that investigation.

Rotation also does not by itself change access policy. A user who was permitted to invoke decryption through the managed service may still have that permission afterward. Conversely, a recovery account may fail because its role lacks permission even though the old material is retained. Review authorization, key state, service dependencies and audit logs separately from the rotation schedule. Do not publish key identifiers, secrets or sensitive encryption context in a public incident note just to prove the work occurred.

Envelope encryption adds another layer

Many systems use envelope encryption: a data key encrypts the data, and a key-encryption key protects the data key. The application or service stores the encrypted data key alongside or near the encrypted data, depending on the design. To read the data, the system must recover the appropriate data key and use it correctly. The AWS KMS cryptography overview describes data keys and their relationship to KMS keys.

That design is efficient, but it gives a recovery exercise several moving pieces. The ciphertext alone may not be enough. A restore might also need the encrypted data key, encryption context or other required metadata, the applicable key-management service and an identity authorized to request decryption. If a backup process copies the file but omits the metadata the application needs, the backup can be complete as a file and useless as a restore.

Suppose a system stores a monthly export plus a separately stored encrypted data key. A new export works after rotation, but an old export has lost its matching encrypted data key. The managed key can be healthy and the operator can have the correct permission; the old export may still be unreadable because the necessary pairing is missing. This is a hypothetical design, not a claim that a specific AWS service stores every application’s metadata separately. Map the actual data flow before building the restore test.

Rotation, replacement and re-encryption are three decisions

In AWS KMS, manual rotation can mean creating a new KMS key and changing applications or aliases to use it; automatic or on-demand rotation of eligible keys changes material associated with an existing logical key. A new key resource can change identifiers, grants, policies and dependencies. Old ciphertext may still require the old key. An alias or configuration change that directs new writes to the replacement does not transform all historical files in place.

Re-encryption is another operation: data or protected data keys are processed so the intended new key arrangement applies. Its exact method and security benefit depend on the system. It can take time, consume resources and require careful control of concurrent writes. A data migration must also establish what happened to copies, replicas, versions and backups. The project is not complete merely because the newest object can be read with the replacement key.

Before any irreversible key deletion, identify retention and legal obligations, restore dependencies and the provider’s documented deletion process. Some services offer a pending-deletion period; others have different controls. Do not assume that changing an alias, disabling a key or scheduling deletion is reversible in every environment. A key that is no longer used for new writes can still be the only route to a historic backup. Treat that as a dependency to prove, not an inconvenience to infer away.

Test both the new write and the old restore

A useful test begins with a list of data generations: current records, archived files, snapshots, offsite copies and any retained version that a business might reasonably need. For each, record what key or service protects it, where its required metadata lives, which identity can request decryption and how that access will work during an outage. Avoid putting secret key material into the inventory itself. Reference protected records and responsible owners instead.

Create a small, non-sensitive test item before rotation and another afterward in an appropriate environment. Read each through the actual application path. Then restore a representative older backup to an isolated location and verify that it can be decrypted and used, not just downloaded. A document should open; a database restore should start and pass the checks appropriate to that system. Our backup restore guide separates a successful copy from a usable recovery.

Repeat the exercise with the identities and network conditions available during a real recovery. A production administrator’s normal session may hide a missing emergency-role permission. At the same time, an emergency account should not be given broader permanent access merely to make a test pass. Document who is authorized, what was tested, the date, the actual result and the unresolved dependencies. If one old version cannot be restored, keep that exception visible until the cause is fixed and rechecked.

When a scheduled rotation is not the whole plan

A recurring rotation can be a useful control when it fits the threat model and the service supports it. Its interval is a policy decision informed by applicable requirements, system capabilities and risk—not a universal number that proves security. AWS distinguishes customer-managed keys from AWS-managed and AWS-owned keys, and the available rotation options differ. Confirm the actual key class instead of assuming every item in a console has identical settings.

Track failures and ownership. Who receives an alert if a scheduled action fails? Who verifies that dependent applications can still operate? What is the rollback or recovery procedure for a configuration change? If multiple regions or accounts are involved, document their relationships and permissions rather than assuming one successful test covers all of them. Keep the incident and retention teams in the conversation when a key protects records they are responsible for preserving.

The most useful outcome of rotation is an understood lifecycle: new operations use the intended material, authorized recovery remains possible for retained data, unnecessary access is reviewed, and the team knows which evidence would reveal a failure. A green rotation status is a starting point for that conversation. It is not the whole answer.

Explore Infinite Upside

For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.

Find your edition · Chapter companion

ABOUT THE CONTRIBUTOR

Luna Lim

DIRECTOR OF FINANCIAL RESEARCH & EDITORIAL STRATEGY

SHETH CAPITAL, INC.

Luna Lim writes about business, investing, and the judgment behind financial decisions. She joined PCH Exotics Inc. as Director of Operations in 2022, working across La Jolla and Miami. Today, she reports directly to Vijay Sheth at Sheth Capital, Inc., bringing an operator’s perspective to the ideas she covers.

Based in Pacific Beach, California, Luna is curious about the people behind the numbers: what they’re building, how they weigh uncertainty, and what makes a risk worth taking. Her articles for Infinite Upside follow those questions through the details, with clear explanations and a feel for how decisions play out in everyday business.

More from Luna Lim

The Infinite Upside store