aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/handlers/libpod/manifests.go
diff options
context:
space:
mode:
authorVladimir Kochnev <hashtable@yandex.ru>2022-07-25 16:00:23 +0300
committerMatthew Heon <matthew.heon@pm.me>2022-07-26 14:44:05 -0400
commite6ebfbd1e0106d8ddcf19a1ec3f97052592f49ad (patch)
tree18ee57abaae057fdd78a836ee61dd70a670fa8e8 /pkg/api/handlers/libpod/manifests.go
parent64bc2ee97f2dbcada22cff4364416abb81a3272a (diff)
downloadpodman-e6ebfbd1e0106d8ddcf19a1ec3f97052592f49ad.tar.gz
podman-e6ebfbd1e0106d8ddcf19a1ec3f97052592f49ad.tar.bz2
podman-e6ebfbd1e0106d8ddcf19a1ec3f97052592f49ad.zip
Set TLSVerify=true by default for API endpoints
Option defaults in API must be the same as in CLI. ``` % podman image push --help % podman image pull --help % podman manifest push --help % podman image search --help ``` All of these CLI commands them have --tls-verify=true by default: ``` --tls-verify require HTTPS and verify certificates when accessing the registry (default true) ``` As for `podman image build`, it doesn't have any means to control `tlsVerify` parameter but it must be true by default. Signed-off-by: Vladimir Kochnev <hashtable@yandex.ru>
Diffstat (limited to 'pkg/api/handlers/libpod/manifests.go')
-rw-r--r--pkg/api/handlers/libpod/manifests.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/handlers/libpod/manifests.go b/pkg/api/handlers/libpod/manifests.go
index 3235a2972..43c7139d3 100644
--- a/pkg/api/handlers/libpod/manifests.go
+++ b/pkg/api/handlers/libpod/manifests.go
@@ -310,6 +310,7 @@ func ManifestPush(w http.ResponseWriter, r *http.Request) {
TLSVerify bool `schema:"tlsVerify"`
}{
// Add defaults here once needed.
+ TLSVerify: true,
}
if err := decoder.Decode(&query, r.URL.Query()); err != nil {
utils.Error(w, http.StatusBadRequest,