dmacvicar / terraform-provider-libvirt

Terraform provider to provision infrastructure with Linux's KVM using libvirt
Apache License 2.0
1.54k stars 457 forks source link

Signing key expired? #1035

Closed kipe closed 8 months ago

kipe commented 8 months ago

System Information

Linux distribution

Ubuntu 23.04

Terraform version

> terraform -v
Terraform v1.6.0
on linux_amd64

Checklist

Description of Issue/Question

The provider cannot be installed, as the key used to sign it seems to have expired.

Setup

main.tf

terraform {
  required_providers {
    libvirt = {
      source  = "dmacvicar/libvirt"
      version = "0.7.1"
    }
  }
}

Steps to Reproduce Issue

Just trying to initialize a new main.tf with the provider should be enough.

> terraform init

Initializing the backend...

Initializing provider plugins...
- Finding dmacvicar/libvirt versions matching "0.7.1"...
- Installing dmacvicar/libvirt v0.7.1...
╷
│ Error: Failed to install provider
│ 
│ Error while installing dmacvicar/libvirt v0.7.1: error checking signature: openpgp: key expired
╵
rabin-io commented 8 months ago

Same issue here,

I replaced* the terraform binary file with tofu and was able to make it run.

southsidedean commented 8 months ago

Yeah, same issue here. Looks like PGP keys are expired/revoked.

Ubuntu 22.04, Terraform:

Terraform v1.6.0
on linux_amd64
Screenshot 2023-10-05 at 4 08 04 PM
jrocha25 commented 8 months ago

Same issue with me

Terraform v1.6.0
on windows_amd64
southsidedean commented 8 months ago

For now, if you roll back to 1.5.7 you should be good. Worked for me.

michaelbeaumont commented 8 months ago

Just FYI this is caused by what seems to be an unintentional breaking change in v1.6.0

kubealex commented 8 months ago

this is related to the breaking change in the recent release and it is actually discussed here.

dmacvicar commented 8 months ago

I am looking into it, and publish a new release.

dmacvicar commented 8 months ago

Can anyone check if v0.7.2 is working correctly?

gwritz commented 8 months ago

Not working for me: `$ terraform init

Initializing the backend... Initializing modules... Downloading registry.terraform.io/MonolithProjects/vm/libvirt 1.10.0 for controlplane...

Initializing provider plugins...

dmacvicar commented 8 months ago

I forgot to extend the subkey. I am not sure if there is a way to make the registry take the signature without me rebuilding the release.

dmacvicar commented 8 months ago

I have rebuild again. Now the registry complains about the hash. It seems the registry is caching the old build :-(

Initializing provider plugins...
- Finding dmacvicar/libvirt versions matching "0.7.2"...
- Installing dmacvicar/libvirt v0.7.2...
╷
│ Error: Failed to install provider
│
│ Error while installing dmacvicar/libvirt v0.7.2: checksum list has unexpected SHA-256 hash
│ 7d634ac045a8593bdac82e3ae40589d81900262373caafbfa28c4d7c54bf91cb (expected
│ 6a2ee6c7b448462d81d4aa4b2d2bf0b25b1c1f3438c646e7e601f6e583bdfb18)
╵

❯ cat terraform-provider-libvirt_0.7.2_SHA256SUMS
094fb78b242783b2127faf926576abdf9c567b65f824a83c1d31214e2c2b3f56  terraform-provider-libvirt_0.7.2_windows_arm.zip
0d98f4d3cd38ba23eac10c5c7c35f2c5be155da8273dc5b042168841b28f2e48  terraform-provider-libvirt_0.7.2_freebsd_amd64.zip
1c96cdd3c556661963253938603d9ad5f38039b5af46b3236c3aa55b4995eaa6  terraform-provider-libvirt_0.7.2_linux_386.zip
1e56f930a36c714f4c3cdee81776e789e490d4c2edc388d4f9d97fcf002d1309  terraform-provider-libvirt_0.7.2_darwin_amd64.zip
293956c902f4196aa91b8c228672efcc975f0c2144d64f4fcfd3cbd0892262a2  terraform-provider-libvirt_0.7.2_windows_386.zip
3312206873dce42919b83b45c0e2892f4a802c46d0411aa8959c7ea2b1aefaf3  terraform-provider-libvirt_0.7.2_darwin_arm64.zip
50c6d51ff924ef815fc88dbb533cdca0742cf750368316cd77353c2924a8ed1a  terraform-provider-libvirt_0.7.2_windows_arm64.zip
542a9b7c49b6ade6252fb972e5975d8c0670cff126d1f75b9c86385974cd71ff  terraform-provider-libvirt_0.7.2_freebsd_arm.zip
6afcaa69b0e4dd360eab51b62baf80a33d780f97757eea256003b3bfeaaba6f5  terraform-provider-libvirt_0.7.2_freebsd_386.zip
7009cfe1e10ceaaf82ecd8425f3676e6241103ac455ccb863a9cafa4b86cd1bb  terraform-provider-libvirt_0.7.2_linux_arm64.zip
7d634ac045a8593bdac82e3ae40589d81900262373caafbfa28c4d7c54bf91cb  terraform-provider-libvirt_0.7.2_linux_amd64.zip
80b04c2546541c824e926838a128dca71bfed8c9d926f25bd49ebfebc00ad25f  terraform-provider-libvirt_0.7.2_freebsd_arm64.zip
a1238c15f307e1fdabfe1a7e1c9a4e0c1e6a1027a624c3e1bff236dc82a189a3  terraform-provider-libvirt_0.7.2_windows_amd64.zip
e7a1b04b3eab222f589f773a5c19810ea4497dabd4c3456efc6b7c271fe7e74b  terraform-provider-libvirt_0.7.2_linux_arm.zip
bitchecker commented 8 months ago

│ Error: Failed to install provider │ │ Error while installing dmacvicar/libvirt v0.7.2: checksum list has unexpected SHA-256 hash │ 7d634ac045a8593bdac82e3ae40589d81900262373caafbfa28c4d7c54bf91cb (expected │ 6a2ee6c7b448462d81d4aa4b2d2bf0b25b1c1f3438c646e7e601f6e583bdfb18) ╵

I'm experiencing the same issue just now:

╷
│ Error: Failed to install provider
│ 
│ Error while installing dmacvicar/libvirt v0.7.2: checksum list has unexpected SHA-256 hash 7d634ac045a8593bdac82e3ae40589d81900262373caafbfa28c4d7c54bf91cb (expected
│ 6a2ee6c7b448462d81d4aa4b2d2bf0b25b1c1f3438c646e7e601f6e583bdfb18)
╵
JorgeAyllon commented 8 months ago

El mismo error hoy 10-Oct-2023: │ Error: Failed to install provider │ │ Error while installing dmacvicar/libvirt v0.7.2: checksum list has unexpected SHA-256 hash │ 7d634ac045a8593bdac82e3ae40589d81900262373caafbfa28c4d7c54bf91cb (expected │ 6a2ee6c7b448462d81d4aa4b2d2bf0b25b1c1f3438c646e7e601f6e583bdfb18)

krokwen commented 8 months ago

El mismo error hoy 10-Oct-2023: │ Error: Failed to install provider │ │ Error while installing dmacvicar/libvirt v0.7.2: checksum list has unexpected SHA-256 hash │ 7d634ac045a8593bdac82e3ae40589d81900262373caafbfa28c4d7c54bf91cb (expected │ 6a2ee6c7b448462d81d4aa4b2d2bf0b25b1c1f3438c646e7e601f6e583bdfb18)

I have same issue

krokwen commented 8 months ago

and now, on 0.7.3 the pgp key expired again

dmacvicar commented 8 months ago

Yes. I am doing some dummy releases while I figure it out. I am already signing with the extended key, but the registry code has a key of mine and does not allow to change it. I will try generating a whole new key.

dmacvicar commented 8 months ago

Ok pals, v0.7.4 should be working. Reopen if having problems.

southsidedean commented 8 months ago

Looks good with TF 1.6.1.

Thank you!