From: Skye Soss <skye@soss.website>
To: "git" <git@vger.kernel.org>
Subject: Untrusted Caching Proxy
Date: Mon, 09 Mar 2026 10:28:12 -0500 [thread overview]
Message-ID: <19cd33688a6.751eda7b902789.7603636968050846540@soss.website> (raw)
In-Reply-To:
Git can use http or ssh proxies to access remotes. This can be useful for companies that have their own private repository mirrors. But because this form of proxy rewrites the url, the client must completely trust the proxy.
I propose a configuration that would work differently: a client would still connect to the real remote for metadata, but before downloading data would attempt to query a read-only cache. Any downloaded data will be validated to prevent spoofing, and if the cache does not make the data available the client will fall-back to the remote.
The intended use case is for a simple per-site cache, similar to apt’s DNS-SD caching (but opt-in). This is to easily enable “good internet citizenship” by allowing networks to cache cloned repositories without needing the trust model of remote rewriting. While git was never designed to be used as a CDN it unfortunately is very common.
Is this a feasible feature for git? Or are there aspects of the git internals that make this complicated.
reply other threads:[~2026-03-09 15:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19cd33688a6.751eda7b902789.7603636968050846540@soss.website \
--to=skye@soss.website \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox