- Basic Authentication (Environment Variables):
REGISTRY_USERNAMEandREGISTRY_PASSWORD - Token-Based Authentication:
REGISTRY_TOKEN - Manual Docker Login: Existing credentials in Docker’s credential store
Basic Authentication (Environment Variables)
To authenticate with a username and password, set theREGISTRY_USERNAME and REGISTRY_PASSWORD environment variables. Prowler passes these credentials to Trivy, which handles authentication with the registry transparently:
Token-Based Authentication
To authenticate using a registry token (such as a bearer or OAuth2 token), set theREGISTRY_TOKEN environment variable. Prowler passes the token directly to Trivy:
Manual Docker Login (Fallback)
If no environment variables are set, Prowler relies on existing credentials in Docker’s credential store (~/.docker/config.json). To configure credentials manually before scanning:
This method is available in Prowler CLI only. In Prowler Cloud, use basic authentication or token-based authentication instead.

