summaryrefslogtreecommitdiff
path: root/docker/helm-repository
diff options
context:
space:
mode:
authorMartin André <m.andre@redhat.com>2018-09-10 18:49:02 +0200
committerMartin André <m.andre@redhat.com>2018-09-10 19:19:16 +0200
commit27bab79096584b50947f0d81d41ad2e143c1041e (patch)
treed5d4a04a1b8bfe4ac9554e9f954748ece2ab06e1 /docker/helm-repository
parenta4187d9d021c3c38c11c709435c0c69fee5e5a43 (diff)
downloadkolla-27bab79096584b50947f0d81d41ad2e143c1041e.tar.gz
kolla-27bab79096584b50947f0d81d41ad2e143c1041e.zip
Download binaries more securely
Obtain binaries from encrypted source when we're unable to check for their signatures. This should provide better security than downloading the files over HTTP but does not replace signature verification or file integrity check. Related-Bug: #1791674 Change-Id: I7d6eed9ab14ceb130ea4f5f03d893ddaaa0a7acd
Diffstat (limited to 'docker/helm-repository')
-rw-r--r--docker/helm-repository/Dockerfile.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/helm-repository/Dockerfile.j2 b/docker/helm-repository/Dockerfile.j2
index 45772bcbc..1b1acbb89 100644
--- a/docker/helm-repository/Dockerfile.j2
+++ b/docker/helm-repository/Dockerfile.j2
@@ -55,7 +55,8 @@ ENV helm_arch={{ base_arch }}
{% endif %}
{% block helm_repository_install_kubernetes_helm %}
-RUN curl -Lo /tmp/helm-v${helm_version}-linux-${helm_arch}.tar.gz http://storage.googleapis.com/kubernetes-helm/helm-v${helm_version}-linux-${helm_arch}.tar.gz \
+# TODO(mandre) check for file integrity instead of downloading from an HTTPS source
+RUN curl -Lo /tmp/helm-v${helm_version}-linux-${helm_arch}.tar.gz https://storage.googleapis.com/kubernetes-helm/helm-v${helm_version}-linux-${helm_arch}.tar.gz \
&& sudo tar --strip-components 1 -C /usr/bin linux-${helm_arch}/helm -zxvf /tmp/helm-v${helm_version}-linux-${helm_arch}.tar.gz \
&& sudo chmod 755 /usr/bin/helm \
&& rm /tmp/helm-v${helm_version}-linux-${helm_arch}.tar.gz