nsmithuk / local-kms

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

AWS KMS allows GenerateRandom to take a KeySpec #6

Closed nsmithuk closed 5 years ago

nsmithuk commented 5 years ago

This isn't however in their documentation: https://docs.aws.amazon.com/kms/latest/APIReference/API_GenerateRandom.html

Calling GenerateRandom with an empty body returns

Please specify either number of bytes or key spec.

And the endpoint works if passed

{
   "KeySpec": "AES_256"
}

Thus it appears to be valid.

nsmithuk commented 5 years ago

Question asked around this here: https://forums.aws.amazon.com/thread.jspa?threadID=302700