mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdmain: add "--cipher-suites" flag
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
3125c0c3e8
commit
abffe0d29a
@ -208,6 +208,7 @@ func newConfig() *config {
|
|||||||
fs.BoolVar(&cfg.ec.PeerAutoTLS, "peer-auto-tls", false, "Peer TLS using generated certificates")
|
fs.BoolVar(&cfg.ec.PeerAutoTLS, "peer-auto-tls", false, "Peer TLS using generated certificates")
|
||||||
fs.StringVar(&cfg.ec.PeerTLSInfo.CRLFile, "peer-crl-file", "", "Path to the peer certificate revocation list file.")
|
fs.StringVar(&cfg.ec.PeerTLSInfo.CRLFile, "peer-crl-file", "", "Path to the peer certificate revocation list file.")
|
||||||
fs.StringVar(&cfg.ec.PeerTLSInfo.AllowedCN, "peer-cert-allowed-cn", "", "Allowed CN for inter peer authentication.")
|
fs.StringVar(&cfg.ec.PeerTLSInfo.AllowedCN, "peer-cert-allowed-cn", "", "Allowed CN for inter peer authentication.")
|
||||||
|
fs.Var(flags.NewStringsValue(""), "cipher-suites", "Comma-separated list of supported TLS cipher suites between client/server and peers (empty will be auto-populated by Go).")
|
||||||
|
|
||||||
fs.Var(
|
fs.Var(
|
||||||
flags.NewUniqueURLsWithExceptions("*", "*"),
|
flags.NewUniqueURLsWithExceptions("*", "*"),
|
||||||
@ -309,6 +310,8 @@ func (cfg *config) configFromCmdLine() error {
|
|||||||
cfg.ec.CORS = flags.UniqueURLsMapFromFlag(cfg.cf.flagSet, "cors")
|
cfg.ec.CORS = flags.UniqueURLsMapFromFlag(cfg.cf.flagSet, "cors")
|
||||||
cfg.ec.HostWhitelist = flags.UniqueStringsMapFromFlag(cfg.cf.flagSet, "host-whitelist")
|
cfg.ec.HostWhitelist = flags.UniqueStringsMapFromFlag(cfg.cf.flagSet, "host-whitelist")
|
||||||
|
|
||||||
|
cfg.ec.CipherSuites = flags.StringsFromFlag(cfg.cf.flagSet, "cipher-suites")
|
||||||
|
|
||||||
// TODO: remove this in v3.5
|
// TODO: remove this in v3.5
|
||||||
output := flags.UniqueStringsMapFromFlag(cfg.cf.flagSet, "log-output")
|
output := flags.UniqueStringsMapFromFlag(cfg.cf.flagSet, "log-output")
|
||||||
oss1 := make([]string, 0, len(output))
|
oss1 := make([]string, 0, len(output))
|
||||||
|
@ -142,6 +142,8 @@ Security:
|
|||||||
Peer TLS using self-generated certificates if --peer-key-file and --peer-cert-file are not provided.
|
Peer TLS using self-generated certificates if --peer-key-file and --peer-cert-file are not provided.
|
||||||
--peer-crl-file ''
|
--peer-crl-file ''
|
||||||
Path to the peer certificate revocation list file.
|
Path to the peer certificate revocation list file.
|
||||||
|
--cipher-suites ''
|
||||||
|
Comma-separated list of supported TLS cipher suites between client/server and peers (empty will be auto-populated by Go).
|
||||||
--cors '*'
|
--cors '*'
|
||||||
Comma-separated whitelist of origins for CORS, or cross-origin resource sharing, (empty or * means allow all).
|
Comma-separated whitelist of origins for CORS, or cross-origin resource sharing, (empty or * means allow all).
|
||||||
--host-whitelist '*'
|
--host-whitelist '*'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user