From: cjmarkie Date: Sat, 25 Oct 2025 13:24:47 +0000 (+0000) Subject: Initiate request for request redirection X-Git-Tag: archive/raspbian/10.20251029-1+rpi1~1^2~3^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=293339e1fc4a826380e9e69e3107d903c771af45;p=git-annex.git Initiate request for request redirection --- diff --git a/doc/todo/Special_remote_redirect_to_URL.mdwn b/doc/todo/Special_remote_redirect_to_URL.mdwn new file mode 100644 index 0000000000..1407702620 --- /dev/null +++ b/doc/todo/Special_remote_redirect_to_URL.mdwn @@ -0,0 +1,15 @@ +The [external special remote protocol](/design/external_special_remote_protocol/) allows the following responses to `TRANSFER RETRIEVE {key} {file}`: + +* `TRANSFER-SUCCESS RETRIEVE {key}` +* `TRANSFER-FAILURE RETRIEVE {key} {message}` + +I propose a third response: `TRANSFER-REDIRECT RETRIEVE {key} {url}` + +This will permit the following use cases: + +1) Make a request against an authentication server that provides a short-lived access token to the same or a different server. The authentication server does not need to relay the data. +2) Deterministically calculate a remote URL (or local path) without reimplementing HTTP fetch logic, taking advantage of the testing and security hardening of the git-annex implementation. + + +[[!meta author=cjmarkie]] +[[!tag projects/openneuro]]