Secure your remote T3 Code server
mainWhen exposing the T3 Code server to a network (outside of localhost), follow these security practices:
- Set an Auth Token: Always use
--auth-token(orT3CODE_AUTH_TOKEN). Treat this token like a password. - Use Bootstrap File Descriptors: If you control the process launcher, prefer using
--bootstrap-fd <fd>. This allows the launcher to send a one-shot JSON envelope containing the auth token over an inherited file descriptor, preventing the token from appearing in process environment variables or command-line arguments. - Restrict Binding: Instead of binding to all interfaces (
0.0.0.0), prefer binding to a specific trusted interface, such as a LAN IP or a Tailscale Tailnet IP.