Note that there are some explanatory texts on larger screens.

plurals
  1. POOnly show GIT repo's to which user has access with gitweb
    primarykey
    data
    text
    <p>I currently am experimenting with setting up a GIT repository server so we can switch from SVN to GIT. I've got almost everything covered, but am left with an issue.</p> <p>The current setup is as follows:</p> <ul> <li>All developers (and non-developers) have a user accounts &amp; correct groups because the server is a NIS client</li> <li>All repos are made in /var/git/</li> <li>All pulling/pushing is done over ssh</li> </ul> <p>This works perfectly so far, and eliminates the need for gitosis or gitolite.</p> <p>Because I would like to have a browsable overview of the repositories I've set up gitweb including pathinfo. Because the repos are private I've set up authentication through Perl AuthenNIS and this works, but here I encounter a problem.</p> <p>It is undesired that all developers have access to all repositories, but gitweb just shows every repository it (the apache user) can read. </p> <p>So my question is: <strong>is it possible to make gitweb only show the GIT repo's the currently logged in user has access to?</strong></p> <p><em>Possible solutions</em>:</p> <ol> <li>Further access control through .htaccess. The pathinfo would enable this but it wouldn't prevent the repo's from being accessed through non-pathinfo URLs (e.g. /repo.git/ wouldn't work but /gitweb.cgi?p=repo.git would)</li> <li>Setting up a full gitosis/gitolite environment and integrating it into gitweb (essentially <a href="https://stackoverflow.com/questions/2052608/authenticating-gitweb-with-gitosis-without-ldap-auth">this</a>). I would like to prevent this because the overhead is undesirable</li> <li>Making gitweb run as the authenticated HTTP user. This would fix all the access control problems but I don't know how to do this</li> <li>gitweb's <code>$export_auth_hook</code> in combination with <code>$cgi-&gt;remote_user</code> seems promising, but my understanding of perl is too limited to use it (the hook would need to verify that the user has permission to access the repo directory before showing/exporting it)</li> </ol> <p>Is there anyone who knows how to make 3 or 4 work or has another solution?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload