Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How to limit users in getting access to the entire Repository
How to limit users in getting access to the entire Repository [message #730814] Thu, 29 September 2011 08:49 Go to next message
karthikeya is currently offline karthikeyaFriend
Messages: 4
Registered: August 2011
Location: Bengaluru
Junior Member
Hello,

Just like in MKS and in other SCM's can I limit some of the users from accessing the part of the git repository..?For Example..

There are two teams working on 'X' Repository which has files of both Teams.The work(files)of Team1 can be accessed by Team2.But Team-02 work(files)should not be accessed by Team-01.How to limit Team-01 from accessing the Team-02 files...?

If anyone worked on this,Please help me...

Thanks in Advance..
Karthikeya

[Updated on: Thu, 29 September 2011 08:51]

Report message to a moderator

Re: How to limit users in getting access to the entire Repository [message #730866 is a reply to message #730814] Thu, 29 September 2011 12:12 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel DoningerFriend
Messages: 119
Registered: October 2010
Senior Member
Git itself doesn't support authentication or authorization. There are several tools, which you can use, e.g. Gitolite, Gerrit. But these tools don't work on a file basis, the smallest unit you can restrict are references. But anyway, it doesn't make sense to me to have that files in one repository, if they aren't used by both teams. The easier way would be to split that repository for each team.
Re: How to limit users in getting access to the entire Repository [message #730975 is a reply to message #730814] Thu, 29 September 2011 16:10 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
karthikeya skrev 2011-09-29 10.49:
> Hello,
>
> Just like in MKS and in other SCM's can I limit some of the users in
> accessing the part of the repository..?For Example..
>
> There are two teams working on 'X' Repository which has files of both
> Teams.The work(files)of Team1 can be accessed by Team2.But Team-02
> work(files)should not be accessed by Team-01.How to limit Team-01 in
> accessing the Team-02 files...?
> If anyone worked on this,Please help me...

Split the repos. I don't think there is a reasonable way of
accomplishing this within one repo. If you have access to a repo, you
can read all of it. I doubt ACL's on the path level will ever get into
the any Git implementation.

Some solutions of splitting would probably involve submodules, as that
allow you to retain the hierarchy of "X". EGit currently does not
support submodule, but the good news is that there are patches in
Gerrit. Since 1.1 we do not not yet support, but can "live" with
submodules. I.e. you have to use C Git for submodule operations and for
operations of some submodules. Some layouts would probably allow you to
do almost all work within EGit.

Other solutions would involve symbolic links, not yet supported in EGit
and farther away since Java has symlink support only from Java 7.

As for write access checks only, you can use hooks on the server that
receive pushes to block changes that do not fulfill certain constraints
(the hooks can check anything).

-- robin
Previous Topic:EGit checkout changes file permissions
Next Topic:Some general status questions
Goto Forum:
  


Current Time: Sat Jun 15 21:16:08 GMT 2019

Powered by FUDForum. Page generated in 0.02193 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top