-
Notifications
You must be signed in to change notification settings - Fork 0
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
Keep-149-GCP-GO-SDK Develop #4
base: KEEP-149-gcp-go-review
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,52 @@ | |||
**GCP Cloud Key Management** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should't this be inside GCP folder?
// Creates a hash of the given configuration data. | ||
func (g *GoogleCloudKeyVaultStorage) createHash(config []byte) string { | ||
hash := md5.Sum(config) | ||
return hex.EncodeToString(hash[:]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as AWS PR.
g.config = config | ||
if err := g.saveConfig(config); err != nil { | ||
return err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the point of saving, if it is loaded from file?
return found | ||
} | ||
|
||
func (g *GoogleCloudKeyVaultStorage) ChangeKey(newKeyResourceName string) (bool, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason why changeKey is in storage file and for every other platform it was in the main file?
No description provided.