Connect a Cloudflare account

Add a reusable Cloudflare connection and approve it on Cloudflare's own screen.

Add a reusable Cloudflare connection from the Connections tab.

Before you start

  • You are an Owner, Admin or Developer, or your custom role holds connections:write. See Roles and permissions.
  • The person who approves belongs to the Cloudflare account and holds the Super Administrator or the Administrator role. Cloudflare describes Administrator as unable to manage members or the billing profile. Check Cloudflare's account roles for the current table. Choose someone who will stay in the account, because Fleet's access ends when that user leaves.
  • The account must allow public OAuth apps. If your account is missing from Cloudflare's list, ask its administrator to allow Fleet for EmDash under Manage Account > Members > Settings > Public OAuth App access, then start again.
  • A Workers Free account works. See Workers Free and Workers Paid.

Steps

  1. Open the Connections tab, select Add connection, then Cloudflare. In a site wizard, select A new connection instead.
  2. Read what Fleet asks for and the Workers Free limits, then continue to Cloudflare.
  3. Sign in with the user that belongs to the account the site will run in.
  4. On the consent screen, choose the account. Required permissions cover each site's Worker, D1 database, R2 file storage and KV settings store. You can turn off the optional ones, which read the Workers plan and a site's logs.
  5. Approve within 10 minutes.
  6. Back in Fleet, check the account name and identifier.
  7. Select This account is on Workers Paid only when it is. Fleet reads the plan itself when you allowed it.
  8. Finish the form.

Result

The connection reads Active in the Connections tab. Only the sites of this workspace use it. If the account is already connected in this workspace, Fleet keeps the older connection and revokes the new authorization.

To remove Fleet's access, use the list of applications you authorized on Cloudflare, or revoke the connection in Fleet. See Revoke a connection.

If something goes wrong

You canceled on Cloudflare:

You canceled on <Provider>. Nothing was connected.

More than 10 minutes passed, or you reloaded an old page:

This link expired. Start again from the Connections tab.

Cloudflare could not finish the authorization:

<Provider> did not complete the authorization. Try again.

Cloudflare refused a connection later, for example because the user who approved left the account. The site shows this status and Reconnect:

Connection needs reconnecting

You reconnected with another account. Fleet keeps the old connection as it was:

This is a different <Provider> account than this connection uses. Select Reconnect and pick the account the Connections tab names. If the tab shows only an account ID, pick the account you connected first.

For all causes, see Connection needs reconnecting.

Related

Report a problem with this page