Skip to content
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

provider gpg key expired, all terraform deployments failing to init #176

Closed
benoittoulme opened this issue Oct 4, 2023 · 5 comments
Closed

Comments

@benoittoulme
Copy link

benoittoulme commented Oct 4, 2023

terraform init gives me this error:

[2023-10-04T19:30:15.334Z] │ Error: Failed to install provider

[2023-10-04T19:30:15.334Z] │ Error while installing splunk/splunk v1.4.22: error checking signature:

[2023-10-04T19:30:15.334Z] │ openpgp: key expired

[Update]
The GPG key used to sign the provider build expired, but older version of terraform did not check for expiration date. terraform 1.6 does opentofu/opentofu#673

Now that we understand the issue, we think that change may be reverted, as many providers are affected.
Anyway, it would be good to get a new GPG key to sign the new builds as the current one is expired.

@yarv-dev
Copy link

yarv-dev commented Oct 5, 2023

This is the same for us.
It is an incompatibility with version 1.6, which was released October 4th 2023.
When we downgrade our image to use Terraform 1.5 it worked

@benoittoulme
Copy link
Author

I should have tried this! Thanks. I did not realize I was using 1.6, setting the terraform version with tfswitch :)
That's a good workaround.

@benoittoulme
Copy link
Author

Here is the related terraform issue : hashicorp/terraform#33984

"Based on my investigations, this may have been caused by this commit 1fe57d4. It appears that terraform wasn't checking whether or not the PGP signature was expired when using golang.org/x/crypto/openpgp but github.com/ProtonMail/go-crypto may be doing it automatically on-behalf of terraform."

@emillunde
Copy link

This is fixed in Terraform version 1.6.1.

@benoittoulme
Copy link
Author

benoittoulme commented Oct 11, 2023

The GPG key is still expired :) tf 1.6.1 reverts some of the logic that failed when downloading a build for which the GPG key is expired.

The GPG key should still be updated ideally.

@benoittoulme benoittoulme closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants