By default, code with root in a sandbox can open a port to the internet. With
boat-only, the host drops every connection that does not come from boat. Code in the sandbox cannot make a port public.
Set it
inboundis separate from the outbound mode. A request that names one side keeps the other side.- A change to
boat-onlyalso ends the connections that are open to the sandbox. - For many sandboxes, set it on an environment:
boat env set base --inbound boat-only.
What works with boat only
Works
boat execand the command API- File read and write through the API
- Snapshots, stop, resume and fork
- A port that you publish from outside
Stops
boat ssh,boat scp,boat forwardand editors over SSH- Desktop and browser streaming
- Raw ports on the IP address of the sandbox
host <port>inside the sandbox- Signed URLs for large files
403 inbound_closed. The sandbox has no URL of its own: url and sshEndpoint are null.
Publish a port
Withboat-only, only a caller outside the sandbox can publish a port.
- The answer is the public URL. It carries a token, as on an open sandbox. Read Public URLs.
- A published port stays through stop and resume.
- When you set
boat-only, boat keeps the ports that you published from outside. It removes the others. - A published URL uses a tunnel that the sandbox opens. Outbound
denyandallowblock that tunnel today. Use outboundopenwith a published port.