an ssh based multitenant git host
MIT License
This is the source for https://gitern.com ... in summary it's
I'm sharing it hoping it might be able to help someone build a git host on nostr. This isn't particularly relevant to be honest but does
I will one day describe more about how it works (especially if someone bothers to ask), but this gist is:
As a starting point, this is where auth begins (this is from the sshd config):
Match User git
AuthorizedKeysCommand /usr/bin/gitern-authorized-keys %f %t %k
AuthorizedKeysCommandUser authorized-keys-command
ForceCommand gitern-intake
AcceptEnv none
ChrootDirectory /jail
They then get forced through gitern-intake
whose source is /cmd/intake/intake.go
.
That should be enough for someone curious to start. Huzzah!
I also wrote a remote helper for gitern that end to end encrypts git repos: https://github.com/huumn/git-remote-gitern ... It's pretty inefficient and naive but it kind of shows how you might do something really freaking weird with git that runs exclusively on the client (no special git server required).