-
Notifications
You must be signed in to change notification settings - Fork 616
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
Use configured client_secret in state to properly handle changes #4500
Conversation
changelog detected ✅ |
10d4511
to
115332a
Compare
looks like the acceptance tests are broken here
|
Thanks for the feedback @jacobbednarz! I changed the test so it doesn't try to verify the value of the client secret, as the API doesn't return the configured value, so that field can't be imported properly. Based on what's written about
https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/helper/resource#TestStep |
i think #4419 already fixed this; can you confirm on your end? |
Nice, it looks like the changes I wanted were merged in that PR 🙌 I built the provider from the master branch and tested it, and it looks like the issue is solved 👍 I'll close this PR |
This is an attempt to solve the issue reported here: #4497
It should also fix an issue we experienced earlier (but which is now "replaced" with the issue listed above) where changes to the
client_secret
didn't trigger changes to thecloudflare_zero_trust_access_identity_provider
resource.This PR will change the resource so the
client_secret
is stored in state, so it can properly detect if the field has changed, and can trigger updates to the resource.