Properly force a new resource whenenver the cert is near expiry - #1440
Merged
Conversation
Affected resources: - resource_pki_secret_backend_cert - resource_pki_secret_backend_sign The previous approach would leave some computed values out of sync whenever the certificate was within the expiry window. This was because it attempted to leverage a combination of schema CustomizeDiff, and Update functions, rather than taking advantage of the ability to mark the resource as requiring replacement with the CustomizeDiff function itself.
- simplify testWaitCertExpiry()
marcboudreau
pushed a commit
to marcboudreau/terraform-provider-vault
that referenced
this pull request
Nov 6, 2022
…icorp#1440) Affected resources: - vault_pki_secret_backend_cert - vault_pki_secret_backend_sign The previous approach would leave some computed values out of sync whenever the certificate determined to be expired. This was because the approach attempted to leverage a combination of schema CustomizeDiff, and Update functions, rather than taking advantage of the ability to mark the resource as requiring replacement within the CustomizeDiff function itself. Other fixes: - cleanup related PKI test Terraform. - pki-sign: validate the CSR to the generated certificate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Affected resources:
The previous approach would leave some computed values out of sync
whenever the certificate determined to be expired. This was
because the approach attempted to leverage a combination of schema
CustomizeDiff,and
Updatefunctions, rather than taking advantage of the ability tomark the resource as requiring replacement within the
CustomizeDifffunction itself.
Community Note
Closes #835
Release note for CHANGELOG:
Output from acceptance testing: