AuthenticatingHg » History » Version 10

Chris Cannam, 2010-08-04 10:55 AM

1 2 Chris Cannam
h2. Authentication for Mercurial activity
2 2 Chris Cannam
3 2 Chris Cannam
h3. Requirements
4 2 Chris Cannam
5 2 Chris Cannam
# *Clone/pull from repo for public project*: Any user, no authentication required
6 4 Chris Cannam
# *Clone/pull from repo for private project*: Permitted users only
7 4 Chris Cannam
# *Push to repo for public project*: Permitted users only
8 4 Chris Cannam
# *Push to repo for private project*: Permitted users only
9 10 Chris Cannam
# *Create repo for public project: User with manager role on project
10 1 Chris Cannam
11 10 Chris Cannam
What constitutes a permitted user for limited push or pull activity?
12 4 Chris Cannam
13 4 Chris Cannam
* A user who is a member of the project?
14 4 Chris Cannam
* A user who is identified in the [web] section of the repository?
15 4 Chris Cannam
* A user who is both a member and identified in the [web] section?
16 4 Chris Cannam
* A user who is either a member or identified in the [web] section?
17 4 Chris Cannam
* A user who is identified in the [web] section, if any, or is a member if there is no such section?
18 5 Chris Cannam
19 5 Chris Cannam
h3. Techniques
20 1 Chris Cannam
21 10 Chris Cannam
* Hg repository creation using "reposman.rb":http://temporary.lividcity.com/projects/soundsoftware-site/repository/entry/extra/svn/reposman.rb
22 5 Chris Cannam
* Apache authentication against Redmine user database using mod_auth_mysql (no support for LDAP-authenticated users?)
23 9 Chris Cannam
* Apache authentication against Redmine users using "the mod_perl module Redmine.pm":http://redmine.rubyforge.org/svn/trunk/extra/svn/Redmine.pm ("local copy":http://temporary.lividcity.com/projects/soundsoftware-site/repository/entry/extra/svn/Redmine.pm) or a variant thereof (Redmine.pm was designed for SVN access via WebDAV)?
24 8 Chris Cannam
* Hg repository [web]-section authorisation using "hgwebdir.cgi":http://mercurial.selenic.com/wiki/PublishingRepositories#Setting_up_the_hgweb.cgi_script
25 7 Chris Cannam
26 7 Chris Cannam
Other links on this subject:
27 7 Chris Cannam
28 8 Chris Cannam
* "Separation between authentication and authorisation activities":http://markmail.org/message/xmav6qg3is3xptve#query:+page:1+mid:xmav6qg3is3xptve+state:results
29 8 Chris Cannam
* "hgrc [web] section":http://www.selenic.com/mercurial/hgrc.5.html#web
30 8 Chris Cannam
* "Using mod_auth_mysql to authenticate against the Redmine database directly":http://maff.ailoo.net/2009/03/authenticate-apache-against-redmine-with-authmysql/