Can rosa create oidc-provider cmd honor the http_proxy or https_proxy env variable ?

Solution In Progress - Updated -

Environment

  • Red Hat OpenShift Service on AWS
  • rosa cli
    • v1.1.2

Issue

  • When creating an OIDC provider using "rosa create oidc-provider" on a host that need proxy to access the Internet, it's failed with the following error messages.
ERR: There was an error creating the OIDC provider: dial tcp xx.xx.xx.xx:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
  • Your host needs to use http_proxy and https_proxy environment variables to access to the Internet.
  • When testing the Internet access using curl cmd, it's no problem.

Resolution

  • Unfortunately, "rosa create oidc-provider" does not honor the http_proxy or https_proxy env variables currently.
  • You need to run "rosa create oidc-provider" cmd on a host which can access directly to the Internet.

Root Cause

  • This issue has been filed as a bug report here: https://issues.redhat.com/browse/SDA-4829
  • The "rosa create oidc-provider" cmd does not honor proxy env variable when creating connection as follows. Refer here for whole code references.
    conn, err := tls.Dial("tcp", fmt.Sprintf("%s:443", connect.Host), nil)
    if err != nil {
        return "", err
    }

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments