Access control with Git on the server (not gitoz or gitolit)

I am trying to configure access control only on a repo (with three access rights without access, read only, read / write). I have an external application that controls it, which makes admin git repos synchronization (for example, what gitoz and gitolit provide) is impractical.

That would work perfectly, this is a setting that will allow me to simply call system commands to provide access to users (ssh keys), create repositories and delete repositories. eg:

git-acl grant R user1.pub /path/to/repo.git- Provides access for user1 access to repo git-acl grant RE user2.pub /path/to/repo.git- Provides read / write access for user2 on repo git-acl create /path/to/repo2.git- creates repo

etc...

Does anyone know about such a tool?

+5
source share
2 answers

It seems that basic ssh and file system access control are the traditional way to accomplish what you are asking for.

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

+3
source

Firstly, you can easily add a user to the repo gitolite script by modifying the file gitolite.confand returning it back.

If you want a different system, I only know about gitlab-shell , but it seems to be related to gitlabhq .

0
source

All Articles