Skip to content

helm repo pull does not use CA File #7055

Closed

Description

@kaos

Output of helm version:

version.BuildInfo{Version:"v3.0+unreleased", GitCommit:"84de17e7e5255e5033967f005d4b4c05c024317c", GitTreeState:"dirty", GoVersion:"go1.13.4"}

Also applies for the release:
version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}

Output of kubectl version:
N/A

Cloud Provider/Platform (AKS, GKE, Minikube etc.):
N/A

We have a custom helm chart repo on a self-signed certificate. Pulling does not work unless using absolute URLs.

$ helm pull example/chart
Error: Get https://servername/repository/helm/chart-0.0.1.tgz: x509: certificate signed by unknown authority

Even passing --cert-file on the command line does not help. (the ca cert file is in the repo config, so should be picked up from there)

I have a patch locally that address the issue with not looking at the repo config. Will look into the issue with the command flag not being used either, too.
Will push a PR as soon as I've cleaned it up a bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions