Authentication
- For local scans, no authentication is required.
- For remote repository scans, authentication can be provided via:
Private Repository Hosts
Prowler CLI scans a repository on an internal network with no extra configuration. On the CLI the operator supplies the repository URL themselves, so there is nothing to defend against and the check below does not apply. Prowler App rejects a repository URL that resolves to a non-public address, as an SSRF defense. There the URL arrives from a tenant and the worker must not be used to reach the internal network it runs in. The check covers both the connection test and the scan clone. To scan a self-hosted GitLab, Gitea or Bitbucket from Prowler App, declare the trusted ranges:169.254.169.254), loopback and the rest of the internal network remain protected. Malformed entries are rejected, and a non-empty allowlist is logged as a relaxed security control.
The scan runs in the worker, not the API, so the variable has to reach the worker:
- Docker Compose: set it in the root
.env; it reaches the worker through the shared environment file. - Helm: add it under
api.djangoConfig, which is rendered into the API ConfigMap that the worker inherits throughenvFrom.
PROWLER_IMAGE_PROVIDER_ALLOWED_PRIVATE_NETWORKS.
The check also applies to the Terraform modules Trivy downloads while scanning the repository. In Prowler App, Trivy runs behind a local proxy that refuses module sources resolving to a non-public address outside the allowlist, fetches git modules only over http and https, and does not receive the cloud credentials of the worker, so s3:: and gcs:: module sources are not authenticated. Modules from public registries and public git hosts keep working. When HTTPS_PROXY or HTTP_PROXY is set for the worker, it must be an http:// proxy URL, and any other scheme or a malformed URL fails the scan with an error; the local proxy forwards the vetted connections through it to the address it checked.
