I am new to AWS, and I was hoping someone can clarify something for me regarding encryption.
I was reading the AWS document on Amazon EBS encryption, and in the document, under the section "How EBS encryption works" I noticed one of the steps is "Amazon EBS sends a GenerateDataKeyWithoutPlaintext request to AWS KMS, specifying the CMK to use to encrypt the volume"
Isnt the CMK supposed to encrypt the data key that is then used to encrypt the volume? This is due to the fact that the CMK cannot encrypt data that is more than 4KB in size.
The way that I understand it is that, the CMK (sitting in KMS) will encrypt the data key which does not have the size limit CMK has, and the data key would then be encrypting the volume of the EC2 instance and sitting on the same encrypted volume because the data key itself is also encrypted.
Did I not understand that step correctly?
Link to the document: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html?icmpid=docs_ec2_console