mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
* fix(ec2): keep the KMS key a volume is created with CreateVolume ignored KmsKeyId, so neither CreateVolume nor DescribeVolumes reported kmsKeyId, even for a volume created encrypted with a named key. A volume CreateVolume makes encrypted now keeps the request's KmsKeyId as given, or gets the region's default EBS key when it names none, and both responses report it. A volume that is not encrypted keeps no key, and volumes stored before this change load as they were, with no kmsKeyId. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): read volume responses with XmlParser The volume KMS key tests read CreateVolume and DescribeVolumes responses with a regular expression, substring offsets and plain string matches. They now read them with XmlParser, as other EC2 tests do, so element values are parsed and decoded as XML. Test-only; the assertions are unchanged. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * fix(ec2): keep the KMS key a launch's block device mapping names A launch's encrypted volumes got the region's default EBS key even when their block device mapping, or the launch template's, named Ebs.KmsKeyId. The key now goes from the mapping to the volume, root included, and a mapping that names none still gets the default. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> * test(ec2): pin the launch volume key rules Pin that a launch mapping naming a key without Encrypted leaves the volume unencrypted and keyless, and that a request entry's key wins over its launch template's. Delete the test's launch template, reuse the launch helpers in the root-volume test, and document that a launch volume encrypted only by its snapshot gets the region's default key, since snapshots record no key. Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com> --------- Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>