mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Setting --ssl.ecdh-curve=
This commit is contained in:
parent
698a56493d
commit
15daf549de
6 changed files with 6 additions and 1 deletions
|
@ -101,6 +101,7 @@ func createArangodArgs(apiObject metav1.Object, deplSpec api.DeploymentSpec, gro
|
|||
keyPath := filepath.Join(k8sutil.TLSKeyfileVolumeMountDir, constants.SecretTLSKeyfile)
|
||||
options = append(options,
|
||||
optionPair{"--ssl.keyfile", keyPath},
|
||||
optionPair{"--ssl.ecdh-curve", ""}, // This way arangod accepts curves other than P256 as well.
|
||||
)
|
||||
/*if bsCfg.SslKeyFile != "" {
|
||||
if bsCfg.SslCAFile != "" {
|
||||
|
|
|
@ -113,6 +113,7 @@ func TestCreateArangodArgsAgent(t *testing.T) {
|
|||
"--server.jwt-secret=$(ARANGOD_JWT_SECRET)",
|
||||
"--server.statistics=false",
|
||||
"--server.storage-engine=rocksdb",
|
||||
"--ssl.ecdh-curve=",
|
||||
"--ssl.keyfile=/secrets/tls/tls.keyfile",
|
||||
},
|
||||
cmdline,
|
||||
|
|
|
@ -111,6 +111,7 @@ func TestCreateArangodArgsCoordinator(t *testing.T) {
|
|||
"--server.jwt-secret=$(ARANGOD_JWT_SECRET)",
|
||||
"--server.statistics=true",
|
||||
"--server.storage-engine=rocksdb",
|
||||
"--ssl.ecdh-curve=",
|
||||
"--ssl.keyfile=/secrets/tls/tls.keyfile",
|
||||
},
|
||||
cmdline,
|
||||
|
|
|
@ -111,6 +111,7 @@ func TestCreateArangodArgsDBServer(t *testing.T) {
|
|||
"--server.jwt-secret=$(ARANGOD_JWT_SECRET)",
|
||||
"--server.statistics=true",
|
||||
"--server.storage-engine=rocksdb",
|
||||
"--ssl.ecdh-curve=",
|
||||
"--ssl.keyfile=/secrets/tls/tls.keyfile",
|
||||
},
|
||||
cmdline,
|
||||
|
|
|
@ -81,6 +81,7 @@ func TestCreateArangodArgsSingle(t *testing.T) {
|
|||
"--server.jwt-secret=$(ARANGOD_JWT_SECRET)",
|
||||
"--server.statistics=true",
|
||||
"--server.storage-engine=rocksdb",
|
||||
"--ssl.ecdh-curve=",
|
||||
"--ssl.keyfile=/secrets/tls/tls.keyfile",
|
||||
},
|
||||
cmdline,
|
||||
|
|
|
@ -38,7 +38,7 @@ import (
|
|||
|
||||
const (
|
||||
caTTL = time.Hour * 24 * 365 * 10 // 10 year
|
||||
tlsECDSACurve = "P256" // This curve is the default that ArangoDB accepts and plenty strong
|
||||
tlsECDSACurve = "P384" // P256 // This curve is the default that ArangoDB accepts and plenty strong
|
||||
)
|
||||
|
||||
// createCACertificate creates a CA certificate and stores it in a secret with name
|
||||
|
|
Loading…
Reference in a new issue