-
Notifications
You must be signed in to change notification settings - Fork 103
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
Unexpected CSR replacement on v4.0.1 #263
Comments
A partial workaround for this is to pull down your state file (
becomes
You may still see |
I wonder if the
I've verified that the checksum (566..) is indeed the shasum for the CSR, so won't actually change anything. I think it's the same thing for FWIW, I've tested this with v4.0.2. |
I've committed a fix to a local copy of the provider. It seems to work but I don't know if it is doing it right. The problem: The state file contains a SHA1 hash of some PEMs, so when the plan is compared against the state a difference is identified. I think this only occurs when some other value in the resource changes (e.g. the The "fix": If the SHA1 of the PEM in the plan matches the value in state, ignore the change. Or, rather, overwrite the plan value with the state value. |
We're having the same issue currently. Upgrading to |
Any update on this? |
Terraform CLI and Provider Versions
Terraform Configuration
Expected Behavior
No diff
Actual Behavior
Plan recreates the
tls_cert_request
Steps to Reproduce
terraform plan
on v4How much impact is this issue causing?
High
Logs
No response
Additional Information
On upgrading to v4 of the tls provider I found that our
tls_cert_request
resources, which are unchanged and have no diff on v3.4, are up for replacement due to a change in the handling of the subject block. It appears that the block itself is forcing replacement, rather than any attribute within it.Using tls v3.4.0, everything is as expected:
Using tls v4.0.1, the subject block causes the resource to churn:
Using tls v4.0.1 and adding
street_address = []
to the resource definition, the subject block still forces replacement even though none of the attributes within it are changing:Using tls v4.0.1 and ignoring changes on all of
subject
, it looks OK; consideringprivate_key_pem
is now stored as-is this is an expected change:Code of Conduct
The text was updated successfully, but these errors were encountered: