Project

General

Profile

Access Control for git Repository

Added by Kai Song over 10 years ago

Hi Redmine Community,

I have set up a redmine server, but I am stuck on setting up the access control for the git repository within redmine. The git repository is accessible in my redmine installation. However, there is no access control on view the source code. Any anonymous user can view it without logging in. My goal is to only let the developers to see the repository.

I was following this instruction:
http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl#Apache-configuration-for-Git-repositories

Basically, it tries to authenticate by using the perl module written for SVN. However, the anonymous user is still able to view source without logging in. I am kind of lost right now. It seems to be straight forward to only allow a particular role of users to view the project repo, but I am not able to set it up. If anyone can shine some lights here, that would be great! Feel free to let me know if you need any additional information.

My current set up: ====================
-bash-4.1$ RAILS_ENV=production script/about

sh: svn: command not found
sh: darcs: command not found
sh: hg: command not found
sh: bzr: command not found
Environment:
Redmine version 2.4.2.stable
Ruby version 2.0.0-p353 (2013-11-22) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter Mysql2
SCM:
Git 1.7.1
Filesystem
Redmine plugins:
no plugin installed ===========================

Thanks in advance!

Kai