Skip to main content
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

  • inbound is separate from the outbound mode. A request that names one side keeps the other side.
  • A change to boat-only also 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

Stops

  • boat ssh, boat scp, boat forward and 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
Each of these answers 403 inbound_closed. The sandbox has no URL of its own: url and sshEndpoint are null.
boat-only also stops your own SSH. Root in the sandbox decides what answers on the SSH port, so boat cannot leave that port open.

Publish a port

With boat-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 deny and allow block that tunnel today. Use outbound open with a published port.
Do not put your account API key in a sandbox that runs untrusted code. With outbound open, code that holds it can publish a port: boat cannot tell that call from yours. With outbound deny or allow, boat refuses it.