ignore_changes for auth0_connection client_id and client_secret not respected #1356
Replies: 6 comments
-
Hello @scorgatelli 👋 I looked into this and based on my investigation this doesn't look like a provider issue, but usual behaviour demonstrated by terraform core. Please refer to these comments: Also: For your use case, here's what I'd recommend:
Let me know if that helps. :) Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @duedares-rvj , Thank you for your reply. I tried using For example, as I mentioned in the repro steps, if I change the
Additionally, I tested ignoring the options entirely. I still see the same behavior. Even though all options should be ignored, the
This seems to me to be a clear indicator that this is a provider issue. We use Currently, the only way I have found to make this safe for use with self-service SSO is to ignore all resource changes. |
Beta Was this translation helpful? Give feedback.
-
This just bit us as well. This should be fixed asap. We are using the same (commented out) configuration as above. |
Beta Was this translation helpful? Give feedback.
-
Some addtional information on the connection resource.
domain I should be able to get someone to look at this next week for a PR. |
Beta Was this translation helpful? Give feedback.
-
Same issue at our side. However, I checked and it apparently works for Google Workspace connections: |
Beta Was this translation helpful? Give feedback.
-
@scorgatelli @jacobkretz-bf @ivanenkomaksym Hello everyone. We further looked into this, but I think it presently boils down to this comment:
This is presently by API design but on the provider level, we are exploring ways to address it for the Meanwhile, I'm going to park this into discussions for any further input from the community. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Description
We are using terraform to provision Azure AD connections that are intended to be used with the new Self-Service Single Sign-On feature. Our process looks like this:
options.client_id
andoptions.client_secret
.lifecycle.ignore_changes
is used to ignore any changes to the client_id and secret since these will be set via the self-service setup.The actual behavior is that any change to the connection properties or configuration drift results in the credentials being reset to the place holder values, breaking the connection.
Additionally, there is no indication in the terraform plan that these values will be modified. We recently deployed a change that, based on the plan, looked like it would have no impact. However, it silently reverted the client id and secret and broke the customer connection requiring us to have them reconfigure the parameters via the self-service SSO setup.
This issue makes using the self-service SSO setup unreliable when the connection is provisioned via terraform.
Expectation
The intended behavior is that future changes via terraform, or other manual drift updates will not update the credentials set by the customer when ignored using
lifecycle.ignore_changes
.Reproduction
display_name
or any other propertyAuth0 Terraform Provider version
1.22.0
Terraform version
v1.6.3
Beta Was this translation helpful? Give feedback.
All reactions