Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-15193

[macOS] Interactive option to skip the untrasted certificate is missing in oc CLI 4.6 onwards

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.13.z, 4.12.z, 4.11.z
    • oc
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      Since I updated from openshift-clients-4.6.0-202006250705.p0 to the lasted version using the Brew package  when I attempt to login into a cluster I do not have anymore the interactive question to trust or not the clusters I.E.:

      Server https://localhost:8443: https://openshift.example.com:6443 
      The server uses a certificate signed by an unknown authority.
      You can bypass the certificate check, but any data you send to the server could be intercepted by others.
      Use insecure connections? (y/n): y 

      but it goes directly on: 

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

      Only adding the flag --insecure-skip-tls-verify=true allow me to connect which is more painful than just replying to the interacting question.

      I can confirm that this is a bug present on Client Version: 4.13.2 as when I downgrade the package version to the previous 4.6.0 it when back to work as expected.

              aguclu@redhat.com Arda Guclu
              rhn-support-csaggin Cristiano Saggin
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: