Commit Graph

1206 Commits

Author SHA1 Message Date
Nelson Elhage cb8fcf613d Fix a Makefile typo.
The broken .PHONY declaration is breaking Travis: 'make deps' is now a
no-op, because of the new 'deps' directory.
2014-06-29 18:22:44 -07:00
Nelson Elhage 12a7f765b6 Add some basic smoke tests for wrapTLSclient.
Check the success case, and check that we reject a self-signed
certificate.
2014-06-29 18:11:32 -07:00
Nelson Elhage d174cbe7f4 Restore the 0.2 TLS verification behavior.
Namely, don't check the DNS names in TLS certificates when connecting to
other servers.

As of golang 1.3, crypto/tls no longer natively supports doing partial
verification (verifying the cert issuer but not the hostname), so we
have to disable verification entirely and then do the issuer
verification ourselves. Fortunately, crypto/x509 makes this relatively
straightforward.

If the "server_name" configuration option is passed, we preserve the
existing behavior of checking that server name everywhere.

No option is provided to retain the current behavior of checking the
remote certificate against the local node name, since that behavior
seems clearly buggy and unintentional, and I have difficulty imagining
it is actually being used anywhere. It would be relatively
straightforward to restore if desired, however.
2014-06-28 13:32:42 -07:00
Armon Dadgar 924e4bc7f1 Rename Expect to BootstrapExpect. Fixes #223. 2014-06-19 17:08:55 -07:00
Jack Pearkes 26a9edff4c ui: display session name on list of sessions under locked key 2014-06-19 17:00:16 -04:00
Armon Dadgar f79f6cf62b Merge pull request #227 from pkwarren/rpc_typo
Fix a small typo in RPC docs.
2014-06-19 12:08:20 -07:00
Philip K. Warren f3ac3ce6fc Fix a small typo in RPC docs. 2014-06-19 13:53:43 -05:00
Armon Dadgar 92b6e947dd consul: Minor cleanups 2014-06-18 16:15:28 -07:00
Armon Dadgar 941c1cac81 Merge branch 'robxu9-master' 2014-06-18 15:48:57 -07:00
Armon Dadgar 5b2941d43e Fixing merge conflict 2014-06-18 15:48:46 -07:00
Robert Xu 7b456a6d6d Minor cleanup to logic and testsuite.
Signed-off-by: Robert Xu <robxu9@gmail.com>
2014-06-18 18:47:05 -04:00
Armon Dadgar f5fa8c1d2c CHANGELOG updates 2014-06-18 10:35:42 -07:00
Armon Dadgar a05e1aee15 agent: Fixing missing copy of RejoinAfterLeave flag. #110 2014-06-18 10:32:19 -07:00
Robert Xu bc4a4fe09b Utilise new raft.SetPeers() method, move expect logic to leader.go.
This way, we don't use EnableSingleMode, nor cause chaos adding peers.

Signed-off-by: Robert Xu <robxu9@gmail.com>
2014-06-18 12:03:30 -04:00
Armon Dadgar 10c120bf9d agent: Fix issues with re-registration. Fixes #216 2014-06-17 16:48:19 -07:00
Armon Dadgar ca2bbb0a1b Merge branch 'pmarkert-semantic' 2014-06-17 12:50:44 -07:00
Armon Dadgar 46d07005a8 Fix merge conflict 2014-06-17 12:50:35 -07:00
Mitchell Hashimoto ca489adf9f Update leader-election.html.markdown 2014-06-17 09:41:59 -07:00
Mitchell Hashimoto 664bbbb16e Merge pull request #217 from zembutsu/patch-2
website: fix typos
2014-06-17 09:41:42 -07:00
Jack Pearkes 543ee8f875 Merge pull request #219 from pmarkert/master
Fixing small website typos
2014-06-17 07:55:34 -07:00
Phillip Markert ea1c3c4ea1 website: Fixed semantic meaning of upstream in DNS guide 2014-06-17 10:02:44 -04:00
Phillip Markert 6ff3bf39f1 website: Format hyperlink inside HTML literal 2014-06-17 09:55:17 -04:00
Phillip Markert 339edd722b website: Fixing small typos in guides section 2014-06-17 09:55:00 -04:00
Masahito Zembutsu 7adfa90fe3 fix typos 2014-06-17 21:02:01 +09:00
Robert Xu c60fd0542a Add expect bootstrap '-expect=n' mode.
This allows for us to automatically bootstrap a cluster of nodes after
'n' number of server nodes join. All servers must have the same 'n' set, or
they will fail to join the cluster; all servers will not join the peer set
until they hit 'n' server nodes.

If the raft commit index is not empty, '-expect=n' does nothing because it
thinks you've already bootstrapped.

Signed-off-by: Robert Xu <robxu9@gmail.com>
2014-06-16 17:40:33 -04:00
Armon Dadgar 441d613e1b agent: Copy ServerName config 2014-06-13 11:27:44 -07:00
Armon Dadgar 961a00c496 Adding server_name configuration for TLS 2014-06-13 11:10:27 -07:00
Armon Dadgar 59dd6bebe2 Adding the build versions 2014-06-13 10:16:56 -07:00
Armon Dadgar 18063fb5d1 Cutting v0.3.0 2014-06-13 10:11:53 -07:00
Armon Dadgar dc148aeae0 Merge pull request #212 from rbg/master
Seems like we should actually check the reference count.
2014-06-13 09:59:56 -07:00
Armon Dadgar 85ba2f7be5 Merge pull request #210 from robholland/patch-1
Improve clarity of ?keys behaviour.
2014-06-13 09:57:47 -07:00
Robert B Gordon 470d0f1e58 Seems like we should actually check the reference count. 2014-06-13 11:25:01 -05:00
Rob Holland cca6f83b3a Improve clarity of ?keys behaviour.
I read the previous version initially as meaning that it would return a list of keys which have no value set, which I couldn't understand. I think this removes some ambiguity.
2014-06-13 12:20:24 +01:00
Armon Dadgar 3b12ff3377 CHANGELOG updates 2014-06-11 15:39:03 -07:00
Armon Dadgar 1678d8e112 bench: results for 0.3rc 2014-06-11 15:39:03 -07:00
Jack Pearkes 1c9275f37e ui: show service level tags, remove Node.nodeTags 2014-06-11 17:14:20 -04:00
Jack Pearkes 25db24ef75 ui: show tags inline in list of services in node view 2014-06-11 16:54:03 -04:00
Armon Dadgar 57269dd939 Version bump for 0.3 RC 2014-06-11 12:18:47 -07:00
Armon Dadgar c74b42f629 agent: Improve test reliability 2014-06-11 12:01:14 -07:00
Armon Dadgar 6d43b8cb6c website: Clarify upgrade procedures. Fixes #187. 2014-06-11 11:25:55 -07:00
Armon Dadgar 74fa557ba9 website: Update compatibility table for 0.3 2014-06-11 11:08:33 -07:00
Armon Dadgar dc5745cc9c website: Show join help instead of members 2014-06-11 11:08:19 -07:00
Armon Dadgar 4542933139 website: Mention reload command in addition to SIGHUP 2014-06-11 11:03:59 -07:00
Armon Dadgar 2b0f7566e5 website: Document the new reload command 2014-06-11 11:01:36 -07:00
Armon Dadgar 6ff6f3b213 command/reload: Adding new command 2014-06-11 10:58:26 -07:00
Armon Dadgar 8331367707 website: Document reload RPC command 2014-06-11 10:54:36 -07:00
Armon Dadgar f76c769b89 agent: Add reload to RPC clien 2014-06-11 10:53:34 -07:00
Armon Dadgar 590bce9f00 agent: Watch reload channel for trigger 2014-06-11 10:53:28 -07:00
Armon Dadgar 253037a3e7 agent: Adding reload RPC command 2014-06-11 10:53:12 -07:00
Armon Dadgar 8bdfd8c7b2 agent: Set custom syslog facility. Fixes #170. 2014-06-11 10:28:55 -07:00