Skip to content

Commit

Permalink
feat(tarianctl): support setting tls params through env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
andylibrian committed Oct 2, 2021
1 parent 31d600c commit 9983828
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions pkg/tarianctl/cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,22 @@ func CmdFlags() []cli.Flag {
EnvVars: []string{"TARIAN_SERVER_ADDRESS"},
},
&cli.BoolFlag{
Name: "server-tls-enabled",
Usage: "If enabled, it will communicate with the server using TLS",
Value: false,
Name: "server-tls-enabled",
Usage: "If enabled, it will communicate with the server using TLS",
Value: false,
EnvVars: []string{"TARIAN_TLS_ENABLED"},
},
&cli.StringFlag{
Name: "server-tls-ca-file",
Usage: "The CA the server uses for TLS connection.",
Value: "",
Name: "server-tls-ca-file",
Usage: "The CA the server uses for TLS connection.",
Value: "",
EnvVars: []string{"TARIAN_TLS_CA_FILE"},
},
&cli.BoolFlag{
Name: "server-tls-insecure-skip-verify",
Usage: "If set to true, it will skip server's certificate chain and hostname verification",
Value: true,
Name: "server-tls-insecure-skip-verify",
Usage: "If set to true, it will skip server's certificate chain and hostname verification",
Value: true,
EnvVars: []string{"TARIAN_TLS_INSECURE_SKIP_VERIFY"},
},
}
}

0 comments on commit 9983828

Please sign in to comment.