git-annex-shell: proxy nodes located beyond remote cluster gateways
Walking a tightrope between security and convenience here, because git-annex-shell needs to only proxy for things when there has been an explicit, local action to configure them. In this case, the user has to have run `git-annex extendcluster`, which now sets annex-cluster-gateway on the remote. Note that any repositories that the gateway is recorded to proxy for will be proxied onward. This is not limited to cluster nodes, because checking the node log would not add any security; someone could add any uuid to it. The gateway of course then does its own checking to determine if it will allow proxying for the remote.
This commit is contained in:
parent
1ec2fecf3f
commit
07e899c9d3
10 changed files with 90 additions and 44 deletions
|
@ -65,6 +65,6 @@ gitRepoInfo r = do
|
|||
return
|
||||
[ ("repository location", Git.repoLocation repo)
|
||||
, ("proxied", Git.Config.boolConfig
|
||||
(remoteAnnexProxied (Remote.gitconfig r)))
|
||||
(isJust (remoteAnnexProxiedBy (Remote.gitconfig r))))
|
||||
, ("last synced", lastsynctime)
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue