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

Fix/add kv data map #1576

Merged
merged 4 commits into from
Aug 10, 2022
Merged

Conversation

vinay-gopalan
Copy link
Contributor

Adds a data schema field to vault_kv_secret_v2, vault_kv_secret and vault_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:

$ make testacc TESTARGS='-run=TestDataSourceKVV2Secret'
=== RUN   TestDataSourceKVV2Secret
--- PASS: TestDataSourceKVV2Secret (1.76s)
PASS

$ make testacc TESTARGS='-run=TestDataSourceKVSecret'
=== RUN   TestDataSourceKVSecret
--- PASS: TestDataSourceKVSecret (3.09s)

$ make testacc TESTARGS='-run=TestDataSourceKVSubkeys'
=== RUN   TestDataSourceKVSubkeys
--- PASS: TestDataSourceKVSubkeys (1.78s)
PASS

@vinay-gopalan vinay-gopalan merged commit fdd479c into VAULT-6881/add-data-to-kv Aug 10, 2022
@vinay-gopalan vinay-gopalan deleted the fix/add-kv-data-map branch August 10, 2022 22:50
@benashz benashz added this to the 3.8.2 milestone Aug 11, 2022
@vinay-gopalan vinay-gopalan removed this from the 3.8.2 milestone Aug 11, 2022
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