Translated message

A translation of this page exists in English.

podman や cri-o などの Go プログラミング言語で書かれたプログラムで、プロキシーのユーザー名またはパスワードに # 文字が含まれている場合にプロキシー設定が無視される理由

Solution In Progress - Updated -

Issue

  • 環境変数 HTTP_PROXY および HTTPS_PROXY を使用してプロキシー情報を提供しています。
  • たとえば、次のようにプレーンテキストのユーザー名とパスワードを指定しました。
export HTTP_PROXY='myuser:my!pass#word@proxy.example.com:3128'
export HTTPS_PROXY='myuser:my!pass#word@proxy.example.com:3128'
  • Go でビルドされたプログラム (podmanbuildahskopeocri-o などを含みますが、これらに限定はされません) でプロキシー情報を使用する場合、プロキシー情報は上記の変数から読み取られますが、プロキシーのユーザー名またはパスワードに # 文字が含まれていると使用されません。
  • ユーザー名またはパスワードに # 文字が使用されている場合、Go でビルドおよびコンパイルされたプログラムはプロキシー情報を無視します。 これはなぜですか?

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat OpenShift Container Platform 3
  • Red Hat OpenShift Container Platform 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content