Hello the communauty
I would like to use zero acces trust on my n8n offsite and configure a bypass for the webhook .
I search on the policies i see no exception rules in this sens . Thanks for your help ![]()
My tunnel used is cloudflare
Hello the communauty
I would like to use zero acces trust on my n8n offsite and configure a bypass for the webhook .
I search on the policies i see no exception rules in this sens . Thanks for your help ![]()
My tunnel used is cloudflare
Hi @Chrisdu68 Welcome!
Access has no exception rule inside a policy, the bypass has to be its own application. Create a second self-hosted application on the same hostname, scoped to the webhook path, and give it a single policy with the action set to Bypass and Everyone included. Leave your existing application on the hostname untouched. Cloudflare evaluates the more specific path first, so the editor stays behind Zero Trust and only that path is open.
Add one for each endpoint you use, production and test webhooks are separate paths in n8n:
n8n.example.com/webhook
n8n.example.com/webhook-test
n8n.example.com/webhook-waiting
An Allow policy with Everyone won’t do it, that still runs the identity check and the calling service has no way to pass it. If you turned on “Protect with Access” in the tunnel settings, cloudflared validates the Access JWT itself and will reject the bypassed path, so that has to come off for this hostname.
The bypassed path is fully public, so set header auth on the Webhook node.
Worth adding the part that usually bites once this is working. The moment that path is on Bypass it is open to the whole internet, so the webhook needs authentication of its own. The n8n webhook node has header auth built in, so set it and have the caller send the header. Otherwise you have traded Zero Trust for a public unauthenticated endpoint that fires your workflow for anyone who guesses the path, and those paths are guessable if the workflow has ever been shared or screenshotted.
The other one is specific to running through a Cloudflare tunnel: watch the proxy timeout. Cloudflare cuts the connection at around 100 seconds, so if your webhook is set to respond when the last node finishes and the workflow runs longer than that, the caller gets a 524 while the workflow actually completes fine on your side. That looks identical to a broken webhook and sends people back to re-checking their tunnel config for hours. Set the webhook node to respond immediately and do the work after the response, and the caller stops caring how long the rest of it takes.
Hello ,
Thanks for your precious advice. I done a webbook with a secret whom verify the header and give a webook respond ( 404) if it’s not ok . Il lauch the call only with pyton fonction who send a curl with the secret non hardcorded but with the environnement variables .