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

Google secret manager storage #6

Merged
merged 3 commits into from
Oct 27, 2023
Merged

Google secret manager storage #6

merged 3 commits into from
Oct 27, 2023

Conversation

pdeziel
Copy link
Collaborator

@pdeziel pdeziel commented Oct 27, 2023

This adds an implementation for storing passwords and certificates in Google secret manager.

@pdeziel pdeziel requested a review from pdamodaran October 27, 2023 14:20
// SecretsOption allows us to configure the secrets client when it is created.
type SecretsOption func(s *GoogleSecrets) error

func WithGRPCClient(client GRPCSecretClient) SecretsOption {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is so we can inject a mock secret manager client in tests and avoid having to use the real google secret manager client.

Copy link

@pdamodaran pdamodaran left a comment

Choose a reason for hiding this comment

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

looks good @pdeziel!

@pdeziel pdeziel merged commit ffc53de into main Oct 27, 2023
3 checks passed
@pdeziel pdeziel deleted the sc-22231 branch October 27, 2023 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants