How to limit users in getting access to the entire Repository [message #730814] |
Thu, 29 September 2011 04:49  |
Eclipse User |
|
|
|
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 04:51] by Moderator
|
|
|
|
Re: How to limit users in getting access to the entire Repository [message #730975 is a reply to message #730814] |
Thu, 29 September 2011 12:10  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05813 seconds