How CMK manual rotation work

0

I'm trying to understand how CMK manual rotation works and get it right.

As far as I understand from this article, https://repost.aws/knowledge-center/rotate-keys-customer-managed-kms,

  • manual rotation is basically creating a new key
  • and set the alias if my applications are using it or update my applications to use the newly created key
  • keep and leave the old key so the applications can still decrypt the data that's been encrypted with the old key

Does this mean the number of keys just keep increasing at every rotation? For example if I'm required to do the key rotation at every 3 months, I have +4 keys every year?

If the case was for DynamoDB client side encryption, then to retire any old key, how does it go? Do I have to scan all items and do re-encryption to be able to finally retire and remove on old key?

loui
已提問 1 年前檢視次數 337 次
1 個回答
1
已接受的答案

Hello, Your understanding about manual rotation of key is correct. You might prefer to rotate keys manually so you can control the rotation frequency. The process of replacing one KMS key with another is known as manual key rotation. Use an alias to refer to a KMS key in your applications. Then, when you want to change the KMS key that the application uses, instead of editing your application code, change the target KMS key of the alias.

Deleting/Retiring an AWS KMS key is destructive and potentially dangerous. After a KMS key is deleted, you can no longer decrypt the data that was encrypted under that KMS key, which means that data becomes unrecoverable. You should delete a KMS key only when you are sure that you don't need to use it anymore. So for DynamoDB tables, you need to encrypt data with new key before deleting old key. This is is to ensure that old key is not used anywhere to encrypt.

Useful articles: https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html

AWS
已回答 1 年前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南