perkeep/misc/buildbot
Bill Thiede 738783ebf4 buildbot/master: add Basic Auth support.
Moved BasicAuth parsing and localhost detection code from pkg/auth ->
pkg/httputil for use by buildbot master.

Added user config file for remote access.  The file's name is
"masterbot-config.json" and is located in osutil.CamliConfigDir(),
which on Unix will resolve to $XDG_CONFIG_HOME/camlistore/, if
XDG_CONFIG_HOME set, or ~/.config/camlistore/.  On Windows it will be
under %APPDATA%\Camlistore\.  The expected format is a json object
with usernames as the keys and sha1 sums of the password as the
values, i.e.:

    {
        "user1": "1234567890abcdef12341234567890abcdef1234",
        "user2": "1234abcdef12345678901234abcdef1234567890"
    }

This file is polled at a 1 minute interval and reparsed if the file's
modification time is more recent then the previous parse attempt.  It
is ok for the file to go missing, it will zero out the remote user
list. A malformed file will result in the master exiting.

New commandline flags, -tlsCertFile & -tlsKeyFile, added.  Specifying
both will enable TLS on the listener specified by -host.  The go
source contains generate_cert.go in crypto/tls that can be used to
generate self-signed cert.pem and key.pem for testing.

Added -skiptlscheck commandline option to builder.  This allows the
builder to report to https:// addresses with self-signed certs as we
don't currently have a way to specify the cert chains to be used
for TLS verification.  This is a stop-gap solution.

When launching a master that listens for secure connections, we
currently need tell the builders to skip certificate validation. Add
'-builderopts="-skiptlscheck"' to the master's commandline to skip
cerfication verification.

Change-Id: I0750b5c9fa8f4def67fc05a841087b50abded2f7
2013-11-21 21:22:12 -08:00
..
builder buildbot/master: add Basic Auth support. 2013-11-21 21:22:12 -08:00
master buildbot/master: add Basic Auth support. 2013-11-21 21:22:12 -08:00
README misc/buildbot: a few fixes + README 2013-10-25 01:29:36 +02:00

README

Running:

mkdir ~/buildbot
cp master/master.go ~/buildbot/
cd ~/builbot
go build -o master master.go
./master -verbose -builderopts -verbose=true

Hacking:

mkdir ~/buildbot
cp master/master.go ~/buildbot/
cp builder/builder.go ~/buildbot/
cd ~/builbot
go build -o master master.go
#hack on builder.go
./master -verbose -buildersrc ./builder.go -builderopts -verbose=true,-skipgo1build=true,-faketests=true