---
title: "Secret versioning"
sidebar_label: "Secret versioning"
sidebar_position: 2
description: "What secret versioning is, how to add, set as current, view, copy, or delete a secret version"
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'

# Secret versioning

Versioning allows you to store multiple versions of a secret for secret rotation without interrupting your service operations.

If a secret has versions, one of them is the current one – it is displayed in the [list of versions](#view-versions) with the `Active` tag. You can [make a version current from the list of versions](#make-version-current) or when [adding a new version](#add-version).

You cannot delete a secret version; you can only [delete the secret](/secrets-manager/secrets/delete-secret.mdx) with all of its versions.

## Add a secret version \{#add-version}

1. In the [Control panel](https://my.selectel.ru/secrets/), on the top menu, click **Products** and select **Secrets Manager**.
2. In the **Secrets** section, open the secret page.
3. Click **Add version**.
4. Optional: to immediately make the new secret version current, select the **Make version current** checkbox.
5. Add the secret value.
6. Click **Save**.

## View the list of versions \{#view-versions}

1. In the [Control panel](https://my.selectel.ru/secrets/), on the top menu, click **Products** and select **Secrets Manager**.
2. In the **Secrets** section, open the secret page.
3. In the **Secret versions** block, view the versions.

## Make a secret version current \{#make-version-current}

1. In the [Control panel](https://my.selectel.ru/secrets/), on the top menu, click **Products** and select **Secrets Manager**.
2. In the **Secrets** section, open the secret page.
3. In the <MoreVerticalIcon /> version menu, select **Make current version**.

## View a version value \{#view-secret-version}

1. In the [Control panel](https://my.selectel.ru/secrets/), on the top menu, click **Products** and select **Secrets Manager**.
2. In the **Secrets** section, open the secret page.
3. In the **Secret versions** block, in the <MoreVerticalIcon /> version menu, select **View value**.

## Copy a version value \{#copy-secret-version}

1. In the [Control panel](https://my.selectel.ru/secrets/), on the top menu, click **Products** and select **Secrets Manager**.
2. In the **Secrets** section, open the secret page.
3. In the **Secret versions** block, in the <MoreVerticalIcon /> version menu, select **Copy value**.

<Formbricks />
