Self-hosting a Terraform provider registry, not just a module one
You built an internal provider, or you need to mirror one privately, and you’ve hit the wall that most OSS registries and half the guides online are modules-only. Providers are the harder half of the protocol and the half that gets skipped. This page covers how to host them.
Why providers are harder
A module is text you tar up. A provider is compiled binaries, one per platform, each checksummed, with the checksums GPG-signed by a key Terraform trusts. The registry serves the correct binary for the caller’s platform, the SHA256SUMS file and its signature, and Terraform verifies the checksum and the signature before it installs. Get the signing wrong and nothing fails loudly at publish. It fails at install time on someone else’s machine.
Where static hosting stops working
For a single provider the simple option is fine. A filesystem mirror, or an S3 bucket of binaries plus a discovery document, will serve a provider, and if that’s all you need, do that. It covers the happy path: one provider, served to people who already trust the key, on a fixed set of platforms you build by hand, for one team. What it doesn’t give you starts to matter at the second team and the second provider:
- Signing-key management is entirely your problem.
- No access control on who can pull which provider.
- No versioned discovery, so constraints don’t resolve.
- No audit of who published or consumed what.
Which open-source registries do providers
Not all of them. Several well-known OSS registries are modules-only. Terralist and Terrakube both handle providers as well as modules, with different trade-offs and different maintenance stories. If a supported product isn’t where you want to spend, the OSS registry review compares them on scope, auth, storage and how alive each project is, with GitHub activity and dates.
Publishing a signed provider, or mirroring one
Terramantle serves the provider protocol for providers you publish and for upstream providers you mirror behind your own registry: the per-platform binaries, the SHA256SUMS, the signature, versioned discovery and access control, all behind your authentication. Publishing over OIDC means no long-lived registry token, the same keyless flow that works for modules. The build-and-sign-for-you pipeline, where you hand over source and get a signed provider back, is being rolled out carefully and isn’t generally available yet, so treat that part as coming soon.
Provider registry FAQ
Why is hosting a provider harder than hosting a module?
A module is a tarball of text. A provider is a set of compiled binaries, one per OS and architecture, and the registry has to serve the right one for the caller’s platform, along with a SHA256SUMS file and a GPG signature from a key Terraform trusts. Terraform verifies all of that before it installs anything, so the protocol is stricter and there’s cryptography in the path.
Can I just put provider binaries in an S3 bucket?
You can, and a filesystem or network mirror works for the simple case. What you lose is what the registry protocol gives you: signing-key management becomes your problem, nothing controls who pulls what, and there’s no versioned discovery, so consumers can’t ask for a version constraint and get the right build. It holds up until you have more than one team or more than one provider.
Does Terramantle build providers for me?
Serving and mirroring providers is available today: publish a signed provider and Terramantle serves the protocol for it, or mirror upstream providers behind your own registry. The build-and-sign-it-for-you pipeline, where you hand over source and get a signed provider back, is being rolled out carefully and isn’t generally available yet. I’d rather gate that than ship an unproven path for something that signs binaries.
Does it work with OpenTofu providers?
Yes. The provider protocol is shared, and Terramantle recognises both the Terraform and OpenTofu upstream registries, so an OpenTofu-first workspace resolves providers from the OpenTofu registry rather than being routed through the Terraform one. See the OpenTofu page for how the two engines are treated as equals.
Host the harder half of the protocol.
Terramantle serves modules and providers, self-hosted or cloud. If you built an internal provider and hit the modules-only wall, this is a way past it.
Last reviewed
Terramantle is a private Terraform and OpenTofu registry. See pricing or read the FAQ.