perkeep/misc
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
..
buildbot buildbot/master: add Basic Auth support. 2013-11-21 21:22:12 -08:00
old-devscripts Move old broken dev-* scripts away. 2012-10-19 13:38:55 -07:00
commit-msg.githook Rewrite misc/review in Perl for portability. 2011-07-08 15:34:06 -07:00
copyrightifity Slap on copyright headers; java + aidl. 2011-01-27 23:10:13 -08:00
devlib.pl dev-camput, dev-camget: options to make demos better 2013-07-29 10:15:59 -07:00
gitversion buildinfo: include dirty + flag in version 2013-02-03 10:14:21 -08:00
pre-commit.githook pre-commit hook: gofmt files from git index rather than working directory. 2013-10-23 22:36:16 +01:00
release-history-tags Add 0.5 to misc/release-history-tags 2013-09-21 19:57:49 +01:00
review Updating website for new git & Gerrit location. 2013-08-14 10:35:33 -07:00
testfile Fixed site config. 2011-11-30 15:37:39 -08:00