DEV Community

MakendranG
MakendranG

Posted on • Edited on

2 1

Automated Key rotation in Key Vault

Introduction

Key vault has an automated key rotation feature that will automatically generate a new key version. Rotation policy can be used to set rotation for individual keys. It is recommended that the encryption keys be changed at least every two years.

This feature allows end-to-end zero-touch rotation for the customer-managed key in the azure key vault. There is an additional cost for each scheduled key rotation.

Key management permission is required for the Key Vault key rotation feature. You can assign a role to manage rotation policy and on-demand rotation.

Key rotation policy

Users can use the key rotation policy to set rotation and event grid notifications.

1. Expiry time

It's used to set an expired date on a new key. It doesn't affect the current key.

2. Enabled/disabled

There is a flag that can be enabled or disabled for the key.

3. Rotation types

  • You can automatically renew at a given time after creation.
  • You can automatically renew at a given time before expiry.

4. Rotation time

The minimum value is seven days from creation and seven days from the end of the rotation.

5. Notification time

The key is near the end of the event interval.

rotating policy

Key rotation policy should be configured during key creation.

key creation

The rotation policy should be configured on the existing keys.

existing keys

Key rotation can be invoked manually. To invoke rotation, click Rotate Now.

Rotate now

The event grid key has a configuration of expiry notification. Notification can be configured with days, months and years before the event.

event grid

Key rotation can be configured with the ARM template. Key rotation policy can be configured using templates.

Thanks for reading my article till end. I hope you learned something special today. If you enjoyed this article then please share to your friends and if you have suggestions or thoughts to share with me then please write in the comment box.

Above blog is submitted as part of 'Devtron Blogathon 2022' - https://devtron.ai/
Check out Devtron's GitHub repo - https://github.com/devtron-labs/devtron/ and give a ⭐ to show your love & support.
Follow Devtron on LinkedIn - https://www.linkedin.com/company/devtron-labs/ and Twitter - https://twitter.com/DevtronL/, to keep yourself updated on this Open Source project.

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay