mirror of https://github.com/status-im/consul.git
cli: update agent log preamble to reflect per-listener TLS config
This commit is contained in:
parent
89a70c61f5
commit
6e0de48e60
|
@ -201,24 +201,29 @@ func (c *cmd) run(args []string) int {
|
||||||
if config.ServerMode {
|
if config.ServerMode {
|
||||||
segment = "<all>"
|
segment = "<all>"
|
||||||
}
|
}
|
||||||
ui.Info(fmt.Sprintf(" Version: '%s'", c.versionHuman))
|
ui.Info(fmt.Sprintf(" Version: '%s'", c.versionHuman))
|
||||||
if strings.Contains(c.versionHuman, "dev") {
|
if strings.Contains(c.versionHuman, "dev") {
|
||||||
ui.Info(fmt.Sprintf(" Revision: '%s'", c.revision))
|
ui.Info(fmt.Sprintf(" Revision: '%s'", c.revision))
|
||||||
}
|
}
|
||||||
ui.Info(fmt.Sprintf(" Build Date: '%s'", c.buildDate))
|
ui.Info(fmt.Sprintf(" Build Date: '%s'", c.buildDate))
|
||||||
ui.Info(fmt.Sprintf(" Node ID: '%s'", config.NodeID))
|
ui.Info(fmt.Sprintf(" Node ID: '%s'", config.NodeID))
|
||||||
ui.Info(fmt.Sprintf(" Node name: '%s'", config.NodeName))
|
ui.Info(fmt.Sprintf(" Node name: '%s'", config.NodeName))
|
||||||
if ap := config.PartitionOrEmpty(); ap != "" {
|
if ap := config.PartitionOrEmpty(); ap != "" {
|
||||||
ui.Info(fmt.Sprintf(" Partition: '%s'", ap))
|
ui.Info(fmt.Sprintf(" Partition: '%s'", ap))
|
||||||
}
|
}
|
||||||
ui.Info(fmt.Sprintf(" Datacenter: '%s' (Segment: '%s')", config.Datacenter, segment))
|
ui.Info(fmt.Sprintf(" Datacenter: '%s' (Segment: '%s')", config.Datacenter, segment))
|
||||||
ui.Info(fmt.Sprintf(" Server: %v (Bootstrap: %v)", config.ServerMode, config.Bootstrap))
|
ui.Info(fmt.Sprintf(" Server: %v (Bootstrap: %v)", config.ServerMode, config.Bootstrap))
|
||||||
ui.Info(fmt.Sprintf(" Client Addr: %v (HTTP: %d, HTTPS: %d, gRPC: %d, DNS: %d)", config.ClientAddrs,
|
ui.Info(fmt.Sprintf(" Client Addr: %v (HTTP: %d, HTTPS: %d, gRPC: %d, DNS: %d)", config.ClientAddrs,
|
||||||
config.HTTPPort, config.HTTPSPort, config.GRPCPort, config.DNSPort))
|
config.HTTPPort, config.HTTPSPort, config.GRPCPort, config.DNSPort))
|
||||||
ui.Info(fmt.Sprintf(" Cluster Addr: %v (LAN: %d, WAN: %d)", config.AdvertiseAddrLAN,
|
ui.Info(fmt.Sprintf(" Cluster Addr: %v (LAN: %d, WAN: %d)", config.AdvertiseAddrLAN,
|
||||||
config.SerfPortLAN, config.SerfPortWAN))
|
config.SerfPortLAN, config.SerfPortWAN))
|
||||||
ui.Info(fmt.Sprintf(" Encrypt: Gossip: %v, TLS-Outgoing: %v, TLS-Incoming: %v, Auto-Encrypt-TLS: %t",
|
ui.Info(fmt.Sprintf("Gossip Encryption: %t", config.EncryptKey != ""))
|
||||||
config.EncryptKey != "", config.TLS.InternalRPC.VerifyOutgoing, config.TLS.InternalRPC.VerifyIncoming, config.AutoEncryptTLS || config.AutoEncryptAllowTLS))
|
ui.Info(fmt.Sprintf(" Auto-Encrypt-TLS: %t", config.AutoEncryptTLS || config.AutoEncryptAllowTLS))
|
||||||
|
ui.Info(fmt.Sprintf(" HTTPS TLS: Verify Incoming: %t, Verify Outgoing: %t, Min Version: %s",
|
||||||
|
config.TLS.HTTPS.VerifyIncoming, config.TLS.HTTPS.VerifyOutgoing, config.TLS.HTTPS.TLSMinVersion))
|
||||||
|
ui.Info(fmt.Sprintf(" gRPC TLS: Verify Incoming: %t, Min Version: %s", config.TLS.GRPC.VerifyIncoming, config.TLS.GRPC.TLSMinVersion))
|
||||||
|
ui.Info(fmt.Sprintf(" Internal RPC TLS: Verify Incoming: %t, Verify Outgoing: %t (Verify Hostname: %t), Min Version: %s",
|
||||||
|
config.TLS.InternalRPC.VerifyIncoming, config.TLS.InternalRPC.VerifyOutgoing, config.TLS.InternalRPC.VerifyServerHostname, config.TLS.InternalRPC.TLSMinVersion))
|
||||||
// Enable log streaming
|
// Enable log streaming
|
||||||
ui.Output("")
|
ui.Output("")
|
||||||
ui.Output("Log data will now stream in as it occurs:\n")
|
ui.Output("Log data will now stream in as it occurs:\n")
|
||||||
|
|
Loading…
Reference in New Issue