Skip to content

Commit

Permalink
Merge pull request etcd-io#14308 from dusk125/main
Browse files Browse the repository at this point in the history
server/etcdmain: add configurable cipher list to gRPC proxy listener
  • Loading branch information
spzala authored and dusk125 committed Nov 2, 2022
1 parent 0948b56 commit 4eb5335
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
Empty file added CHANGELOG/CHANGELOG-3.6.md
Empty file.
40 changes: 40 additions & 0 deletions tests/e2e/etcd_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,46 @@ func TestGrpcproxyAndCommonName(t *testing.T) {
}
}

func TestGrpcproxyAndListenCipherSuite(t *testing.T) {
e2e.SkipInShortMode(t)

cases := []struct {
name string
args []string
}{
{
name: "ArgsWithCipherSuites",
args: []string{
e2e.BinDir + "/etcd",
"grpc-proxy",
"start",
"--listen-cipher-suites", "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
},
},
{
name: "ArgsWithoutCipherSuites",
args: []string{
e2e.BinDir + "/etcd",
"grpc-proxy",
"start",
"--listen-cipher-suites", "",
},
},
}

for _, test := range cases {
t.Run(test.name, func(t *testing.T) {
pw, err := e2e.SpawnCmd(test.args, nil)
if err != nil {
t.Fatal(err)
}
if err = pw.Stop(); err != nil {
t.Fatal(err)
}
})
}
}

func TestBootstrapDefragFlag(t *testing.T) {
skipInShortMode(t)

Expand Down

0 comments on commit 4eb5335

Please sign in to comment.