I’m attempting to upload my first provider to the private registry for my org. I’m following this tutorial: Publish private providers to the HCP Terraform private registry | Terraform | HashiCorp Developer. No matter what I try, I’m unable to upload the SHA256 files (both the SHA256SUMS and SHA256SUMS.sig). I keep getting a 400 Bad request with zero additional information both in the response body and headers regarding what is wrong.
Here is what I’ve done:
Using Kleopatra (GPG client for Windows), I generated a key and successfully upload it via the API
I’ve created the provider via the API
I’ve created the release via the API
Using goreleaser, I’ve built and signed the provider using the fingerprint of the key I generated. I even when ahead and changed the thumbprint and it would not sign because the key could not be found; so the key it’s using is correct.
I’m using the URLs to upload the files from the response of the version creation request. I even called the API to GET the version and verified the URLs.
At this point, I have no clue what is wrong. The keys are there, the files are there, I’m using the tools the tutorial says to use.
Any thoughts or hints on what I’m doing wrong? Google has turned up very little.
TIA,
Matt