Notes and limitations

in Japanese(日本語)

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.

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

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))