We use gitolite's ACL mechanism to control who has access to different repositories. We also use CGIT with Apache httpd to allow browsing of readable repositories.
We'd like to also use the gitolite ACLs in the Apache httpd access control system.
Is there an Apache httpd authn/authz module that provides this functionality?
Thanks!
I have integrated CGit and gitolite a while ago with this cgi Perl script, calling gitolite:
cgit/cgit.pl.tpl
.(don't mind the
@H@
, those are template placeholder that are supposed to be valued later in order to produce the actual Perl script)The idea is to benefit from the authentication done by Apache:
And to use that user when calling Gitolite to check if the access to a repo can be granted, calling the actual
cgit.cgi
C procedure if the access is granted: