Configuration
The Polaris Secure Proxy can be configured using environment variables. The table below lists all available configuration options.
Variable | Description | Default |
---|---|---|
POLARIS_CONTAINER_WORKLOAD_BASE_URL | The base URL of the workload that the proxy will be protecting. | |
POLARIS_CONTAINER_ENABLE_LOGGING | Set to true to enable logging. Only the URL of the proxied requests is logged. | false |
POLARIS_CONTAINER_ENABLE_CORS | Set to true to enable CORS if you need to communicate with the proxy directly from a browser. | false |
POLARIS_CONTAINER_ENABLE_INPUT_ENCRYPTION | Set to true to enable encrypted HTTP requests. | false |
POLARIS_CONTAINER_ENABLE_OUTPUT_ENCRYPTION | Set to true to encrypt the HTTP responses. | false |
POLARIS_CONTAINER_URL_HEADER_KEY | The name of the HTTP request header containing the encrypted URL of the request that needs to be proxied. | polaris-url |
POLARIS_CONTAINER_HEADER_KEY | The name of the HTTP request header containing the encrypted headers of the request that needs to be proxied. | polaris-secure |
POLARIS_CONTAINER_RESPONSE_KEY_HEADER_KEY | The name of the HTTP request header containing the public key to be used to encrypt the response. | polaris-response-public-key |
POLARIS_CONTAINER_CONTEXT_ROOT | The base URL for the proxied requests. | |
POLARIS_CONTAINER_KEY_TYPE | The type of key that the key management module will connect to. Possible values: ephemeral , google-federated , or azure-skr . | ephemeral |
POLARIS_CONTAINER_LOG_LEVEL | The log level for the proxy. | info |