File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,21 @@ This value can be obtained using a tool like [crane](https://github.com/google/g
9898crane digest ghcr.io/kubewarden/policies/psp-capabilities:v0.1.6
9999```
100100
101+ #### Using a proxy
102+
103+ ` kwctl ` respects standard proxy environment variables when downloading policies:
104+
105+ - ` HTTP_PROXY ` or ` http_proxy ` : proxy server for HTTP requests
106+ - ` HTTPS_PROXY ` or ` https_proxy ` : proxy server for HTTPS requests
107+ - ` NO_PROXY ` or ` no_proxy ` : comma-separated list of hosts to exclude from proxying
108+
109+ Example:
110+
111+ ``` console
112+ export HTTPS_PROXY=http://proxy.example.com:8080
113+ kwctl pull registry://ghcr.io/kubewarden/policies/psp-capabilities:latest
114+ ```
115+
101116### Run
102117
103118` kwctl ` can be used to run a policy locally, outside of Kubernetes. This can be used
Original file line number Diff line number Diff line change @@ -71,6 +71,16 @@ depends on the URL format provided by the user:
7171- ` registry://localhost:5000/project/artifact:some-version` download the policy
7272 from a OCI registry. The policy must have been pushed as an OCI artifact
7373
74+ # ## Using a proxy
75+
76+ When downloading policies from remote locations, `policy-server` respects standard proxy environment variables :
77+
78+ - `HTTP_PROXY` or `http_proxy` : proxy server for HTTP requests
79+ - `HTTPS_PROXY` or `https_proxy` : proxy server for HTTPS requests
80+ - `NO_PROXY` or `no_proxy` : comma-separated list of hosts to exclude from proxying
81+
82+ These environment variables should be set in the policy-server container environment.
83+
7484# ## Policy Group
7585
7686Multiple policies can be grouped together and are evaluated using a user provided boolean expression.
You can’t perform that action at this time.
0 commit comments