nsmithuk / local-kms

A mock version of AWS' Key Management Service, for local development and testing.
MIT License
198 stars 34 forks source link

Return KeySpec instead of CustomerMasterKeySpec #32

Closed doris-yolabs closed 2 years ago

doris-yolabs commented 2 years ago

CustomerMasterKeySpec is deprecated in favor of just KeySpec. According to https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-choose.html, the response of the CreateKey and DescribeKey operations includes a KeySpec and CustomerMasterKeySpec member with the same value.

LocalKMS should update the two operations to recognize/return KeySpec as well.

nsmithuk commented 2 years ago

Hi @doris-yolabs Thank you for raising this. As I can see you have seen, this has been fixed in the latest release.