Is there a rock-solid git server that I can use on a home server for versioned immutable backups of misc. files on personal devices (e.g., account config), as well as private software development git repos? (I've done a cheaper version of this -- except for the immutable part, and the separation of accounts between devices -- in the past using SSH+SVN to a home server, and it was great.) I was thinking immutable from…
How Git servers work, and how to keep yours secure
11–20 of 51 posts
Re: How Git servers work, and how to keep yours secure
#12Is there a rock-solid git server that I can use on a home server for versioned immutable backups of misc. files on personal devices (e.g., account config), as well as private software development git repos? (I've done a cheaper version of this -- except for the immutable part, and the separation of accounts between devices -- in the past using SSH+SVN to a home server, and it was great.) I was thinking immutable from…
Re: How Git servers work, and how to keep yours secure
#13Earlier quoted context omitted.
We use Gitea (a Gogs fork) for our company and it works great :)
What CI runner ?
Re: How Git servers work, and how to keep yours secure
#14Is there a rock-solid git server that I can use on a home server for versioned immutable backups of misc. files on personal devices (e.g., account config), as well as private software development git repos? (I've done a cheaper version of this -- except for the immutable part, and the separation of accounts between devices -- in the past using SSH+SVN to a home server, and it was great.) I was thinking immutable from…
But considering the case of a malicious got contributer, access to any of my devices and ssh keys is already a wayyy bigger issue to begin with, and likely entails restoring the rest of the system to a known-secure state due the sheer number of files an intruder could have tampered with outside of version-controlled directories.
Re: How Git servers work, and how to keep yours secure
#15Is there a rock-solid git server that I can use on a home server for versioned immutable backups of misc. files on personal devices (e.g., account config), as well as private software development git repos? (I've done a cheaper version of this -- except for the immutable part, and the separation of accounts between devices -- in the past using SSH+SVN to a home server, and it was great.) I was thinking immutable from…
Any sort of backup of the git repo would also achieve the same thing.
If you are super paranoid, you could also do git over email ala the linux kernel on sensitive repos and only apply trusted patches yourself.
Re: How Git servers work, and how to keep yours secure
#16Is there a rock-solid git server that I can use on a home server for versioned immutable backups of misc. files on personal devices (e.g., account config), as well as private software development git repos? (I've done a cheaper version of this -- except for the immutable part, and the separation of accounts between devices -- in the past using SSH+SVN to a home server, and it was great.) I was thinking immutable from…
A few things ...
First, 'git' is built into the rsync.net platform and you can do anything you like with it, remotely, over ssh:
ssh user@rsync.net "git clone git://github.com/freebsd/freebsd.git freebsd"
I personally track a number of repos I consider important and keep my own source trees up to date without running git locally.Second, the ZFS snapshots that are taken, nightly, of your entire rsync.net account are immutable (read-only) so if you clone/update your git repos into your account, they are protected from ransomeware/mallory.
Third, we finally have LFS / git-lfs support which pleases me greatly.
Re: How Git servers work, and how to keep yours secure
#17Earlier quoted context omitted.
What CI runner ?
Not OP, but we use Drone[ https://www.drone.io/ ] with Gitea[ https://gitea.io/en-us/ ]
Re: How Git servers work, and how to keep yours secure
#18I know git is distributed by design. So if I want to push code to a pair of servers for better availability, I can do it explicitly:
git push
git push
But what if I wanted to make this transparent but still highly available, such that the remote URL in git push
is actually backed by a HA cluster?Some of the software and ops to make this happen is Github's secret sauce. I'm not looking to compete with them, but would love an open source solution that had a better uptime than a single digital ocean droplet running debian. Ideally, I could get there without green-fielding raft consensus shims into a modified git binary.
Re: How Git servers work, and how to keep yours secure
#19I like self hosting git but these tutorials set you up with only a one-machine solution. I'd like to be able to self-host a git service that's robust in the face of network/hardware/OS maintenance. I know git is distributed by design. So if I want to push code to a pair of servers for better availability, I can do it explicitly: git push git push But what if I wanted to make this transparent but still highly availabl…
git remote set-url --add origin $second_url
Not quite HA cluster levels of redundancy, but it's also way simpler to set up.Re: How Git servers work, and how to keep yours secure
#20The article makes the presumptions that one would be running Arch on a server and that you must be using nginx as a web server. The latter half of that is particularly striking to me, given that he immediately dives into a shortcoming of nginx... rather than reaching for Apache, he works around nginx's shortcoming.