"You" is the developer, freelancer or agency that uses Fleet. An "End User" is your client. An End User never signs in to Fleet.
Four account setups
A site runs in a Cloudflare account and keeps its code in a GitHub account. For each one, reuse a connection you already have, make a new one with OAuth, or send your client a one-time link that grants access to that one site.
| Setup | Cloudflare account | GitHub account | What the End User does |
|---|---|---|---|
| Your own Cloudflare and GitHub | Yours | Yours | Nothing. There is no End User. |
| End User Cloudflare | Your client's | Yours | Opens a one-time link and approves access to that site's Cloudflare account. |
| End User GitHub | Yours | Your client's | Opens a one-time link and approves access to that site's GitHub account. |
| End User Cloudflare and GitHub | Your client's | Your client's | Opens two one-time links, one for each account. |
A one-time link works once, covers one site and expires after 72 hours unless you choose 24 hours or 7 days. The End User needs no Fleet account. A site waiting for a link shows "Awaiting permissions", and Fleet creates nothing until every link has been used.
What Fleet accesses
Fleet asks each provider for the narrowest permissions it needs, through OAuth only, and uses them only for the site you chose.
| Cloudflare permission | What Fleet uses it for |
|---|---|
| Workers | Create, update and delete this site's Worker, set its address, attach a custom domain if you choose one, and read the account's Workers and domains. |
| Database (D1) | Create, back up, restore and delete this site's database, and check that it still exists. |
| File storage (R2) | Create and delete this site's file storage, and check that it still exists. |
| Settings store (KV) | Create and delete this site's settings store, and check that it still exists. |
| Workers plan (optional) | Read the account's subscriptions to see whether it is on Workers Paid. You can turn this off on Cloudflare's page. |
| GitHub repository permission | What Fleet uses it for |
|---|---|
| Actions (read and write) | Start the build and update workflows and read their runs. |
| Contents (read and write) | Read the repository and commit the changes Fleet makes to it. |
| Pull requests (read and write) | Open the pull request of an update. |
| Metadata (read) | Required by GitHub for every GitHub App. |
| Workflows (read and write) | Write Fleet's two workflow files into a site Fleet creates, once, in its second commit. GitHub lists this permission as Update GitHub Action workflow files. |
| Repository creation (write) | Create the site's repository, which starts empty, and write an official EmDash template into it. |
What Fleet never accesses
- Fleet never accepts an API key or token that someone types in. It holds the OAuth tokens itself and never shows them, not even to you.
- Fleet requests no name, email address or profile from Cloudflare or GitHub, and never asks you for a name.
- Fleet requests no GitHub organization, account or Administration permission, and reaches only the repositories selected on the installation.
- Fleet writes its two workflow files once: at site creation, or in a pull request you merge after choosing "Let Fleet manage this site". It never changes a workflow file afterwards and never deletes a repository, branch, release or workflow run.
- Fleet creates no build trigger in Cloudflare unless you choose Cloudflare Workers Builds for a site. An Owner or Admin must first offer it in Account Settings, and you approve Workers Builds access on the site's Cloudflare connection. A push to the production branch deploys only where you turned on Deploy when the production branch changes, which is off by default. With Workers Builds, a push uploads a version but does not put it live. You deploy from Fleet.
- Fleet does not host your sites, edit their content or run anything on them.
Fleet installs nothing on a site
Fleet installs no plugin or code on your sites. Every 5 minutes it reads two public routes of each site, GET /_emdash/api/health and GET /_emdash/api/setup/status, and shows the site as "Healthy", "Update available", "Needs attention" or "Down". Until the first check, the site shows "Awaiting first check". Once an hour, Fleet also confirms through the Cloudflare connection that the site's Worker, database, file storage and settings store still exist.
The optional administrator connection
To list a site's installed plugins and available updates, connect the site's administrator interface to Fleet. An administrator approves the connection on the site's own consent page, and Fleet then reads three things: installed plugins, plugin updates and core update status. It cannot sign in to the admin for you. Without the connection, Fleet reads the plugin list from the repository's package.json and astro.config.mjs.
Builds run in your repository
Each site's repository carries two workflows that run only when Fleet starts them: .github/workflows/fleet-build.yml builds the site and .github/workflows/fleet-update.yml prepares an update. Fleet writes them at site creation, or in a pull request you merge after choosing "Let Fleet manage this site". They run inside GitHub Actions and hold no Fleet credential. Fleet downloads the build, which GitHub keeps for 1 day, and uploads it to the site's Cloudflare account. Fleet has no build servers. A site that uses Cloudflare Workers Builds is built in your Cloudflare account instead. Its updates still build in GitHub Actions.
Builds run on GitHub Actions in the repository. GitHub Free gives the repository owner USD 12 of usage a month and 500 MB of artifact storage. GitHub charges the owner for more.
Deploy, versions and rollback
A deploy starts when you start it. It also starts after an automatic update you turned on. A push to the production branch starts one if you turned on Deploy when the production branch changes. Before each deploy, Fleet records a recovery point of the site's database. Fleet then uploads a new version of the site's Worker, makes it live and waits while EmDash applies any database migrations, which the site page shows as "Migrating".
Fleet keeps every version, and you can roll back to any of the last 10 in one click. If migrations ran after that version, Fleet also offers to restore the database to the recovery point recorded before it. A recovery point is available for 30 days on Workers Paid and 7 days on Workers Free, and an older one shows "Recovery point expired".
How updates run
You decide when each update runs and which sites it covers. You start a core or plugin update yourself, or turn on automatic patch and security updates for a site Fleet created in Direct mode. An update runs fleet-update.yml in the site's repository. For a site Fleet created in Direct mode, the changed files are committed to the repository's default branch and then deployed. Any other site, including a linked site you let Fleet manage, gets a pull request and nothing is deployed.
A build, deploy, update or backup starts without a member only where you turned on a setting for that site. Each setting is off by default. The settings are automatic patch and security updates, Deploy when the production branch changes, Preview pull requests, scheduled backups and Cloudflare Workers Builds. Preview pull requests builds a version of each pull request into the production branch and posts a preview link on it. Fleet never deploys a preview.
Linking a site you already have
Linking is read-only. Fleet reads the site's Worker settings, schedules, domains and repository, and creates, changes or deploys nothing in your accounts. Cloudflare's consent screen lists permissions that allow changes; on a linked site, Fleet only reads until you choose "Let Fleet manage this site". Then Fleet opens a pull request that adds its two workflow files, and you merge it. Fleet builds a preview and makes that version live only when you select "Switch to Fleet". "Stop managing" returns the site to a linked site that Fleet only reads. Unlinking removes the site from Fleet only: its Worker, database and repository stay where they are.
Open admin
There is no single sign-on to a site's admin. The site page's "Open admin" link opens https://<site host>/_emdash/admin/login, where you sign in with the site's own sign-in method.