Commit Graph

500 Commits (29b7aab5fc103c2f7baa46592b3b27bf0e65cf0e)

Author SHA1 Message Date
Brandon Philips b3654e68d9 fix(README): fixup a grammar bug 2013-08-11 19:05:06 -07:00
Brandon Philips 9d85c741d9 fix(README): use -n everywhere 2013-08-11 19:03:43 -07:00
Brandon Philips 47babce767 feat(README): add the active-proxy project 2013-08-11 17:40:19 -07:00
Brandon Philips 408d0caafc fix(README): remove url highlight
```url isn't a thing. delete it.
2013-08-11 17:19:57 -07:00
polvi 2403fe79c1 Merge pull request #92 from philips/add-default-name
fix(etcd): add a default name
2013-08-11 13:31:21 -07:00
Brandon Philips 5a88da1d37 fix(etcd): add a default name
etcd shouldn't require flags by default.
2013-08-11 13:28:53 -07:00
Xiang Li af202c7412 Merge pull request #89 from philips/readme-fixups
feat(README): add a link to binary downloads
2013-08-11 12:21:37 -07:00
Brandon Philips 08abb4bb6a feat(README): add a link to binary downloads 2013-08-11 12:17:45 -07:00
Brandon Philips fb93103d33 Merge pull request #87 from philips/remove-insecureskipverify
fix(etcd): remove insecureskipverify
2013-08-11 12:15:05 -07:00
Xiang Li 74fb19ad4a Merge pull request #88 from philips/readme-fixups
fix(README): use fixture certs
2013-08-11 11:57:57 -07:00
Xiang Li 8e48a20c85 clean up trans.go 2013-08-11 11:56:18 -07:00
Xiang Li 8f3e6f340f remove duplicate codes 2013-08-11 11:42:38 -07:00
Xiang Li 6120fa634e remove duplicate codes 2013-08-11 11:40:45 -07:00
Brandon Philips d8a05f1766 feat(README): add note about the license 2013-08-11 11:15:07 -07:00
Brandon Philips f8e68ba272 feat(README): at a versioning section 2013-08-11 11:11:38 -07:00
Xiang Li fa6c8f4f18 fix naming in long_test.go 2013-08-11 11:04:15 -07:00
Brandon Philips 14ed8e9719 fix(README): use fixture certs 2013-08-11 10:49:26 -07:00
Brandon Philips be85442e5e fix(etcd): remove insecureskipverify
The client certs and server certs should share the same CA since
everyone is a peer. Use this logic instead of InsecureSkipVerify.

Test-plan: tested manually and tests pass still.
2013-08-11 10:36:34 -07:00
Xiang Li 1124fe21a0 cleaning up 2013-08-11 10:18:40 -07:00
Xiang Li e3dae8fcf9 do not print out debug info when testing 2013-08-11 09:53:02 -07:00
Xiang Li d3649d3254 gofmt 2013-08-11 09:48:12 -07:00
Xiang Li 434b0045db add snapshot 2013-08-11 09:47:23 -07:00
Xiang Li 64eeca3941 add snpshot 2013-08-11 09:47:10 -07:00
Xiang Li 9fd62298ff Merge pull request #85 from philips/fixweb
Fixweb
2013-08-11 09:23:29 -07:00
Brandon Philips a86e3aa7d9 feat(test): add TLS tests
add some basic TLS tests
2013-08-11 08:51:27 -07:00
Brandon Philips 9f14e75360 fix(fixtures/ca): generate with clientAuth and serverAuth
clientAuth and serverAuth are required for ssl cert auth to work! Add it
to the fixtures.
2013-08-11 08:51:22 -07:00
Xiang Li 03a2d608c2 add x509 extended key usage 2013-08-11 00:46:08 -07:00
Xiang Li 0e1125666f better naming in join 2013-08-11 00:42:46 -07:00
Xiang Li 6f388513fb fix test 2013-08-11 00:41:03 -07:00
Brandon Philips 466229cf4d fix(etcd): reverse the cert handling
the server tls config needs the client CA information and the client
needs the pub/priv key. This is how this code used to work.
2013-08-10 23:33:40 -07:00
Brandon Philips 7f9c2eee45 fix(transporter): consistently print debug
not all transporter handlers were printing debug on failure. Fix.
2013-08-10 23:32:22 -07:00
Brandon Philips f1ad907875 chore(transporter): add spaces before return
just a little nip
2013-08-10 23:32:21 -07:00
Brandon Philips d9a8ca1a66 feat(fixtures/ca): Initial commit 2013-08-10 23:32:21 -07:00
Brandon Philips 3be13a38f1 fix(etcd): use transporter scheme in joinCluster
Follow the transporter scheme when trying to join the cluster. Otherwise
the scheme is empty and the http client errors.
2013-08-10 21:35:22 -07:00
Brandon Philips 7db07aa96a fix(etcd): fatal when err != nil
stupid typo, fix
2013-08-10 21:09:46 -07:00
Brandon Philips eb8f1dc6eb fix(etcd): fixup TLSInfo json
the JSON wasn't getting generated properly. Fix it up.
2013-08-10 19:52:29 -07:00
Brandon Philips 8c09f98882 chore(etcd): cleanup TLS configuration
the TLS configuration was getting rather complex with slices of
tls.Config's being passed around and pointer nil checking for schema
types.

Introduce a new TLSInfo type that is in charge of holding the various
TLS key/cert/CA filenames the user passes in.

Then create a new TlsConfig type that has a Scheme and the Client and
Server tls.Config objects inside of it. This is used by the two
transport start methods which had been using a slice of tls.Config
objects and guessing at the scheme based on the non-nil value of the
Config.
2013-08-10 19:31:54 -07:00
Brandon Philips 9111617f32 chore(etcd): introduce sanitizeURL
checkURL was a little weird and allowed two different ways to specify
flags. Introduce sanitizeURL which will make sure the host passed in is
simply hostname:port and then appends a Scheme.
2013-08-10 19:22:04 -07:00
Xiang Li 6610fc39cc defaultScheme based on tls 2013-08-10 17:49:30 -07:00
Xiang Li 84624f1ec0 fix join command 2013-08-10 17:00:25 -07:00
Xiang Li bbf78b076a update 2013-08-10 16:23:51 -07:00
Xiang Li ba697f6ac9 fix web 2013-08-10 16:20:00 -07:00
Brandon Philips 60c71a98a4 fix(etcd): checkURL on webURL
make it so that dropping the schema isn't fatal.
2013-08-10 11:01:09 -07:00
Brandon Philips 0e5ee2742d fix(web): don't share the DefaultMux
All of the web handlers were sharing one mux. Separate them out into
individual muxes.
2013-08-10 10:54:59 -07:00
Brandon Philips 8174669519 fix(etcd): be more explicit with name error message 2013-08-10 09:42:39 -07:00
Xiang Li 328b92e8e7 able to get root dir 2013-08-10 09:42:23 -07:00
Brandon Philips 076bd9903e Merge pull request #78 from xiangli-cmu/separate_id
Separate id
2013-08-10 09:37:32 -07:00
Xiang Li ce3c55ba3f refactor 2013-08-09 23:03:49 -07:00
Xiang Li d3471eec7f separate_id 2013-08-09 21:06:16 -07:00
Xiang Li eadced5dc8 Merge branch 'separate-id' of https://github.com/philips/etcd into separate_id 2013-08-09 17:16:35 -07:00