Repository navigation
Conversation
RustyRien
force-pushed
the
tf_proxy
branch
2 times, most recently
from
November 13, 2026 17:25
ac80792 to
f8b50cb
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provider proxy: caching proxy for OpenTofu/Terraform providers
Every task runs
tofu initin a new workspace, and on-demand workers start with an empty plugin cache, so the same providers are downloaded over and over. This adds a small caching proxy that downloads each provider version once and serves it to all workers.Changes
provider-proxy/: a standalone app that doesn't depend on InfraKitchen (no database, no shared code). It implements the provider network mirror protocol and stores files on disk. If a file exists it is served; otherwise it is fetched from the registry, saved, then served. Zips are checked against the registryshasum. Includes tests and a README.TF_PROVIDER_MIRROR_URLsetting, off by default. When set, each task writes a CLI config (TF_CLI_CONFIG_FILE) that installsregistry.opentofu.organdregistry.terraform.ioproviders through the proxy. Providers from other registries are installed directly. ATF_CLI_CONFIG_FILEalready in the task env is kept.SSL_CERT_FILE/SSL_CERT_DIRare passed to tofu, so workers can trust the proxy's internal CA. tofu accepts only HTTPS mirrors.nix developruns the proxy onhttps://localhost:8090with a self-signed certificate. SetPROVIDER_PROXY_PORT=0to turn it off.Notes
initfails while the proxy is down.