Hi 👋 ,
I'm running into couple of problems in trying to implement Terrareg as our internal OpenTofu module solution. After some fight I was able to make the openid work (I'm still unable to make the permissions work with groups though). Also I'm having some problems with the setup of Github authentication but I decided to go simple first and use deploy key.
I'm now successfully pulling the module but I see these errors when trying to publish/import:
Terrareg version: v4.3.1
Platform: Official Docker image: ghcr.io/matthewjohn/terrareg:v4.3.1
16 April 2026, 19:28 | 10.204.246.190 - - [16/Apr/2026 18:28:35] "POST /v1/terrareg/modules/infra/storage-s3/aws/1.3.2/import HTTP/1.1" 500 - | terrareg
-- | -- | --
16 April 2026, 19:28 | 18:28:35.777 ERROR Could not download zip file | terrareg
16 April 2026, 19:28 | 18:28:35.777 FATAL Error downloading: Unable to download from https://github.com/opentofu/opentofu/releases/download/v2024.11.0/tofu_2024.11.0_linux_arm64.zip | terrareg
16 April 2026, 19:28 | 18:28:35.590 INFO Installing OpenTofu version "2024.11.0" for "linux_arm64" | terrareg
16 April 2026, 19:28 | 18:28:35.590 INFO Downloading "https://github.com/opentofu/opentofu/releases/download/v2024.11.0/tofu_2024.11.0_linux_arm64.zip" | terrareg
16 April 2026, 19:28 | 18:28:35.590 INFO Downloading to "/root/.terraform.versions/tofu_2024.11.0_linux_arm64.zip" | terrareg
16 April 2026, 19:28 | 18:28:35.569 INFO Reading required version from constraint: ">= 1.11.1" | terrareg
16 April 2026, 19:28 | 18:28:35.569 INFO Matched version: "2024.11.0" | terrareg
16 April 2026, 19:28 | 18:28:35.503 INFO Reading version constraint from Terraform module at "." | terrareg
16 April 2026, 19:28 | ====================================================== | terrareg
16 April 2026, 19:28 | tfsec is joining the Trivy family | terrareg
16 April 2026, 19:28 | tfsec will continue to remain available | terrareg
16 April 2026, 19:28 | for the time being, although our engineering | terrareg
16 April 2026, 19:28 | attention will be directed at Trivy going forward. | terrareg
16 April 2026, 19:28 | You can read more here: | terrareg
16 April 2026, 19:28 | https://github.com/aquasecurity/tfsec/discussions/1994 | terrareg
16 April 2026, 19:28 | ====================================================== | terrareg
16 April 2026, 19:28 | adding: policies_roles.tf (deflated 67%)
I tried with another version but still same problem.
16 April 2026, 19:26 | 18:26:51.509 FATAL Error downloading: Unable to download from https://github.com/opentofu/opentofu/releases/download/v2024.11.0/tofu_2024.11.0_linux_arm64.zip | terrareg
-- | -- | --
16 April 2026, 19:26 | 18:26:51.508 ERROR Could not download zip file | terrareg
16 April 2026, 19:26 | 18:26:51.498 INFO Downloading to "/root/.terraform.versions/tofu_2024.11.0_linux_arm64.zip" | terrareg
16 April 2026, 19:26 | 18:26:51.497 INFO Installing OpenTofu version "2024.11.0" for "linux_arm64" | terrareg
16 April 2026, 19:26 | 18:26:51.497 INFO Downloading "https://github.com/opentofu/opentofu/releases/download/v2024.11.0/tofu_2024.11.0_linux_arm64.zip" | terrareg
16 April 2026, 19:26 | 18:26:51.465 INFO Reading required version from constraint: ">= 1.6.0" | terrareg
16 April 2026, 19:26 | 18:26:51.465 INFO Matched version: "2024.11.0" | terrareg
16 April 2026, 19:26 | 18:26:51.386 INFO Reading version constraint from Terraform module at "."
After reading the code I decided to install tfswitch in my mac and try to run it with the same parameters and it works just fine. I'm now sure if it's a tfswitch problem or how the parameters are passed. I was unable to find where the Matched version: "2024.11.0" came from.
When I run tfswitch version in my mac I get expected behaviour.
export TF_DEFAULT_VERSION=1.11.1
export TF_PRODUCT=opentofu
tfswitch
19:19:45.442 INFO Reading version constraint from Terraform/OpenTofu module at "."
19:19:45.443 WARNING Falling back to install to "/Users/X/bin" directory
19:19:45.444 WARNING Run `export PATH="$PATH:/Users/X/bin"` to append "/Users/X/bin/tofu" to $PATH
19:19:45.444 INFO Switched OpenTofu to version "1.11.1"
Any help would be appreciated
Thanks
Hi 👋 ,
I'm running into couple of problems in trying to implement Terrareg as our internal OpenTofu module solution. After some fight I was able to make the openid work (I'm still unable to make the permissions work with groups though). Also I'm having some problems with the setup of Github authentication but I decided to go simple first and use deploy key.
I'm now successfully pulling the module but I see these errors when trying to publish/import:
Terrareg version:
v4.3.1Platform: Official Docker image:
ghcr.io/matthewjohn/terrareg:v4.3.1I tried with another version but still same problem.
After reading the code I decided to install tfswitch in my mac and try to run it with the same parameters and it works just fine. I'm now sure if it's a tfswitch problem or how the parameters are passed. I was unable to find where the
Matched version: "2024.11.0"came from.When I run tfswitch version in my mac I get expected behaviour.
export TF_DEFAULT_VERSION=1.11.1export TF_PRODUCT=opentofutfswitchAny help would be appreciated
Thanks