Skip to content

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

Merged
vinay-gopalan merged 12 commits into
mainfrom
feature/kvv2-delete-all
Dec 17, 2021
Merged

Include support to delete key metadata for kv-v2 generic secrets#1254
vinay-gopalan merged 12 commits into
mainfrom
feature/kvv2-delete-all

Conversation

@vinay-gopalan

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

Copy link
Copy Markdown
Contributor

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

@benashz benashz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

A few suggestions/requests.

Comment thread vault/resource_generic_secret_test.go Outdated
Comment thread vault/resource_generic_secret_test.go Outdated
Comment thread vault/resource_generic_secret_test.go Outdated
Comment thread website/docs/r/generic_secret.html.md
@github-actions github-actions Bot added size/L and removed size/M labels Dec 16, 2021

@benashz benashz left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment thread vault/resource_generic_secret.go
Comment thread vault/resource_generic_secret_test.go Outdated
Comment thread vault/resource_generic_secret_test.go Outdated
Comment thread CHANGELOG.md Outdated

@benashz benashz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Last suggestion :)

Comment thread vault/resource_generic_secret_test.go Outdated

@benashz benashz left a comment

Copy link
Copy Markdown
Collaborator

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.

2 participants