Notes and limitations
What the sandbox does not stop
The sandbox exists to protect this Mac. It does not stop the following.
| Not stopped | Description |
|---|---|
| Operations on the app under test and its accounts | Deleting, purchasing, sending and so on are the test itself, so they are not blocked. Check the contents of scenarios you received from others before running them |
| Services on this Mac's localhost | To reach the bridges, every localhost port is open (only the adb server, the Emulator and Docker's TCP API ports are closed). If a service listening there has weak authentication, a scenario can go through it to run things outside the sandbox (see the list below) |
| Bridges of other devices | Bridges of other devices on the same Mac are reachable too, so a scenario can read and drive other devices' screens |
| Exfiltration through the device | Contents of files a scenario could read can be sent to the device as input to the app. Nothing stops the app from sending it out |
| Reading secrets that are not in the list | The read denial is a list of the usual places and is not exhaustive. Add places to sandbox.denyRead |
| What runs outside the sandbox | fleetest itself, evaluating Package.swift and building dependencies, the containers of the compose.yaml services, the app under test |
On a Mac that runs untrusted scenarios, do not leave the following running.
- Endpoints that run code without authentication (browser or Node.js debug ports, Jupyter, Docker exposed over TCP on a port other than the default, and so on): a scenario can run code outside the sandbox
- Local proxies (traffic analysis tools, corporate proxy agents, SSH port forwarding, and so on): a scenario can
bypass
allowedDomainsand reach any destination - Docker's API published on TCP (
0.0.0.0:2375/2376): the containers started for a run's services (compose.yaml) could reach it and mount this Mac's files. fleetest refuses to start services while it is so, andfleetest doctorwarns
What scenarios cannot do (writing to the temporary folder, reading environment variables and so on) and what to use instead you can try step by step in Checking the sandbox and opening the holes you need.
Operational notes
-
Do not put production credentials in scenarios, profiles or datasets. Use test accounts. Even with
redactAccountValueson, text captured in screenshots and recordings is not redacted. -
Writing the port in
allowedDomainsis recommended. A line without a port reaches every port of the host, including other services such as databases. -
Use
allowDirectAdbonly when needed. Once open, a scenario can reach the outside through the shell inside an Emulator and reach every connected Android device. The adb keys (~/.android) also become readable. Speed is almost the same as with delegation. -
sandbox.disabledis for temporarily isolating a cause. If a scenario works without the sandbox, it is doing something the sandbox refuses; rewrite it with the fixed doors in steps 3 and 4 of Checking the sandbox and opening the holes you need and restore the setting. -
From MCP, only full runs and service starts ask for approval. In Claude Code, the installer writes settings that ask for confirmation only for
ft_start_run(the full run, including the scripts before and after it) andft_services(starting the services).ft_run_scenarioruns scenarios without asking (inside the sandbox). How to choose the approval scope is in MCP server. -
macOS updates can change the behavior. The
sandbox-execfleetest uses is marked deprecated by Apple, and its syntax is not officially documented. If scenarios start failing with permission errors after a macOS update, update fleetest. -
CI is supported only on self-hosted Macs with a logged-in GUI session. GitHub-hosted runners (
macos-*) are not supported (Running in CI). -
A scenario that fails because of a device problem is re-run from the start (not necessarily on the same device; this cannot be turned off). Point irreversible operations such as sending or purchasing at an environment where a second delivery is harmless (test payments, a staging server) (Writing robust scenarios). Per-command and per-UI-component constraints are in the list of caveats.
-
Using a physical iOS device on a runner machine puts a development signing key in a keychain without a password (Adding physical devices). Anyone who can log in to that runner machine can sign with this key.
When things do not work
| What happens | Where to look |
|---|---|
| Writing a file fails with "You don’t have permission" | Only the two TestLog folders are writable |
Outbound requests time out, return 403 Forbidden or fail with kCFErrorDomainCFNetwork error 310 |
The troubleshooting table in Network access from scenarios |
| The scenario does not start and an error about the settings file appears | The JSON in ~/.config/fleetest/config.json and whether it has unknown keys |
| An environment variable looks empty | Only the variables fleetest uses are passed to scenarios (Sandbox defaults (writable places, unreadable places, destinations)) |
Related
- Network exposure and security — the ports fleetest opens, outbound traffic, and running on a closed network
- Checking the sandbox and opening the holes you need
- Sandbox defaults (writable places, unreadable places, destinations)