Isolated branches

A branch that can't reach real users or mail and has no real keys: what it starts with, the data you can give it, what is off and locked, how it merges, and what isolation does not cover.

An isolated branch is a copy of the project for work that must not reach real users, mail or data: an agent's run, a contractor's starting point, a risky change. It has your code and your tables, but none of the real keys, and unless you choose otherwise none of the rows.

Make one

In the editor, choose New branch… › Branch type › Isolated. Ask your assistant for an isolated branch, and it calls fork_project with isolated set. A branch made from an isolated branch is isolated too, and every branch an Isolated collaborator makes is isolated whatever they ask for.

Its data

An isolated branch starts with empty tables. The owner and Full-access collaborators can choose its data under Database in New branch, when it starts from main or an ordinary branch: Empty database (the default), Full copy (the rows as they are now) or As of a date and time (the rows as they were then, up to 7 days back). Use a copy to look at real data, such as yesterday's rows, on a branch that still has no real keys, none of main's private files or queued tasks, and email and live messages locked off.

A copy holds your real users' rows. An Isolated collaborator's branches always start empty, and they can't open a branch with copied rows. A branch made from an isolated branch gets that branch's rows, and its data can't be chosen.

What it starts with

  • The code.
  • A database with the same tables and no rows, filled by the project's seed script if it has one, unless its maker chose a copy of the rows (see Its data).
  • Main's preview values where someone saved one; otherwise its keys are empty. Made from another branch, every key is empty.
  • None of main's private stored files. Main's public static assets, such as its logo and images, still show.
  • None of main's queued tasks, connections to other Floot apps, Google and Microsoft account grants, self-edit token or push notification keys. It gets a push key of its own, so a push reaches only people who subscribed on the branch.

What is off and locked

These switches are off on every isolated branch, and nobody can turn them on:

  • Send email: every email the branch sends, including sign-in and password-reset codes, is caught in its test inbox and never delivered. Email logs show it as "Caught · not sent". The one exception is mail to yourself, below.
  • Receive main's email: main's real inbound mail never reaches the branch.
  • Both realtime switches: its live messages stay on its own channels. Main's users never see them, and it never sees theirs.

What waits or runs in test mode

  • Scheduled jobs and queued jobs start off. Turned on, they run against the branch's own data. Your assistant can turn the branch's scheduled jobs on or off.
  • Running a scheduled job once: on an isolated branch that started with an empty database, anyone who can see the branch's data, read-only collaborators and team readers included, can press Run now on a job or ask their assistant to run it, without edit access. The job reaches only the branch's own database, test keys and caught email. An assistant connected read-only still can't run it. On a branch that started with copied rows, as on main and ordinary branches, only people who can edit can run jobs.
  • Payments and shipping run in test mode.
  • Webhooks from outside services are set up with main's address, so they don't reach the branch.
  • OIDC cloud connections can't be used.

Testing sign-in and email

Sign-in codes, password resets and every other email work on an isolated branch: they are kept in its test inbox. Run your app's sign-in or Forgot password? as usual, then open Services → Email → Email logs and read the code or link in the caught email. Your assistant can read them there too. Caught email is kept for 7 days.

On an isolated branch you made yourself as the project's owner, an email addressed only to your own Floot account address is delivered to your mailbox instead, so you can test sign-in or a reset with your own address end to end. It comes from Floot's shared sending address (as on a project with no email domain set up), never from your project's own domain, and counts against that address's daily limit; past the limit it is caught again. Mail to anyone else, any email with another recipient, and every email on a branch someone else made stay in the test inbox.

That is also how you get back in when you lose a password on the branch, your own admin one included. The branch's users are its own: a reset there changes nothing on main. See App sign-in and the test inbox.

Connecting to other apps

  • An isolated branch starts with none of main's connections to other Floot apps. Ask your assistant to connect it to the app it needs, or to a branch of that app, and approve the request as on main. Isolated collaborators can't connect apps.
  • A call always reaches the other app's published version, also from your branch's preview. Publish the other branch before you call it, or the call answers "not published".
  • To check where a connection points, open Services → Apps on your branch: it shows each connected app's name, address and functions. Compare the address with the other branch's published address on its Publish screen.

Self-edit and the branch's id

An ordinary branch can have Self-edit of its own, also while main has none, so you can try it on a branch first. Until main has Self-edit, the branch's key works at most at the Branch level: it reads the branch's code, data and logs and writes the branch's database, but can't change code, publish, merge or make branches. Once main has Self-edit, a branch's key never works above main's level. If Self-edit is deleted from main, every branch's key stops working, whatever its level.

An isolated branch can't have Self-edit: its key acts as the project's owner. If the app needs it, the owner adds it on main. Without Self-edit your app's code has no built-in value with its own project id. When code on the branch needs it, save the branch's id as one of the branch's keys: the id is in the editor's address bar, after /project/.

Merging and isolation

Merging an isolated branch into main is an ordinary merge, made by someone with Full access: its code and migration script run on main, and reviewing the merge is the gate. Merging main into an isolated branch carries code and tables only: the migration script can't read main's data, and no key values, connections or email domains are copied, so the branch stays isolated.

What isolation does not cover

  • Floot does not block the branch's own code from calling the internet.
  • Outside services work only with keys you put on the branch, and those are used as they are: a real key saved as a preview value, or a key or address written into the code, reaches the real service.
  • Services billed to the project's payer, such as AI credits and hosting usage, still count.
  • A database outside Floot is not copied, so the branch connects to the real one.
  • Anything in the code itself, such as values written into files under static/, column defaults or enum values, can be read on the branch.