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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include support to delete key metadata for kv-v2 generic secrets #1254

Merged
merged 12 commits into from Dec 17, 2021

Conversation

vinay-gopalan
Copy link
Contributor

@vinay-gopalan vinay-gopalan commented Dec 8, 2021

Community Note

  • Please vote on this pull request by adding a 馃憤 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes
#760
https://hashicorp.atlassian.net/browse/VAULT-4351

Release note for CHANGELOG:

resource/generic_secret: Add support for deleting key metadata and all version data for a secret

Output from acceptance testing:

$ make testacc TESTARGS='-v -run TestResourceGenericSecret'
=== RUN   TestResourceGenericSecret
--- PASS: TestResourceGenericSecret (3.29s)
=== RUN   TestResourceGenericSecret_deleted
--- PASS: TestResourceGenericSecret_deleted (3.01s)
=== RUN   TestResourceGenericSecret_deleteAllVersions
--- PASS: TestResourceGenericSecret_deleteAllVersions (2.95s)
PASS
ok      github.com/hashicorp/terraform-provider-vault/vault     9.412s

Copy link
Contributor

@benashz benashz left a comment

Choose a reason for hiding this comment

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

A few suggestions/requests.

vault/resource_generic_secret_test.go Outdated Show resolved Hide resolved
vault/resource_generic_secret_test.go Outdated Show resolved Hide resolved
vault/resource_generic_secret_test.go Outdated Show resolved Hide resolved
website/docs/r/generic_secret.html.md Show resolved Hide resolved
@github-actions github-actions bot added size/L and removed size/M labels Dec 16, 2021
Copy link
Contributor

@benashz benashz left a comment

Choose a reason for hiding this comment

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

Looking good! A few suggestions.

vault/resource_generic_secret.go Show resolved Hide resolved
vault/resource_generic_secret_test.go Outdated Show resolved Hide resolved
vault/resource_generic_secret_test.go Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@benashz benashz left a comment

Choose a reason for hiding this comment

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

Last suggestion :)

vault/resource_generic_secret_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@benashz benashz left a comment

Choose a reason for hiding this comment

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

LGTM!

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

Successfully merging this pull request may close these issues.

None yet

2 participants