featurebase/server
Matt Jaffee 2651bfbd88
test and fix authentication of client certs btwn cluster nodes
This change should have been adding the "GetClientCertificate"
function in server/tlsconfig.go. This is in addition to the
GetCertificate func which is only used by servers. It ended up being
much more involved for a few reasons:

1. We had no way of passing a configured HTTP client into the
translate store stuff.

2. Our cluster tests assumed http, not HTTPS, and didn't have any way
to pass the necessary configuration in.

3. I encountered what turned out to be an unrelated bug in
cmd/server_test.go which is why I moved "close(m.Started)" in
server/server.go. Basically, I was running something on port 10111
which caused the test to fail (because it was trying to bind to that),
but the failure was not immediately caught during server startup
because the m.Started channel got closed which allowed the test code
to fall through to where it called m.Close() which then got a nil
pointer exception because m.Handler had never been set up.

4. Our test code was assuming that it could create clients that
ignored the config, which meant they didn't do TLS. I added an
InternalClient() method to pilosa.Server to expose the configured
client.
2019-10-18 15:17:35 -05:00
..
testdata/certs test and fix authentication of client certs btwn cluster nodes 2019-10-18 15:17:35 -05:00
cluster_test.go test and fix authentication of client certs btwn cluster nodes 2019-10-18 15:17:35 -05:00
config.go v2.0.0 2019-10-08 14:56:17 -06:00
config_internal_test.go send POSTed schema to all nodes in cluster 2019-04-29 19:31:23 -05:00
config_test.go v2.0.0 2019-10-08 14:56:17 -06:00
default.go Unexport server.DefaultDiagnosticsInterval 2018-07-05 23:11:56 -05:00
enterprise.go v2.0.0 2019-10-08 14:56:17 -06:00
handler_test.go test and fix authentication of client certs btwn cluster nodes 2019-10-18 15:17:35 -05:00
release.go Unexport server.DefaultDiagnosticsInterval (in release tag) 2018-07-05 23:11:57 -05:00
server.go test and fix authentication of client certs btwn cluster nodes 2019-10-18 15:17:35 -05:00
server_test.go v2.0.0 2019-10-08 14:56:17 -06:00
setup_logger.go v2.0.0 2019-10-08 14:56:17 -06:00
setup_logger_arm64.go v2.0.0 2019-10-08 14:56:17 -06:00
tlsconfig.go test and fix authentication of client certs btwn cluster nodes 2019-10-18 15:17:35 -05:00