Modifying Key Vault

Modifying Key Vault

This documentation is for Kyvos 2026.8.x. To view documentation for other Kyvos versions, click here.

This documentation is for Kyvos 2026.8.x. To view documentation for other Kyvos versions, click here.

✅ Enterprise: Azure

Overview

The section explains how to modify or recreate an Azure Key Vault used by Kyvos, since Azure doesn't allow changing the soft delete / purge protection retention period after vault creation. Kyvos's workaround: create a new Key Vault with the desired retention settings, copy over all secrets, then point Kyvos to the new vault.

Note

  • Retention policy (soft delete + purge protection) can only be set at vault creation, per Microsoft documentation — cannot be edited later. The same retention interval applies to both soft delete and purge protection policies.

  • Kyvos's recommended fix: recreate the vault and migrate secrets.

Here’s a summary of the steps required to create a new Key Vault and copying all existing secrets from the current Key Vault to the newly created one.

Creating a new Key Vault

To create the Key Vault, perform the following steps.

  1.  Log in to the Azure portal with a user having sufficient permissions and information.  

  2. On the Home page, in the search box, type Key Vaults.

  3. On the Key Vaults page, click Create.

    image-20240529-084649.png

    The Create a Key Vault page is displayed.

    image-20240529-090354.png

  4. Click the Basics tab.

  5. Select your Subscription account.

  6. Select the name of your Resource Group. You can also create a new resource group using the Create new option.

Note

To add a new resource group, you must add this Managed Application Contributor Role at the subscription level.

  1. Enter the Key vault name.

  2. Select the same Region as the Resource group.

  3. Select the Azure Key Vault Pricing Tier from Standard or Premium.

  4. Under the Recovery options, enter the Days to retain deleted vaults. For example, you can keep the value as 7

  5. From the Purge Protection, select the Enable option.

    image-20240529-090152.png

     

  6. Click Next. The Access Configuration tab is displayed.

    image-20240529-090053.png

  7. Select the Vault Access Policy option for the permission model.

  8. Select the following checkboxes for the Resource access:

    1. Azure Resource Manager for template deployment

    2. Azure Virtual Machines for deployment

    3. Azure Disk Encryption for volume encryption

  9.  Click Create. The Create an access policy dialog is displayed.

  10. In the Secret permissions section, the assigned managed identity must have Secret Permissions (GET, LIST, and SET), then click Next.

    image-20240529-085954.png

     

  11. On the Principal tab, select the managed identity from the list configured on your cluster, then click Next.

    image-20240529-085931.png

  12. Click Review + Create. The managed identity is displayed with permissions in the Access policies section.

    image-20240529-085833.png

     

  13.  Click Next, and the Networking tab will be displayed.

  14.  Modify the networking settings as needed.

  15. Click Next, and the Tag tab is displayed. This is an optional configuration. You can specify the tags using the parameters displayed in the Tags section.

  16. Download the copy_secrets.sh script (available in Azure Installation Files) to copy the secret from the existing vault to the new vault.

  17. Provide the source and destination vault names in the copy_secrets.sh script (available in Azure Installation Files) before executing.

  18. On the Home page, click Cloud Shell.

  19. Upload the script by clicking the Upload button.

Note

If the firewall is enabled on your existing Key Vault (from where we need to copy secrets), you must ensure that the IP address from which the script is accessing the Key Vault is allowed through the firewall.

  1. Run the script.

  2. Copy the new vault URL from the Azure portal once all the secrets are copied to the new Key Vault.

Copyright Kyvos, Inc. 2026. All rights reserved.