-
Notifications
You must be signed in to change notification settings - Fork 554
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
Add data
field to KV data sources
#1577
Conversation
@@ -27,6 +27,10 @@ func TestDataSourceKVSecret(t *testing.T) { | |||
Check: resource.ComposeTestCheckFunc( | |||
resource.TestCheckResourceAttr(resourceName, consts.FieldPath, fmt.Sprintf("%s/%s", mount, name)), | |||
resource.TestCheckResourceAttr(resourceName, consts.FieldLeaseRenewable, "false"), | |||
resource.TestCheckResourceAttr(resourceName, "data.zip", "zap"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably want to check the length of data.%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in latest commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it!
Adds a
data
schema field tovault_kv_secret_v2
,vault_kv_secret
andvault_kv_subkeys_v2
datasources. This field stores a serialized data map of the secret data to the TF state. Previously we were storing the secret data only as a string in order to preserve nested secrets.Relates OR Closes #1520
Output from acceptance testing: