Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Unseal: Add 'insecure-skip-tls-verify' flag when unsealing. Fixes #79
Browse files Browse the repository at this point in the history
  • Loading branch information
nemosupremo committed Sep 6, 2019
1 parent 4faf5db commit db8593c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/unseal.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ func init() {
{"auth-aws-nonce", "", "AWS-EC2 nonce for repeated authentication."},

{"auth-gh-token", "", "Vault authorized github personal token."},

{"insecure-skip-tls-verify", false, `Skip TLS verification for insecure cerificates with the Gatekeeper host. Useful for communicating with clusters with self signed certificates. Defaults to "false".`},
}
unsealOptions = options

Expand Down Expand Up @@ -127,6 +129,7 @@ func gatekeeperUnseal(cmd *cobra.Command, args []string) {
Method: "POST",
Body: body,
ContentType: "application/json",
Insecure: viper.GetBool("insecure-skip-tls-verify"),
}.Do()
if err == nil {
defer req.Body.Close()
Expand Down

0 comments on commit db8593c

Please sign in to comment.