-
Notifications
You must be signed in to change notification settings - Fork 86
Timeout for StrictAwsKmsMasterKeyProvider #446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Howdy @ZacharyThomas, I apologize for our tardy response. However, your statement is correct:
As the AWS Encryption SDK for Python (ESDK-Python) is currently written,
Ultimately, we want to refactor the ESDK-Python, The KMS Keyrings have a cleaner interface for providing KMS clients. We do not have a timeline for when this refactor will be done. In the meantime, please, Much Obliged, |
Hi @ZacharyThomas, I'm going to close this as the example and workaround above address your original concerns. I've open a new issue to track the feature request to provide a custom client in a cleaner way here: #497 Please feel free to re-open this or open a new issue if you have further questions or concerns. Thanks! |
Problem:
Frequently we provide timeouts and retries to our boto clients to retry requests. I searched through the documentation, and it seems like you can only provide a client to a
KMSMasterKeyConfig
instance, but I do not see how I could configure myStrictAwsKmsMasterKeyProvider
to customizeKMSMasterKeyConfig
, without subclassing. This is how we use the SDK now:Ideally, we would be able to use the SDKClient or KeyProvider to pass our KMS client preferences.
Solution:
Seems like the current issue is that the KeyProvider implements a _client method:
https://github.com/aws/aws-encryption-sdk-python/blob/master/src/aws_encryption_sdk/key_providers/kms.py#L684
Which always creates / registers a client. Allowing me to pass a client in the
KMSMasterKeyProviderConfig
object should alleviate that.Out of scope:
Is there anything the solution will intentionally NOT address?
The text was updated successfully, but these errors were encountered: