© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•5mo ago
sdr

Tunnels and Zero Trust Apps

Im trying to figure out the right way to use named tunnels and zero-trust apps per customer for on-prem deployments.

Current Setup:
K3s cluster with a tunnel management container running cloudflared
I create a named tunnel for each customer deployment, and use its tokens to activate it
Each customer gets a Zero Trust CF application, with 2 policies attached:
1: Require customer-specific service token (which I also create)
2: Block all other requests
Tunnels are associated with the customers CF App via the aud config
Tunnels have ingress rules for target services with public DNS records created for endpoints
At runtime I make a server side request to this tunnel with the authenticated users creds in the headers

This setup works, but it’s awkward to manage and has too many moving parts (app + service token + policy + tunnel + DNS).
Is there a more streamlined approach for managing customer named tunnels?
Are there recommended patterns for this use case that would simplify the architecture or should I be doing this a more “Cloudflare” way?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

CORS and Zero Trust Tunnels
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
IPv6 cloudflared (zero trust tunnels)
Cloudflare DevelopersCDCloudflare Developers / general-help
13mo ago
Run Database through Zero Trust Tunnels
Cloudflare DevelopersCDCloudflare Developers / general-help
13mo ago
Minecraft server over Cloudflare Zero Trust Tunnels
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago