lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.32k stars 1.45k forks source link

Experiencing odd SSL errors since last week #5779

Open dvil19 opened 2 years ago

dvil19 commented 2 years ago

Starting late last week (July 1st 2022) I'm unable to connect to any cluster using Lens. I'm able to get to them using kubectl without issues.

On Lens logs, the only error I see is:

error: [LENS-PROXY]: http proxy errored for cluster: Error: write EPROTO 140482617488328:error:100003f2:SSL routines:OPENSSL_internal:SSLV3_ALERT_UNEXPECTED_MESSAGE:../../third_party/boringssl/src/ssl/tls_record.cc:594:SSL alert number 10
 {"url":"/version"}

I'm not running any kind of proxy and this is happening on Mac Monterey 12.4 (Intel), I've tried updating LENS to latest but to no avail.

Currently running LENS Lens-5.5.4-latest.20220609.2, same issue on previous version Lens-5.2.7-latest.20211110.1 which leads me to think maybe an update in Mac libraries? Any ideas on what to check are appreciated.

dvil19 commented 2 years ago

It seems this has something to do with using custom file locations for the AWS credentials files. This is an EKS cluster, and whenever I refresh my credentials using other than the aws default credentials file locations it errors out.

dvil19 commented 2 years ago

Kubectl works fine, but Lens doesn't.

I've tried setting all the variables in the kubeconfig file, like this -same issue:

env:

Error remains the same:

error: [LENS-PROXY]: http proxy errored for cluster: Error: write EPROTO 140482617488328:error:100003f2:SSL routines:OPENSSL_internal:SSLV3_ALERT_UNEXPECTED_MESSAGE:../../third_party/boringssl/src/ssl/tls_record.cc:594:SSL alert number 10 {"url":"/version"}

If I use the regular files, and unset all the variables the error stops and everything works.