Typositoire/concourse-helm3-resource

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

MaheshBGajera opened this issue · 5 comments

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.

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

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?

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

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.

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!