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

Running local console with authentication appears to no longer work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • None
    • 4.16
    • Management Console
    • None
    • No
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress

      Description of problem:

      The instructions for running a local console with authentication documented in https://github.com/openshift/console?tab=readme-ov-file#openshift-with-authentication appear to no longer work.

      Steps to Reproduce:

          1.  Follow the steps in https://github.com/openshift/console?tab=readme-ov-file#openshift-with-authentication     

      Actual results:

      console on  master [$?] via 🐳 desktop-linux via 🐹 v1.19.5 via  v18.20.2 via 💎 v3.1.3 on ☁️  openshift-dev (us-east-1) 
      ❯ ./examples/run-bridge.sh
      ++ oc whoami --show-token
      ++ oc whoami --show-server
      ++ oc -n openshift-config-managed get configmap monitoring-shared-config -o 'jsonpath={.data.alertmanagerPublicURL}'
      ++ oc -n openshift-config-managed get configmap monitoring-shared-config -o 'jsonpath={.data.thanosPublicURL}'
      + ./bin/bridge --base-address=http://localhost:9000 --ca-file=examples/ca.crt --k8s-auth=bearer-token --k8s-auth-bearer-token=sha256~EEIDh9LGIzlQ83udktABnEEIse3bintNzKNBJwQfvNI --k8s-mode=off-cluster --k8s-mode-off-cluster-endpoint=https://api.rhamilto.devcluster.openshift.com:6443 --k8s-mode-off-cluster-skip-verify-tls=true --listen=http://127.0.0.1:9000 --public-dir=./frontend/public/dist --user-auth=openshift --user-auth-oidc-client-id=console-oauth-client --user-auth-oidc-client-secret-file=examples/console-client-secret --user-auth-oidc-ca-file=examples/ca.crt --k8s-mode-off-cluster-alertmanager=https://alertmanager-main-openshift-monitoring.apps.rhamilto.devcluster.openshift.com --k8s-mode-off-cluster-thanos=https://thanos-querier-openshift-monitoring.apps.rhamilto.devcluster.openshift.com
      W0515 11:18:55.835781   57122 authoptions.go:103] Flag inactivity-timeout is set to less then 300 seconds and will be ignored!
      F0515 11:18:55.836030   57122 authoptions.go:299] Error initializing authenticator: file examples/ca.crt contained no CA data

      Expected results:

      Local console with authentication should work.

              jhadvig@redhat.com Jakub Hadvig
              rhn-engineering-rhamilto Robb Hamilton
              Yanping Zhang Yanping Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: