aws / aws-sdk

Landing page for the AWS SDKs on GitHub
https://aws.amazon.com/tools/
Other
73 stars 16 forks source link

Support KMS parameters used by AWS Nitro Enclaves #332

Closed craigfe closed 7 months ago

craigfe commented 2 years ago

Describe the feature

Several KMS operations support an optional Recipient parameter intended for use by applications running in AWS Nitro Enclaves. Iff this flag is passed, a successful response will also contain a CiphertextForRecipient field containing an encrypted form of the data that would otherwise have been in the Plaintext response field (and the Plaintext field is null).

These request/response fields are not yet supported by this SDK, although they are used by the C KMS SDK included in aws-nitro-enclaves-sdk-c. It would be useful to have support for them directly in Go to avoid needing an extra C dependency when running Go binaries inside Nitro enclaves.

Use Case

We have a Go application that runs in a Nitro enclave and needs to be able to present its attestation document to KMS, but cannot depend on an external C library. To support this use-case, we're currently running an internal fork of aws-sdk-go-v2/service/kms that adds support for the necessary request & response parameters.

Proposed Solution

The implementation might look like:

Other Information

Acknowledgements

AWS Go SDK V2 Module Versions Used

github.com/aws/aws-sdk-go-v2/service/kms@v1.17.3 github.com/aws/aws-sdk-go-v2@v1.16.5

Go version used

1.18.4

RanVaknin commented 2 years ago

Hi ,

Thanks for opening this issue. Your proposed solution talks about adding certain fields to the service model, and that is owned by the service team, not the SDKs. I see there was an internal ticket created for this by your TAM ref D54200427.

Will let you know when I hear back from the service team.

Thanks, Ran

aBurmeseDev commented 7 months ago

HI @craigfe - thank you for reporting this issue.

I checked in with the service team but they currently don't have the timeline for it. Since service team is aware of this now and SDK doesn't have control over it, please follow up with TAM or check Changelog for further updates. We'll be closing the issue.

Feel free to reach out again!

github-actions[bot] commented 7 months ago

This issue is now closed.

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.