Will Master Key in KMS gets rotated ? What happens when Master Key gets rotated ?

0

We are planning to encrypt the data in service using data key. AWS Encryption Library take master key ARN as input parameter to do encryption. My understanding is that the data key will be created from KMS service and plain key will be returned as well as encrypted data key using the Master key. The encrypted data key will be added to the encrypted data.

During the decryption, the data encrypted data key will be decrypted using KMS + Master Key.

Now question is -

  1. If some one get access to master key ARN, they can use it to get the plain information right. In that case, how does the KMS ensure the protection ?

  2. I remember the KMS will rotate the master key (I hope I am correct here). If the key gets rotated, what will happen to all data keys which are encrypted using old master key ?

已提問 2 年前檢視次數 1051 次
1 個回答
0

First part: plain information

The private information never comes out of the KMS service. It is described in the FAQ here

KMS FAQs look for "Q: Can symmetric KMS keys be exported out of the service in plain text?"

Second part: rotation

KMS key rotation is optional but recommended.

Rotating a KMS key does not rotate the data keys that the KMS key generated or re-encrypt any data protected by the KMS key, and it will not mitigate the effect of a compromised data key. (Actual mitigation would involve re-encrypting the data with newly acquired data keys).

When you use a rotated KMS key to encrypt data, AWS KMS uses the current key material. When you use the rotated KMS key to decrypt ciphertext, AWS KMS uses the version of the key material that was used to encrypt it. You cannot request a particular version of the key material. Because AWS KMS transparently decrypts with the appropriate key material, you can safely use a rotated KMS key in applications and AWS services without code changes.

Docs

profile picture
JaccoPK
已回答 2 年前

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

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

回答問題指南