Sahdev Zala
12c049e6be
Merge pull request #10835 from spzala/securityprocess
...
Security: Create etcd security process
2019-07-30 14:14:46 -04:00
Gyuho Lee
800e7235eb
CHANGELOG: add recent changes in logger
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-29 16:09:06 -07:00
Gyuho Lee
6e766ac5fb
Merge pull request #10947 from gyuho/log-level
...
*: make log level configurable
2019-07-29 16:06:51 -07:00
Gyuho Lee
4e43a082b2
raft: use mutex in "SetLogger" to avoid race conditions in tests
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-29 15:43:19 -07:00
Gyuho Lee
c6e3401255
etcdserver: make raft log configured by top level logger
...
To make it consistent
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-29 15:43:19 -07:00
Gyuho Lee
abba5421f5
Documentation/op-guide: add "--log-level" flag
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-29 15:43:19 -07:00
Gyuho Lee
a37f3441f5
etcdmain: add "--log-level" flag
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-29 15:43:19 -07:00
Gyuho Lee
b9de4bddda
embed: add "LogLevel", deprecate "Debug" in v3.5
...
Make log level configurable, and deprecate "debug" flag in v3.5.
And adds more warnings on flags that's being deprecated in v3.5.
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-29 15:43:19 -07:00
Gyuho Lee
e911f901a6
pkg/logutil: add log level utilities
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-29 15:43:19 -07:00
Gyuho Lee
348b0d40a6
embed: do not expose "zapLoggerBuilder"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-29 15:43:19 -07:00
Gyuho Lee
324952c12a
Merge pull request #10935 from gyuho/v2
...
*: disable v2 API by default
2019-07-29 15:42:56 -07:00
Gyuho Lee
936c506e8d
Merge pull request #10945 from tbg/add-todo
...
raft: leave TODO about leaving StateSnapshot
2019-07-29 13:51:38 -07:00
Gyuho Lee
4ca04ba991
Merge pull request #10949 from gyuho/docs
...
Documentation: move design docs to "Documentation", remove "docs"
2019-07-29 13:48:38 -07:00
Gyuho Lee
87e203a5cf
Documentation/learning: rewrite balancer design doc images
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-29 13:47:25 -07:00
Gyuho Lee
ad491c0c32
Documentation: move client, learner design docs
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-28 21:54:22 -07:00
Gyuho Lee
3fc62ca586
tools,Documentation: move "etcd-dump-metrics" output to "Documentation"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-28 21:53:50 -07:00
Gyuho Lee
101a63ae97
docs: remove
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-28 21:53:31 -07:00
Gyuho Lee
9e75f27985
CHANGELOG: move corrupt check features to etcd v4
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-28 23:09:42 -05:00
Gyuho Lee
2f30e9ad7f
etcdserver: document v2 usage in "publish" method
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-28 21:07:39 -05:00
Gyuho Lee
ae87b21a72
tests/e2e: enable-v2 for v2 e2e tests
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-28 21:07:36 -05:00
Gyuho Lee
38128425b2
Documentation/op-guide: disable v2 by default
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-28 19:36:51 -05:00
Gyuho Lee
ecb915617d
embed: disable v2 by default
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-28 19:36:51 -05:00
Gyuho Lee
89d400211d
Merge pull request #10911 from gyuho/balancer
...
clientv3: fix secure endpoint failover, refactor with gRPC 1.22 upgrade
2019-07-26 14:50:54 -07:00
Tobias Schottdorf
3b02d4c5ff
raft: leave TODO about leaving StateSnapshot
...
The condition is overly strict, which has popped up in CockroachDB
recently.
2019-07-26 23:19:34 +02:00
Gyuho Lee
a7b8034e56
words: whitelist more
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 09:19:22 -07:00
Gyuho Lee
8a2a951d79
integration: match code.Canceled in "TestV3KVInflightRangeRequests"
...
Match new error codes in gRPC v1.22.0
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 09:19:22 -07:00
Gyuho Lee
ba42e65b59
clientv3/integration: give more time for balancer resolution
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 09:19:22 -07:00
Gyuho Lee
8c7c6ec0c1
clientv3/balancer: refactor
...
refactor + remove unused
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 09:19:19 -07:00
Gyuho Lee
3dc00ab615
clientv3: move auth token credential to "credentials" package
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 09:17:44 -07:00
Gyuho Lee
db61ee106c
clientv3/credentials: set dial target "Authority" with target address
...
Overwrite authority when it's IP.
When user dials with "grpc.WithDialer", "grpc.DialContext" "cc.parsedTarget"
update only happens once. This is problematic, because when TLS is enabled,
retries happen through "grpc.WithDialer" with static "cc.parsedTarget" from
the initial dial call.
If the server authenticates by IP addresses, we want to set a new endpoint as
a new authority. Otherwise
"transport: authentication handshake failed: x509: certificate is valid for 127.0.0.1, 192.168.121.180, not 192.168.223.156"
when the new dial target is "192.168.121.180" whose certificate host name is also "192.168.121.180"
but client tries to authenticate with previously set "cc.parsedTarget" field "192.168.223.156"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 09:17:40 -07:00
Gyuho Lee
a6b105a907
embed: use new "credentials" package
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 08:56:45 -07:00
Gyuho Lee
7cbe2f5dd6
etcdserver/api/v3rpc: use new "credentials" package
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 08:56:38 -07:00
Gyuho Lee
db7231accc
clientv3: use new "credentials" package
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 08:56:33 -07:00
Gyuho Lee
324c876742
clientv3/credential: implement grpc/credentials.Bundle
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 08:56:05 -07:00
Gyuho Lee
4707d7a196
vendor: upgrade grpc-go to v1.22.1
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 08:53:09 -07:00
Gyuho Lee
12ab2ee3c4
clientv3: do not use pointer to TransportCredentials interface
...
Interface in Go is already reference
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 08:52:31 -07:00
Gyuho Lee
50babc16e7
etcdserver/api/v2v3: skip tests for CI
...
To fix in v3.5
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-26 05:54:58 -07:00
Xiang Li
cf4b5d9c7f
Merge pull request #10938 from MasahikoSawada/updategoversion
...
README: require Go 1.12+
2019-07-25 22:59:34 -07:00
Masahiko Sawada
222dcc8d13
README: require Go 1.12+
...
Fixes #10937
2019-07-26 14:31:24 +09:00
Tobias Grieger
e36e3ac6a7
Merge pull request #10917 from gyuho/raft-node
...
raft: improve logging around tick miss
2019-07-25 22:17:28 +02:00
Gyuho Lee
388d15f521
Merge pull request #10622 from philips/add-v2v3-tests
...
etcdserver: api/v2v3: add initial tests
2019-07-25 10:05:29 -07:00
Gyuho Lee
84a38045c9
CHANGELOG: move "--enable-v2v3" to 3.5
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-25 09:29:31 -07:00
Gyuho Lee
c5dba11197
Merge pull request #10933 from ChrisRx/fix-embed-panic
...
embed: fix oob panic in zap logger
2019-07-25 06:56:31 -07:00
chris
2223142685
embed: fix oob panic in zap logger
...
This fixes an index out-of-bounds panic caused when using the embed
package and the zap logger. When a TLS handshake error is logged, the
slice for cert ip addresses is allocated with capacity but no length, so
subsequent index access causes the panic, and doesn't surface the TLS
handshake error to the user.
Fixes #10932
2019-07-25 09:42:42 -04:00
Gyuho Lee
1782469a76
Merge pull request #10928 from spzala/changelogdep
...
changelog: reflect the latest vendor dependencies
2019-07-25 06:19:13 -07:00
Sahdev P. Zala
c63c988d03
changelog: reflect the latest vendor dependencies
...
Vendor dependencies are modified under,
https://github.com/etcd-io/etcd/pull/10918
Also, the protobuf module is mentioned twice so removing one.
2019-07-25 02:52:34 -04:00
Gyuho Lee
c7c9428f6b
raft: move "RawNode", clarify tick miss
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2019-07-24 23:35:36 -07:00
Gyuho Lee
8f000c755b
Merge pull request #10918 from gyuho/zap-go
...
vendor: upgrade dependencies
2019-07-24 21:59:36 -07:00
Jingyi Hu
425b65467c
Merge pull request #10907 from spzala/emptyrole10905
...
etcdserver: do not allow creating empty role
2019-07-24 18:51:43 -07:00
Sahdev P. Zala
1cef112a79
etcdserver: do not allow creating empty role
...
Like user, we should not allow creating empty role.
Related #10905
2019-07-24 17:41:24 -04:00