mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-01-25 02:08:11 +00:00
feat(kubernetes): support HTTPS_PROXY and K8S_SKIP_TLS_VERIFY (#7720)
This commit is contained in:
@@ -21,3 +21,23 @@ To specify the namespace(s) to be scanned, use the `--namespace` flag followed b
|
||||
```console
|
||||
prowler --namespace namespace1 namespace2
|
||||
```
|
||||
|
||||
## Proxy and TLS Verification
|
||||
|
||||
If your Kubernetes cluster is only accessible via an internal proxy, Prowler will respect the `HTTPS_PROXY` or `https_proxy` environment variable:
|
||||
|
||||
```console
|
||||
export HTTPS_PROXY=http://my.internal.proxy:8888
|
||||
prowler kubernetes ...
|
||||
```
|
||||
|
||||
If you need to skip TLS verification for internal proxies, you can set the `K8S_SKIP_TLS_VERIFY` environment variable:
|
||||
|
||||
```console
|
||||
export K8S_SKIP_TLS_VERIFY=true
|
||||
prowler kubernetes ...
|
||||
```
|
||||
|
||||
This will allow Prowler to connect to the cluster even if the proxy uses a self-signed certificate.
|
||||
|
||||
These environment variables are supported both when using an external `kubeconfig` and in in-cluster mode.
|
||||
|
||||
Reference in New Issue
Block a user