Open piratecarrot opened 2 weeks ago
Didn't realise there was proxmox_virtual_environment_download_file, which supports the checksum option.
Regardless, I created a proof of concept which seems to work well, for local files. https://github.com/siyka-au/terraform-provider-proxmox/tree/issues/1623
I am very new to terraform so I am still learning the ropes on that front.
Is your feature request related to a problem? Please describe. N/A
Describe the solution you'd like When getting specific resources from online sources, such as the Debian cloud images, they provide only SHA512 checksums.
Arch Linux with its PKGBUILD system has something similar where one or more different checksums of varying algorithms can be stated. https://wiki.archlinux.org/title/PKGBUILD Section 8 "Integrity".
I would like to see,
checksum
remain which defaults to SHA256 and porovides backward compatibility. In addition, add new optional fields:sha512sum
b2sum
and add more as they become requested or supported.Describe alternatives you've considered As a workaround I currently download the file locally, check the integrity using SHA512. If it passes, computer the SHA256 and use that within Terraform.
Additional context N/A