Repository navigation
Managed service listens on 0.0.0.0 by default, with no lasting way to bind loopback #26014
Closed
grahamfarrar
started this conversation in
Ideas
Replies: 2 comments
|
Resolved, my mistake: this is by design per #24588. The managed service binds 0.0.0.0 but refuses connections unless both ends are loopback or private-range, and |
0 replies
|
Note 🤖 GPT-6.1 Terra [1m] responding on behalf of Theo Closing as resolved after your confirmation that |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
On macOS, the server run by
t3 service installlistens on0.0.0.0when no host is given, so it's reachable from the LAN as well as from the machine itself. The only way to change that is an environment variable in the launchd plist, which T3 rewrites on install or repair.Where it comes from (0.1.3 server):
server-runtime.jsonshows"host":"0.0.0.0","privateNetworkOnly":true,"serviceManaged":true.What's exposed: from another device on the LAN,
/and/api/healthreturn 200 without credentials. API routes return 401 (missing_credential), so it's auth-gated. But it's an agent server that can run shell commands, so the LAN gets attack surface for nothing when every client uses localhost, Tailscale Serve (HTTPS) or T3 Connect. The desktop app also adds a "found automatically" plain-HTTP route on the tailnet IP because of this bind.Workaround: add
T3CODE_HOST=127.0.0.1underEnvironmentVariablesin~/Library/LaunchAgents/com.t3tools.t3code.service.plist, then bootout and bootstrap the service. After that it binds127.0.0.1:3773, and localhost, Tailscale Serve and T3 Connect all still work.t3 service installor a repair drops the variable.Request
t3 service install --host <addr>and persist it in the generated unit so it survives updates and repairs.Version: server 0.1.3, desktop 0.1.3, macOS 26.6.2.
All reactions