Closed yoavamit closed 1 year ago
Sorry that there has not been a rely on this yet.
We are currently changing how the KMS integration works. We don't want users to register clients anymore, so that will be deprecated. So I don't think it makes sense to include this PR.
Note that the constructor is not deprecated anymore now.
Instead of registering, the user should call "client.getAead" to get the remote Aead, and use that to encrypt their keyset, or to create an envelope encryption Aead.
The
AwsKmsClient
constructor methods are deprecated. Instead of explicitly constructing the client, theregister()
function should be used.This commit overloads the
register()
function so it could initialize anAwsKmsClient
using anAWSCredentialsProvider
.By exposing the overloaded function, users of the library can avoid using the deprecated constructor.