When proxying an upload to a special remote, verify the hash.
authorJoey Hess <joeyh@joeyh.name>
Mon, 29 Jul 2024 17:39:28 +0000 (13:39 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 29 Jul 2024 17:40:51 +0000 (13:40 -0400)
commitfcc052bed81dac5a7664b815e3a3cf1ffb1b1659
tree11336e1830a0adfc39e5fae0b652cb8e5fa294e4
parent960daf210b0961f1f1706de43b06cefa4a8a616b
When proxying an upload to a special remote, verify the hash.

While usually uploading to a special remote does not verify the content,
the content in a repository is assumed to be valid, and there is no trust
boundary. But with a proxied special remote, there may be users who are
allowed to store objects, but are not really trusted.

Another way to look at this is it's the equivilant of git-annex-shell
checking the hash of received data, which it does (see StoreContent
implementation).
Annex/Proxy.hs
Annex/Verify.hs
CHANGELOG
doc/todo/git-annex_proxies.mdwn