-
Notifications
You must be signed in to change notification settings - Fork 10
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
Terraform update on a secret fails #115
Comments
Hi @Lp-Francois! Could you confirm whether or not the config the secret is going into contains any secrets with the restricted visibility type? Also, are you using an service token or service account token to perform the TF run? Or are you using a CLI/Personal token? |
Hey @watsonian 👋 And to run TF, I use a Service account token. |
We have the same issue in one of our environments, traced back why this happened
It seems there was an event where the terraform provider made a change to Doppler and did not store it in the terraform state, we store this state on S3 so i really am not sure how this could even happen. |
Another thing to note: Found more issues on github describing this by other repo's: |
Unfortunately, I wasn't able to reproduce this behavior at all unless I was specifically attempting to import a secret with restricted visibility. @Lp-Francois Could you please describe the exact steps you're taking (i.e., service account permissions on the project in question, which resources you're importing into TF, the exact commands you're running to do the imports, and the relevant plan output you're seeing before hitting this error)? Could you also attempt to reproduce this on a test Doppler project in a config that only has the secret you're trying to manage in Terraform? Finally, it looks like you're using a custom module. Are you able to share the relevant portion that's doing this so I can see what else it's doing more broadly? I setup a very simple reproduction case with a project named
I then ran the following commands to import the relevant resources:
At that point, I performed a
This worked if I didn't import the secret first too:
|
Hey @watsonian It is really weird, I got the error, and to fix it I tried to delete the secret entry in doppler. The error still remained. Also, I don't use "Restricted" entries on the project I was terraforming... 🤔 If it happens again, I will report here a complete bug report (with TF outputs, etc) |
Hey 👋
It seems like the provider isn't able to fetch info about a secret when I want to change a secret.
For some context, I am importing manually created doppler project, configs and secrets in Terraform, and I replace a secret during the import.
Related issue: pulumiverse/pulumi-doppler#15
The text was updated successfully, but these errors were encountered: