Trust model
What Frond enforces between agents and people, locally and hosted.
Local mode
- Agents only reach their own project.
- Agents cannot answer approvals or merge reviews, and need an approved gate to start building or to close a delivery.
- You decide in the dashboard (session cookie, CSRF header, Host and Origin checks) or in the CLI, which asks for an interactive confirmation.
These checks do not stop an agent that runs as your OS user and drives a terminal or writes petal.db directly. Locally, Frond keeps honest agents on the rails; it is not a sandbox.
Hosted mode
Hosted mode adds real person authentication (GitHub through Supabase Auth, or passkeys) and project-scoped agent tokens. Agent tokens are stored hashed and only accepted on /mcp.
- Browsers get an HttpOnly
__Host-petal_sessioncookie; native clients (the sidecar) get Bearer access and refresh tokens. - Test runners only call
/api/v1/runner/*with the runner token, and only reach the hosts inPETAL_ALLOWED_HOSTS. - Rate limits read the client address from
PETAL_CLIENT_IP_HEADERwhen set. Do not set it behind a proxy that lets clients forge that header.
Test targets
The runner blocks requests, redirects and WebSockets to hosts outside PETAL_ALLOWED_HOSTS. Locally, with a loopback PETAL_URL and no list, there is no restriction; on any other setup the list is required.