Files
Kabir Sikand a8742ad9c6 cmd/tailscale/cli: add funnel --auth flags for authenticated Funnel
Add --auth, --allow, and --auth-session-ttl to `tailscale funnel`. --auth
turns on Login With Tailscale for internet visitors (setting
FunnelAuth{Provider:"tailscale"} on the mount's HTTP handler); --allow takes
a comma-separated allowlist of exact emails, "*@domain" domains, or
"tailnet:" entries, each validated up front; --auth-session-ttl sets the
browser session lifetime (zero uses the 12h default).

The flags are funnel-only and --allow/--auth-session-ttl require --auth.
Absent --auth, behavior is exactly as before, so scripted funnels are
unaffected. Help text calls out that without --auth a Funnel is public to
the entire internet. Funnel status now prints each mount's auth posture
(public vs. Login With Tailscale, with any allowlist) so users can see at a
glance whether an endpoint is protected.

Updates tailscale/corp#38806

Change-Id: I19a2c13b53690308528824aaf68356a88e522dd6
Signed-off-by: Kabir Sikand <[email protected]>
2026-07-27 19:35:41 +00:00
..