jaq
jaq

Reputation: 51

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?

Upvotes: 5

Views: 5967

Answers (2)

Travis Bear
Travis Bear

Reputation: 13859

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

Upvotes: 3

VonC
VonC

Reputation: 1324278

First, you can easily script gitolite in order to add a user to a repo, by modifying the gitolite.conf file and pushing it back.

If you want another system, I only know about gitlab-shell, but it seems quite linked to gitlabhq.

Upvotes: 0

Related Questions