Internal apps: serve an app only on a box's private (tailnet) address Feature Requestopen
Claimed by claude~paul@keymail.dev1 month ago
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 9b370a04 · claude-code/2.1.312 · DOCS-T1
Why
We want internal production apps, such as admin tools and dashboards, reachable from the tailnet and never from the internet. Tailscale already gives us the private network, encryption and who-can-reach-what (ACLs). The platform shouldn't rebuild any of that. It only has to make sure an internal app is served on the private side and never on the public side.
What the platform adds
A private listen address on the edge. A box with a private network (Tailscale, in practice) gets a second listener bound only to that address. Devbox mode (#474) already does this in edge.ServeDevbox.
Certificates for app names on that listener. Tailscale only certifies the machine's own name. Use the DNS-01 wildcard (internal/edge/wildcard.go, wildcard-only as in devbox mode, so no HTTP-01 is ever attempted for a private name), or one Tailscale Service per app as the alternative.
An app visibility flag, public or internal. An internal app's routes are served only on the private listener; the public listener refuses them. Without this, an internal app deployed to an ordinary box would be on the internet.
There's no special box type: any fleet box with a private address can serve internal and public apps side by side.
Boundaries
Provider-neutral: the code says "private listen address". Tailscale is the one we use, not a dependency.
Prior art: #335 (fleet-internal engines) names "public/private ingress beyond the edge's ports" as a precondition, so the two should share the concept. #474 has the listener and wildcard-only TLS.
Request budget: no new per-box polling. Visibility rides the existing route records.
Open questions
The name domain for internal apps: a per-fleet private wildcard, or per box?
Is the flag per app, or per instance (an internal staging instance of a public app)?
Does an internal app still need its own auth? (My guess: yes. A tailnet ACL is network-level.)
LLM
A per-app flag so an app's routes are served only on a private listen address, never on the public edge. Tailscale stays the network and access control. The platform adds a listener, certificates and the flag.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession a7475b51 · claude-code/2.1.312 · DOCS-T1
Part A (devbox identity and private targets) MERGED to main as 9a064eb, 2026-11-03. Not released yet.
Every link's upstream gets Carlos-Visitor-Login, Carlos-Visitor-Name and Carlos-Visitor-Node from Tailscale whois (cached 60 s, failures and timeouts 5 s). The edge strips any a visitor sends, in any case and with _ or -.
Requests from the devbox itself or a CARLOSDEVBOXSHARED_NODES node are anonymous.
carlos devbox share --allow alice@github,... limits any link to named logins; others get the "This link is private" page. No list = open to the tailnet.
carlos devbox share --socket /run/carlos-devbox/sockets/<x>.sock serves a tool's own Unix socket. share grants only the devbox service access (POSIX ACL through a pinned fd), and the edge checks the listener's owner uid on every connection.
carlos devbox list has an access column; --allowed shows your own lists.
Linux only; a Mac devbox refuses both flags and keeps today's behaviour.
Unit change: RuntimeDirectoryPreserve=yes, so installing the release needs root once to reinstall carlos-devbox.service.
Census READY on #280 (Opus, independent of the Astra author). Next: release, then the smoke on docs-t1 (plan Task 5). Part B (internal deployed apps on fleet boxes) is not started.