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

Integrations Vault: handle Overwrite secret data on Set #4387

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

slntopp
Copy link
Member

@slntopp slntopp commented Jul 22, 2024

Resolves #8665

Copy link
Contributor

github-actions bot commented Jul 22, 2024

Test Results

3 079 tests  ±0   3 078 ✅ ±0   1m 48s ⏱️ +24s
  363 suites ±0       1 💤 ±0 
   27 files   ±0       0 ❌ ±0 

Results for commit 3ba3e4a. ± Comparison against base commit f7cd077.

♻️ This comment has been updated with latest results.

@slntopp slntopp marked this pull request as ready for review July 22, 2024 13:03
Object: cred.Key,
Plaintext: cred.Data,
Key: v.kmsKeyID,
_, err = c.Update(ctx, &berglas.StorageUpdateRequest{
Copy link
Member

Choose a reason for hiding this comment

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

does that create if the key doesn't exist?

Copy link
Member Author

Choose a reason for hiding this comment

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

that's what documentation suggests
if that's not what API is actually doing, we can rewrite it like aws secrets manager (create -> if AlreadyExists -> Update)

ref: https://pkg.go.dev/github.com/GoogleCloudPlatform/berglas@v1.0.3/pkg/berglas#StorageUpdateRequest

@slntopp slntopp requested a review from imilchev July 22, 2024 13:28
@slntopp slntopp merged commit a2151b8 into main Jul 22, 2024
15 checks passed
@slntopp slntopp deleted the mik/integrations-vault-set-method branch July 22, 2024 13:45
@github-actions github-actions bot locked and limited conversation to collaborators Jul 22, 2024
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