hashicorp / terraform-provider-vault

Terraform Vault provider
https://www.terraform.io/docs/providers/vault/
Mozilla Public License 2.0
458 stars 540 forks source link

secret/kvv2: fix drift detection when disable_read is enabled #2039

Closed fairclothjm closed 11 months ago

fairclothjm commented 11 months ago

Description

This PR fixes a bug with disable_read for the kvv2 secrets resource. When disable_read is true we remove the computed data keys from the diff. Otherwise, we will report drift because they were never set but the provider expects them to be because they are computed fields.

Closes #1668

Checklist

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

Community Note