Mercurial: Advanced Web Access Access Prevention Acl Example

I can see how you can use the Acl extension to control push / pull to a specific repository by certian users, but can you control the "WEB" access to the repository using Acl Extenstion? I would like some repositories to be displayed only to specific users.

I am deploying on IIS7, so the solution should work in this environment.

+4
source share
2 answers

I assume that you are doing this through the HGWeb CGI script. If so, you can specify allow_push and allow_read in each .hg/hgrc project file. If you specify allow_read other than * , users who are not on the list do not even see the project on the HGWeb project list page.

+3
source

Just use regular .htaccess as fonctionnality to restrict access to the repo. hg is mostly not interested in auth and leaves this on the web server.

0
source

Source: https://habr.com/ru/post/1302415/


All Articles