cloudflare_zero_trust_access_identity_provider
keeps trying to update config.client_secret
when there are no changes
#4497
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
triage/debug-log-attached
Indicates an issue or PR has a complete Terraform debug log.
Confirmation
Terraform and Cloudflare provider version
Terraform v1.9.8
on linux_amd64
Affected resource(s)
cloudflare_zero_trust_access_identity_provider
Terraform configuration files
Link to debug output
https://gist.github.com/F21/25df3576a43e4f48c548879da9ba493f
Panic output
No response
Expected output
The
cloudflare_zero_trust_access_identity_provider.config.client_secret
should not be updated when the secret has not changed.Actual output
Terraform attempts to update
cloudflare_zero_trust_access_identity_provider.config.client_secret
even when theclient_secret
has not changed.Steps to reproduce
terraform apply
and accept.terraform apply
orterraform plan
and see that it tries to updatecloudflare_zero_trust_access_identity_provider.config.client_secret
even when the secret is the same.Additional factoids
This is because the
client_secret
is stored asCONCEALED_STRING
in the state. Therefore, unless theclient_secret
is literallyCONCEALED_STRING
, terraform will always thing it has changed.References
No response
The text was updated successfully, but these errors were encountered: