Bind Worker to Zero Trust Application


I am trying to have a worker call a self-hosted HTTP service that is proxied with cloudflared and protected by Cloudflare Zero Trust. In order to call the application currently, I have to create a static Service Key and store it as a secret in the worker.

I propose allowing users to “bind” a Zero Trust application to a Worker. Creating this binding would cause an access token for the app to be passed to every worker invocation as part of the environment. This would allow users to call Zero Trust protected applications without creating and storing a static key.