diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2019-12-06 14:08:36 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2019-12-06 14:08:36 +0100 |
commit | d93c400415813e4ea4d8e05ef79888ce9809a60a (patch) | |
tree | 4035793da503c196864d0d5be00f68fc67ede281 /config-model/src/main | |
parent | 70d634fe5462dfce43e4549750774d7f3dde069a (diff) |
Disable hostname verification for curl in vespa-deploy
Diffstat (limited to 'config-model/src/main')
-rwxr-xr-x | config-model/src/main/perl/vespa-deploy | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config-model/src/main/perl/vespa-deploy b/config-model/src/main/perl/vespa-deploy index fede8b994c1..3519d5ace58 100755 --- a/config-model/src/main/perl/vespa-deploy +++ b/config-model/src/main/perl/vespa-deploy @@ -153,7 +153,8 @@ $session_id_file = "$cloudconfig_dir/$tenant/deploy-session-id"; my $command = shift; $command ||= "help"; -my $curl_command = $VESPA_HOME . '/libexec/vespa/vespa-curl-wrapper -A vespa-deploy --silent --show-error --connect-timeout 30 --max-time 1200'; +# The '--insecure' parameter is sadly required as it is not possible to disable or alter hostname verification with curl +my $curl_command = $VESPA_HOME . '/libexec/vespa/vespa-curl-wrapper --insecure -A vespa-deploy --silent --show-error --connect-timeout 30 --max-time 1200'; my $CURL_PUT = $curl_command . ' --write-out \%{http_code} --request PUT'; my $CURL_GET = $curl_command . ' --request GET'; |