Skip to content

Commit cf3a5f7

Browse files
authored
Adds support for --tls_enable_host_verification as global option for TCTL (#873)
By default, tctl does not perform host verification on the temporal cluster it is talking to (if using TLS). The underlying code checks a flag, but the flag is not exposed as a Global option. This PR exposes the flag as a global option. Validated this fix by running against a private environment with a mismatched server-name for the TLS cert. With the flag enabled, tctl gives the appropriate error message when communicating with the private environment
1 parent 8e8a890 commit cf3a5f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/cli/app.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ func NewCliApp() *cli.App {
8383
Usage: "path to server CA certificate",
8484
EnvVar: "TEMPORAL_CLI_TLS_CA",
8585
},
86+
cli.BoolFlag{
87+
Name: FlagTLSEnableHostVerification,
88+
Usage: "validates hostname of temporal cluster against server certificate",
89+
EnvVar: "TEMPORAL_CLI_TLS_ENABLE_HOST_VERIFICATION",
90+
},
8691
}
8792
app.Commands = []cli.Command{
8893
{

0 commit comments

Comments
 (0)