Skip to content

x509: certificate signed by unknown authority #551

Closed

Description

@jason-riddle

Trying to deploy to a GKE cluster is giving me the following error.

$ helm deploy --name test --properties "workers=2" gs://kubernetes-charts-testing/redis-2.tgz
[ERROR] Post https://XXX.XXX.XX.XXX/api/v1/proxy/namespaces/helm/services/manager-service:manager/deployments: x509: certificate signed by unknown authority

Is there any way to disable TLS verification or to trust the self-signed cert?

Activity

  1. sebgoa commented on Apr 4, 2016

    @sebgoa
    Contributor

    @jason-riddle if you run a kubectl proxy --port=8001 locally, and set your HELM_HOST to http://localhost:8001/api/v1/proxy/namespaces/helm/services/manager-service:manager

    it should properly forward the request.

  2. jason-riddle commented on Apr 5, 2016

    @jason-riddle
    Author

    Alright so now upon running the proxy before trying to add kubernetes-charts-testing, I get the following.

    $ helm repo add kubernetes-charts-testing gs://kubernetes-charts-testing
    [ERROR] 404 page not found
    
    

    When I visit http://localhost:8001/ in my browser, I literally get the following text.

    <h3>Unauthorized</h3>
    

    While visiting the https://XXX.XXX.XX.XXX master url works fine.

    Maybe I don't understand proxying, but how would helm be able to validate the certificate, if there is just forwarding from http:// to https://? Wouldn't it see this as an issue? It can't just blindly be okay with the fact that it was expecting http but instead got https?

  3. sebgoa commented on Apr 5, 2016

    @sebgoa
    Contributor

    Can you try the latest version of helm. I am not sure how you are getting it installed. But I believe the error you are seeing is because the images running the services are out of date.
    Try getting the latest helm and redeploy with helm server install.

    As far as the proxy. kubectl proxy proxies all API requests to the secure endpoint (using the certs and tokens of your secured k8s server). A service running in your k8s cluster can be reached as if running locally thanks to the proxy.

    With a working helm you will be able to curl the helm manager API at the HELM_HOST URL.

  4. jason-riddle commented on Apr 5, 2016

    @jason-riddle
    Author

    Upgraded and still getting the same issue.

    $ helm --version
    helm version v1.2+0af0856
    
    $ helm server uninstall
    namespace "helm" deleted
    
    $ helm server install
    ## <snip>
    
    # In another window
    $ kubectl proxy --port=8001
    Starting to serve on 127.0.0.1:8001
    
    $ export HELM_HOST=http://localhost:8001/api/v1/proxy/namespaces/helm/services/manager-service:manager
    
    $ helm repo add kubernetes-charts-testing gs://kubernetes-charts-testing
    [ERROR] 404 page not found
    
  5. sebgoa commented on Apr 5, 2016

    @sebgoa
    Contributor

    is your proxy running ? kubectl proxy --port 8001

  6. jason-riddle commented on Apr 6, 2016

    @jason-riddle
    Author

    Yes it is. Up above I've listed the commands to reproduce what I've done.

  7. technosophos commented on May 3, 2016

    @technosophos
    Member

    This should no longer be a problem with the new version.

  8. erikbgithub commented on Jul 25, 2017

    @erikbgithub

    @jason-riddle You may have already learned this, but the better way to debug with curl is using -vvvv to see what happens in the http communication.

  9. added 2 commits that reference this issue on Nov 17, 2023
    bae842f
    04679b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions