Git development
 help / color / mirror / Atom feed
* Untrusted Caching Proxy
@ 2026-03-09 15:28 Skye Soss
  0 siblings, 0 replies; only message in thread
From: Skye Soss @ 2026-03-09 15:28 UTC (permalink / raw)
  To: git

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-09 15:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09 15:28 Untrusted Caching Proxy Skye Soss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox