How can I set different permission for different users on accessing svn repository via redmine
Added by jq Wang about 14 years ago
Hi, I have install redmine and svn in the same Debian server. but don't know how to map individual user of redmine to the svn user managed by apache. Is redmine support this kind feature? Currently I using v0.8.5
For example, I have 3 users u1,u2,u3, they can access my svn repository via "https://svn.mysite/my_prj",while they have different permission,say,u1 can access all directory under "https://svn.mysite/my_prj", u2 can only open directory of "https://svn.mysite/my_prj/trunk/module1",u3 can only open "https://svn.mysite/my_prj/trunk/module2". Then I set the repository in redmine to the url "https://svn.mysite/my_prj" and add the redmine user ru1,ru2,ru3. The question is how can config redmine so that if those user browse the svn repo in redmine,they will be limit access as the permission as the directly access svn ? In repsitory setting page there are options that allow you to specify a svn user.that way all the redmine users can access svn as the permission of that user,which is not what i want.
How should I do ? Any reference to go ?
Many thanks.
Replies (6)
RE: How can I set different permission for different users on accessing svn repository via redmine - Added by Felix Schäfer about 14 years ago
That's not possible currently, and there's no easy way I know of to achieve that.
RE: How can I set different permission for different users on accessing svn repository via redmine - Added by Holger Just about 14 years ago
The Repository Controls plugin might do what you want. Note however that it seems kind of old and might not be compatible with current Redmine versions.
RE: How can I set different permission for different users on accessing svn repository via redmine - Added by jq Wang about 14 years ago
Thank you Felix and Holger,
Sounds like I have to remove the permission of browse svn repo totally from those redmine users who are allowed access only certain sub-directory. in this case they can only access svn repo using normal way(via browser or svn client). I do come cross with the plugin you mentioned above. Yes as you said it's seemed old and not some kind native to redmine (it need some kind of perl things, i dont know).
Do you know if the redmine team have any roadmap to this feature ? I love redmine,and very happy with it for the past 2 years. Thank redmine, thank you guys.
RE: How can I set different permission for different users on accessing svn repository via redmine - Added by Felix Schäfer about 14 years ago
jq Wang wrote:
Sounds like I have to remove the permission of browse svn repo totally from those redmine users who are allowed access only certain sub-directory. in this case they can only access svn repo using normal way(via browser or svn client). I do come cross with the plugin you mentioned above. Yes as you said it's seemed old and not some kind native to redmine (it need some kind of perl things, i dont know).
IIRC The plugin requires the authentication and authorization for the svn repositories to be handled by the redmine auth plugin for apache, so yes, you'd need to install it if you don't have already.
Do you know if the redmine team have any roadmap to this feature ? I love redmine,and very happy with it for the past 2 years. Thank redmine, thank you guys.
I don't think it will happen. First thing: svn is the only SCM I know that allows differentiated access to different parts of a repo, and IIRC that also only if served via apache/mod_svn (and maybe the svnserve deamon). Second: Redmine doesn't store user passwords, only hashes, but would need to store the user password in a session or something to be able tu reuse it to authenticate itself as the user against SCMs, and that's not a security risk we're willing to take.
RE: How can I set different permission for different users on accessing svn repository via redmine - Added by Ruslan Batrshyn over 10 years ago
I also need different permission to different svn repository's folders.
Is it any way adapt Repository Controls plugin to new Redmine version?
Maybe have other way to set different permissions to different folders?
RE: How can I set different permission for different users on accessing svn repository via redmine - Added by keineahnung 2345 over 1 year ago
Hi,
I've developed a plugin to allow you to control repositories' accessibility of each member of the project. Feel free to create issue or pull request there!