lfs-test-server icon indicating copy to clipboard operation
lfs-test-server copied to clipboard

cmdline: add basic cmdline interface to at least look up objects by id

Open gebi opened this issue 2 years ago • 2 comments

we needed some way to quickly inspect boltdb for some oid's, and added some very hacky cmdline interface to look them up.

it's really only a quick hack, but nice to not need a browser and additional accesses that might not be available in prod.

example usage:

% . /etc/default/lfs-foo    # to source all variables from prod instance
% ./lfs-test-server cmd 7c9414fe21ad7b45ffb6e72da86f9a9e13dbb2971365ae7bcb8cc7fbbba7419c
&{Oid:7c9414fe21ad7b45ffb6e72da86f9a9e13dbb2971365ae7bcb8cc7fbbba7419c Size:3334144 Existing:false}

gebi avatar Oct 31 '23 15:10 gebi

sure, np @chrisd8088 we might also want to add at least some kind of multiplexing to not need backwards incompatible changes in the future when more small helper cmds are added in the future.

btw... one question, sry unrelated, we wrote some gitolite integration for lfs-test-server which basically does auth via ssh get's back a jwt which is then accepted by our fork of lfs-test-server as authentication via https, and it's serving hundrets of TB of traffic per month without issues, would you be interesting if we submit that? (basically https://github.com/git-lfs/lfs-test-server/compare/main...mgit-at:lfs-test-server:master), we would for sure add some cleanup / tidy / docs before submitting (and updating it to the latest version).

gebi avatar Nov 02 '23 12:11 gebi

btw... one question, sry unrelated, we wrote some gitolite integration for lfs-test-server which basically does auth via ssh get's back a jwt which is then accepted by our fork of lfs-test-server as authentication via https, and it's serving hundrets of TB of traffic per month without issues, would you be interesting if we submit that?

I think it's fair to say that we're always interested in contributions from the community! Thanks for offering to put something together!

I can't guarantee in advance that we'd accept any particular PR or part thereof, but adding some SSH support in the test server is likely a good thing overall, so I'm sure we'd be interested in taking a look.

chrisd8088 avatar Nov 06 '23 19:11 chrisd8088

added documentation about the cmdline oid lookup feature

gebi avatar Mar 22 '24 16:03 gebi