does anyone know of a way to set or forward metada...
# general
w
does anyone know of a way to set or forward metadata (like HTTP headers) on the requests the CLI makes to the state backend?
g
Currently, the Pulumi CLI does not have a native flag or environment variable (like
--header
or
PULUMI_HTTP_HEADERS
) that allows you to inject arbitrary HTTP headers or metadata into the requests it makes to the state backend. Depending on what you are trying to accomplish, if you need to inject specific headers for security, auditing, or custom authentication (e.g., through a corporate gateway), you might be able to route Pulumi through a local or network-level reverse proxy (like Nginx, Envoy, or a simple Go wrapper) by pointing Pulumi to the proxy with the
PULUMI_BACKEND_URL
environment variable. Haven't tried this before so just a theory.
w
thanks. I'm currently exploring a local reverse proxy, was just hoping that there was a simpler way