-
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
plugin crashes when using secret data tags #832
Comments
I experience the same issue. I think this might be related to the authentication via browser login: https://registry.terraform.io/providers/hashicorp/hcp/latest/docs/guides/auth#user-session-with-browser-login The panic output |
@gonzolino do you also experience it when using secret data tags in particular or always? |
I experienced it with |
Can confirm, experiencing this as well with |
Me too. I think it doesn't matter what data sources (or even resources?) are used. Maybe change the issue title a bit to make it more generic? |
Terraform Version and Provider Version
I'm on Fedora Linux x86 if it matters.
Affected Resource(s)
hcp_vault_secrets_secret
, but maybe othersTerraform Configuration Files
Panic Output
https://gist.github.com/skylerspaeth/9f2b66b6d47e041bf55d344c715a1c82
Steps to Reproduce
Not sure. At first only seemed to encounter the error when the secret contained only numbers. Then I would add a single alphabetical character and it would fix it. Then I would remove it and make it just a number and it would fail again. But now it's completely sporadic, so maybe it was a coincidence. It seems to work for 15 times or so, then fail for 10 or 15, then back to work. Not an exact pattern but my key take away is that if it works once it'll likely work a few more times, and if it fails, it'll likely fail a couple more times before working again.
terraform apply
orplan
FWIW:
I'm referencing the output of those data tags in the
set_sensitive
values being passed to my helm_release resource like so:Also these secrets aren't MANAGED by Terraform, but sometimes don't have any problem accessing their value via a data tag and so I don't think that's the issue.
Expected Behavior
100% of plans and applies DON'T give me a stack trace 🙂
Actual Behavior
It opens the browser, sometimes it successfully does the HCP auth and returns to terminal, other times it doesn't, and just takes me to a localhost page that doesn't respond:
http://localhost:8443/oidc/callback?code=...
Community Note
The text was updated successfully, but these errors were encountered: