Typositoire / concourse-helm3-resource

Concourse resource to deploy Helm v3 charts.
35 stars 62 forks source link

Unable to connect to the server: x509: certificate signed by unknown authority #83

Closed MaheshBGajera closed 2 years ago

MaheshBGajera commented 2 years ago

Starting v1.22.0, this resource check started failing with error: Unable to connect to the server: x509: certificate signed by unknown authority

Concourse Version: 7.1.1 Concourse Worker OS: Ubuntu 20.4 LTS

If I downgrade to version v1.21.0, I get following error: /opt/resource/common.sh: line 43: /dev/stderr: Permission denied and if I set privileged=true on resource type, it works.

drthornt commented 2 years ago

I'm also having this issue. I'm using gke. I've double checked things. token ca cert url

Typositoire commented 2 years ago

The only thing I can see is the helm version that is different between 1.22.0 and 1.21.0. What was the last version you used that worked?

Typositoire commented 2 years ago

So I've started hitting the same error. I'll do some debugging today.

Typositoire commented 2 years ago

ok so this is caused by my handling of the none-base64 certificate. @drthornt @MaheshBGajera can you try giving the resource a base64 certificate instead of a full-text one just to validate before I push a fix.

moojigc commented 2 years ago

Hello, is this issue resolved? I started seeing this error yesterday, even with a base64 cert on version 1.25.0.

EDIT: I switched cluster_ca to cluster_ca_base64 and now it works!