odo icon indicating copy to clipboard operation
odo copied to clipboard

[regression] odo login Error : 'tls: failed to verify certificate: x509: certificate signed by unknown authority'

Open sbouchet opened this issue 1 year ago • 3 comments

/kind bug

What versions of software are you using?

Operating System: Fedora 39

Output of odo version:

odo v3.16.1 (v3.16.1)

Server: https://clusterurl:6443
Kubernetes: v1.26.5+7d22122
Podman Client: 4.9.4

How did you run odo exactly?

odo login -p p -u u https://clusterurl:6443 --insecure-skip-tls-verify with unsecure certificate

Actual behavior

command result :

Connecting to the OpenShift cluster

 ✗  tls: failed to verify certificate: x509: certificate signed by unknown authority

Expected behavior

with odo 3.15.0, exact same command results with;

/home/sbouchet/.odo/cache/3.15.0/odo login -p p -u u https://clusterurl:6443 --insecure-skip-tls-verify
Connecting to the OpenShift cluster

Login successful.

You have access to the following projects and can switch between them with 'odo set project <projectname>':

Any logs, error output, etc?

sbouchet avatar Jul 03 '24 15:07 sbouchet

@sbouchet I just tried against a ClusterBot-provided cluster using an insecure cert, and it worked with odo 3.16.1. Can you please re-run the command with more logs (by adding -v=9) and share the output please?

rm3l avatar Jul 05 '24 08:07 rm3l

I0705 11:47:45.199274 2319100 implem.go:114] The path for preference file is /home/sbouchet/.odo/preference.yaml
I0705 11:47:45.199345 2319100 util.go:779] HTTPGetRequest: https://raw.githubusercontent.com/redhat-developer/odo/main/build/VERSION
I0705 11:47:45.199406 2319100 segment.go:273] Checking telemetry enable status
I0705 11:47:45.199417 2319100 segment.go:303] Sending telemetry enabled by preference
I0705 11:47:45.199432 2319100 segment.go:273] Checking telemetry enable status
I0705 11:47:45.199439 2319100 segment.go:303] Sending telemetry enabled by preference
I0705 11:47:45.199649 2319100 httpcache.go:45] Removing cache file 6e3240eb18c192c1e690e4ba818285ca, because it is older than 1h0m0s
I0705 11:47:45.199688 2319100 util.go:800] Response will be cached in /tmp/odohttpcache for 1h0m0s
Connecting to the OpenShift cluster

I0705 11:47:45.594731 2319100 implem.go:114] The path for preference file is /home/sbouchet/.odo/preference.yaml
I0705 11:47:45.595096 2319100 segment.go:273] Checking telemetry enable status
I0705 11:47:45.595135 2319100 segment.go:303] Sending telemetry enabled by preference
 ✗  tls: failed to verify certificate: x509: certificate signed by unknown authority

sbouchet avatar Jul 05 '24 09:07 sbouchet

A friendly reminder that this issue had no activity for 90 days. Stale issues will be closed after an additional 30 days of inactivity.

github-actions[bot] avatar Oct 04 '24 00:10 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Nov 03 '24 00:11 github-actions[bot]