Skip to content
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

Open
wants to merge 8 commits into
base: KEEP-149-gcp-go-review
Choose a base branch
from

Conversation

ayusha-metron
Copy link
Collaborator

No description provided.

@ayusha-metron ayusha-metron marked this pull request as ready for review February 26, 2025 10:27
@ayusha-metron ayusha-metron changed the title Keep-149-GCP-GO-SDK Keep-149-GCP-GO-SDK Develop Feb 28, 2025
@@ -0,0 +1,52 @@
**GCP Cloud Key Management**
Copy link
Collaborator

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[:])
Copy link
Collaborator

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.

Comment on lines +123 to +126
g.config = config
if err := g.saveConfig(config); err != nil {
return err
}
Copy link
Collaborator

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) {
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants