5

I would like that authenticated users can only:

  • view
  • clone
  • fetch/pull from it?

basically I want prevent users, even authenticated ones, to push to this git repo. But for other git repos on the same GitBlit I may desire to have authenticated users to also push to those repos.

thank you in advance

CharlesB
  • 86,532
  • 28
  • 194
  • 218
Fabio Vitale
  • 2,257
  • 5
  • 28
  • 38

2 Answers2

3

Gitblit 1.2.0, released 2012-12-31, introduced finer-grained permissions which address your exact needs.

The enhanced permissions, however, are still not as flexible as Gitolite which allows per-ref permissions. Gitblit's permissions apply to the repository, not to a particular ref.

CharlesB
  • 86,532
  • 28
  • 194
  • 218
James Moger
  • 1,721
  • 12
  • 12
2

As mentioned in the Gitblit FAQ, the easiest way would be to install in addition of Gitblit a gitolite, which is an authorization layer.

That will allow you to put in place all kind of access restriction, based on user authentication.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • No, this is not an option in my scenario: I choose GitBlit because it strictly follow the KISS principle. While I'm able to install gitolite this is not the route I intend to go: I need a *simple* method of prohibiting uses to push content. Anyway thank you. – Fabio Vitale Oct 21 '12 at 15:32
  • 1
    @Fabio the thing is: authorization management + git + KISS = gitolite. ;-) – VonC Oct 21 '12 at 16:27