-
Notifications
You must be signed in to change notification settings - Fork 217
Description
We're having issues using public Helm repositories on our company network which does sort of man-in-the-middle SSL-stripping. One of them is:
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: ingress-nginx
spec:
interval: 30s
url: https://kubernetes.github.io/ingress-nginx
Below are various changes tested. Where .spec.secretRef.name
is specified, it simply refers to a Secret with .stringData.caFile
set to our root CA.
-
With neither
.name.passCredentials
or.spec.secretRef.name
(effectively the YAML above).-
helmrepository/ingress-nginx
works fine. -
helmchart/ingress-nginx-ingress-nginx
gives:chart pull error: failed to download chart for remote reference: Get "https://github.com/kubernetes/ingress-nginx/releases/download/helm-chart-4.0.10/ingress-nginx-4.0.10.tgz": x509: certificate is valid for github.com, www.github.com, not kubernetes.github.io
... this is most likely related to the fact that https://kubernetes.github.io/ingress-nginx/index.yaml lives on
kubernetes.github.io
, but points to a.tgz
s ongithub.com
.
-
-
With
.name.passCredentials
, but no.spec.secretRef.name
.-
helmrepository/ingress-nginx
works fine. -
helmchart/ingress-nginx-ingress-nginx
gives:chart pull error: failed to download chart for remote reference: Get "https://github-releases.githubusercontent.com/72891330/356bf635-bdaa-42d4-8235-97556c1a1771?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211203T081453Z&X-Amz-Expires=300&X-Amz-Signature=3d8a75409f5bf877a6d89cb99b9950c0e54205cb61a51d5e76036bf2b73063e9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=72891330&response-content-disposition=attachment%3B%20filename%3Dingress-nginx-4.0.10.tgz&response-content-type=application%2Foctet-stream": x509: certificate signed by unknown authority
-
-
With both
.name.passCredentials
and.spec.secretRef.name
specified.-
helmrepository/ingress-nginx
gives:failed to download repository index: failed to cache index to '/tmp/chart-index-3560494879.yaml': Get "https://kubernetes.github.io/ingress-nginx/index.yaml": x509: certificate signed by unknown authority
-
helmchart/ingress-nginx-ingress-nginx
gives:chart pull error: failed to download chart for remote reference: Get "https://github-releases.githubusercontent.com/72891330/356bf635-bdaa-42d4-8235-97556c1a1771?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211203T081453Z&X-Amz-Expires=300&X-Amz-Signature=3d8a75409f5bf877a6d89cb99b9950c0e54205cb61a51d5e76036bf2b73063e9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=72891330&response-content-disposition=attachment%3B%20filename%3Dingress-nginx-4.0.10.tgz&response-content-type=application%2Foctet-stream": x509: certificate signed by unknown authority
-