Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

cache implemented for kms clients#59

Draft
lkolluru05 wants to merge 3 commits into
mainfrom
fix/CacheForKmsClient
Draft

cache implemented for kms clients#59
lkolluru05 wants to merge 3 commits into
mainfrom
fix/CacheForKmsClient

Conversation

@lkolluru05

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread crypto/encrypt-decrypt.go
return base64MD5Hash
}

func GetKMSEnvelopeClient(resourceName string) (*aead.KMSEnvelopeAEAD, error){

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please rename
GetKMSEnvelopeClient => getCachedKMSEnvelopeClient
and
getNewKMSEnvelopeClient => getKMSEnvelopeClient

This will aid readability.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OR maybe better,
chage GetKMSEnvelopeClient to return getNewKMSEnvelopeClient if not found instead of an error, and onluy call GetKMSEnvelopeClient

I kinda like that a little better but up to you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants