Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access control with Git on the server (not gitosis or gitolite)

I am trying to set up access control per repo only (with the three permissions no-access, read-only, read/write). I am having an external application control it, which makes syncing admin git repos (such as what gitosis and gitolite provide) not practical.

What would work perfectly is a setup that would allow me to simply call system commands to grant users (ssh keys) access, create repos, and delete repos. for example:

git-acl grant R user1.pub /path/to/repo.git - Grants user1 read-only access on the repo git-acl grant RE user2.pub /path/to/repo.git - Grants user2 read/write access on the repo git-acl create /path/to/repo2.git - Creates repo

etc...

Does anyone know of a tool like this?

like image 898
jaq Avatar asked Oct 21 '22 11:10

jaq


1 Answers

It seems like basic ssh and file-system access control is the traditional way to accomplish what you are asking.

See https://wincent.com/wiki/Git_repository_access_control

like image 113
Travis Bear Avatar answered Oct 29 '22 17:10

Travis Bear