> For the complete documentation index, see [llms.txt](https://oten.gitbook.io/kms-support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oten.gitbook.io/kms-support/user-guide/publish-your-docs-1/key-lifecycle-policies.md).

# Key lifecycle policies

## Objective&#x20;

**Key lifecycle policies objective:**

* **Control how often** active encryption keys are rotated to reduce exposure and meet compliance requirements.
* **Control how long** inactive keys and historical versions remain recoverable
* **Permanently destroy** cryptographic keys after a defined grace period.

## Functions&#x20;

#### **1.** Rotation settings

* Set the key rotation interval.
* Apply it to all existing keys.

<figure><img src="https://3096769065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmutUsLoRLJp8ctxALgCG%2Fuploads%2FBfJbABuXXBqpZ4O7wpDP%2Fimage.png?alt=media&amp;token=9cd441e8-35d5-479d-baf2-81033b2d6e0a" alt=""><figcaption></figcaption></figure>

#### **2.** Retention settings

* Defines the recovery window for disabled keys and historical versions before permanent deletion.
* Keys remain recoverable during the retention period and become eligible for scheduled destruction once expired.

<figure><img src="https://3096769065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmutUsLoRLJp8ctxALgCG%2Fuploads%2F32od2ok2aELMfLxh4R0K%2Fimage.png?alt=media&amp;token=8c45538c-e411-44e6-9793-9b8dff62a045" alt=""><figcaption></figcaption></figure>

#### **3.** Scheduled destruction

* Enables permanent deletion of cryptographic keys after a mandatory day grace period.
* Ensures no immediate deletion, allowing keys to be recovered until the scheduled destruction date.

<figure><img src="https://3096769065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmutUsLoRLJp8ctxALgCG%2Fuploads%2F1hVJgU9BLdBOw4ImrdTs%2Fimage.png?alt=media&amp;token=137ccd3b-9e60-4d4d-aee4-4e00bf3d3ea2" alt=""><figcaption></figcaption></figure>

#### **4.** Dormant key detection

* **Dormant key detection** automatically monitors key usage and classifies keys as **idle** or **dormant** when they have not been used within a defined period — helping you identify unused keys and take action before they become a security risk.
* To configure, set the **Idle threshold** (number of inactive days before a key is marked idle) and the **Dormant threshold** (number of inactive days before a key is marked dormant). Dormant threshold must be greater than Idle threshold. Changes take effect on the next backend detection run.

<figure><img src="https://3096769065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmutUsLoRLJp8ctxALgCG%2Fuploads%2FZ9W68djDP5qt5immMM3R%2Fimage.png?alt=media&amp;token=a194d0d5-08b7-486c-b5c5-ef5c97b61249" alt=""><figcaption></figcaption></figure>
