About the egress proxy for the External Secrets Operator for Red Hat OpenShift
If a cluster-wide egress proxy is configured in OpenShift Container Platform, Operator Lifecycle Manager (OLM) automatically configures Operators that it manages with the cluster-wide proxy. OLM automatically updates all of the Operator’s deployments with the HTTP_PROXY, HTTPS_PROXY, NO_PROXY environment variables.
Configuring the egress proxy for the External Secrets Operator for Red Hat OpenShift
The egress proxy can be configured in the ExternalSecretsConfig or the ExternalSecretsManager custom resource (CR). The Operator and the operand make use of the OpenShift Container Platform supported certificate authority (CA) bundle for the proxy validations.
-
You have access to the cluster as a user with the
cluster-adminrole. -
You have created the
ExternalSecretsConfigcustom CR.
-
To set the proxy in the
ExternalSecretsConfigresource, perform the following steps:-
Edit the
ExternalSecretsConfigresource by running the following command:$ oc edit externalsecretsconfigs.operator.openshift.io cluster -
Edit the
spec.appConfig.proxysection to set the proxy values as follows:apiVersion: operator.openshift.io/v1alpha1 kind: ExternalSecretsConfig ... spec: appConfig: proxy: httpProxy: <http_proxy> httpsProxy: <https_proxy> noProxy: <no_proxy>where:
- <http_proxy>
-
Specifies the proxy URL for the http requests.
- <https_proxy>
-
Specifies the proxy URL for the https requests.
- <no_proxy>
-
Specifies a comma-separated list of hostnames, CIDRs, IPs or a combination of these, for which the proxy should not be used.
-
-
To set the proxy in the
ExternalSecretsManagerCR, perform the following steps.-
Edit the
ExternalSecretsManagerCR by running the following command:$ oc edit externalsecretsmanagers.operator.openshift.io cluster -
Edit the
spec.globalConfig.proxysection to set the proxy values as follows:apiVersion: operator.openshift.io/v1alpha1 kind: ExternalSecretsManager ... spec: globalConfig: proxy: httpProxy: <http_proxy> httpsProxy: <https_proxy> noProxy: <no_proxy>
-
where:
- <http_proxy>
-
Specifies the proxy URL for the http requests.
- <https_proxy>
-
Proxy URL for the https requests.
- <no_proxy>
-
Comma-separated list of hostnames, CIDRs, IPs or a combination of these for which the proxy should not be used.