-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fix a panic when creating HVS app or secret #1154
Conversation
The changes look good. I was able to reproduce the panic then when building this branch it fixed my TF project. I did find another bug that we could fix at the same time or as a follow-up PR - up to you. If you change the name of a hcp_vault_secrets_secret I'd expect that the secret with the previous name gets deleted and the a secret with the new name gets created. However, the TF provider treats it as an update and creates the new secret while not deleting the previous one. Same if the app name changes, the resource gets duplicated instead of recreated. I think it can be simply fixed by adding this to the "app_name" and "secret_name" on the hcp_vault_secrets_secret schema.
Does it make sense? |
Ah did not know about this. Sure, will put up a new PR for this. |
🛠️ Description
This change adds in a fix for the bug. There is a panic when creating an app or a secret and this change addresses the issue.
🏗️ Acceptance tests
Output from acceptance testing:
$ make testacc TESTARGS='-run=TestAccXXX' ...