Page MenuHomePhabricator

Implement "git-lfs-authenticate" over SSH
ClosedPublic

Authored by epriestley on Mar 16 2016, 2:51 PM.
Tags
None
Referenced Files
F18773058: D15482.diff
Thu, Oct 9, 6:49 AM
F18702385: D15482.id.diff
Sat, Sep 27, 11:56 PM
F18691074: D15482.diff
Fri, Sep 26, 8:42 PM
F18681069: D15482.id37308.diff
Fri, Sep 26, 3:46 AM
F18623721: D15482.diff
Sep 15 2025, 5:19 PM
F18623718: D15482.diff
Sep 15 2025, 5:15 PM
F18507354: D15482.id.diff
Sep 5 2025, 2:08 AM
F18238668: D15482.id.diff
Aug 20 2025, 10:45 PM
Subscribers
None

Details

Summary

Ref T7789. This implements a (probably) usable "git-lfs-authenticate" on top of the new temporary token infrastructure.

This won't actually do anything yet, since nothing reads the tokens.

Test Plan
$ ./bin/ssh-exec --phabricator-ssh-user admin --ssh-command 'git-lfs-authenticate'
phabricator-ssh-exec: Expected `git-lfs-authenticate <path> <operation>`, but received too few arguments.
$ ./bin/ssh-exec --phabricator-ssh-user admin --ssh-command 'git-lfs-authenticate x'
phabricator-ssh-exec: Unrecognized repository path "x". Expected a path like "/diffusion/X/" or "/diffusion/123/".
$ ./bin/ssh-exec --phabricator-ssh-user admin --ssh-command 'git-lfs-authenticate diffusion/22'
Exception: Expected `git-lfs-authenticate <path> <operation>`, but received too few arguments.
$ ./bin/ssh-exec --phabricator-ssh-user admin --ssh-command 'git-lfs-authenticate diffusion/22 y'
Exception: Git LFS operation "y" is not supported by this server.
$ ./bin/ssh-exec --phabricator-ssh-user admin --ssh-command 'git-lfs-authenticate diffusion/22 upload'
{"header":{"Authorization":"Basic QGdpdC1sZnM6NmR2bDVreWVsaXNuMmtnNXBtbnZwM3VlaWhubmI1bmI="},"href":"http:\/\/local.phacility.com\/diffusion\/22\/new-callsign-free-repository.git\/info\/lfs"}

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Implement "git-lfs-authenticate" over SSH.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Mar 16 2016, 6:16 PM
This revision was automatically updated to reflect the committed changes.