-
Notifications
You must be signed in to change notification settings - Fork 89
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
Error when upgrading to v0.37.0 #323
Comments
I found in release notes that there's a breaking change in this resource and that the expectation is that I should remove from terraform state and re-import the resource. Two comments:
|
#324 takes care of the point#2 above fyi. |
Hey @maroux 👋🏻 I'm sorry about the issue you've experienced while upgrading. 😞 I can understand how frustrating and negative the experience can be. While we try to keep the breaking changes to a minimum, unfortunately we're still on v0 and from time to time we're forced to introduce them in order to fix faulty behavior and ultimately give a better experience for everyone using the provider. From https://semver.org/:
So even minor version updates could introduce breaking changes. We'll keep posting what manual steps need to be taken in the CHANGELOG.md when breaking changes are introduced. What I can share right now is that our team is currently focusing on the reported bugs, specifically #14. Once these are completed our focus will shift towards adding more data sources as requested in #22 and then cut a v1.0.0 release, after which we'll be able to 100% guarantee no more breaking changes are introduced without a major version bump. We really appreciate everyone's patience until then 🙏🏻 Now to address your second point, the error message was introduced in order for us to provide a better experience while managing the db configuration secrets such that accidental updates do not wipe out any secrets that were created outside of managing them through terraform. If we change the error level from error to warning we stop preventing this and secrets will get wiped out. To fix this you do not need to do any manual changes by hand on the state file at all. The steps you need to take are:
What we could do however to improve the experience is perhaps move the check for unmanaged config secrets from the read func (same one that the import uses) to the update func (the one that the apply uses) and make the apply fail instead of the import (we need to keep the level of the diagnostic to error to prevent wiping the secrets). Would this be something you'd prefer? |
We really appreciate your feedback and we'll aim at being clearer and minimizing any possible breaking changes in the future. As the issue has been cleared by following the release notes steps we'll be closing this down. |
Checklist
Description
Expectation
No failure.
Reproduction
Auth0 Terraform Provider version
v0.37.0
Terraform version
v1.1.3
The text was updated successfully, but these errors were encountered: