|
|||||
|
|||||
Security and Access Control
h3 Overview h3 How to set up an authenticating Apache proxy h4 Restricting direct access to DamageControl Your startup script should look something like: server = DamageControlServer.new( :RootDir => buildRoot, :HttpPort => 4712, :HttpsPort => 4713, :AllowIPs => [ "127.0.0.1", "64.7.141.17" ] ) That is, :AllowIPs will allow requests from 127.0.0.1 and from where the SCM runs 64.7.141.17. h4 Configure Apache to proxy requests to ProxyRequests off ProxyPass /private http://localhost:4712/private ProxyPassReverse /private http://localhost:4712/private ProxyPass /public http://localhost:4712/public ProxyPassReverse /public http://localhost:4712/public <Directory private:*> AuthType Digest AuthName damagecontrol AuthDigestFile /home/services/dcontrol/passwd AuthGroupFile /home/services/dcontrol/groups Require group admin </Directory> The Authxxxx stuff and the actual URLs in ProxyPass can of course be tuned to your liking (DamageControl only uses relative URLs internally). h4 Allowing access to your trigger If you run the SCM on the same server as DamageControl then just point the trigger to http://localhost:4712/private/xmlrpc and you are done. If the SCM is running on a different server you need to allow access from that server directly to DamageControl and then point the trigger directly towards DamageControl, ie. http://DAMAGECONTROL SERVER HOST:4712/private/xmlrpc. You do this by adding the IP address of your SCM server to the :AllowIPs setting. h4 Blocking access to DamageControl using a firewall |
|||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||