End User grants

An End User grant lets the owner of a Cloudflare or GitHub account approve access through a one-time link, without signing in to Fleet.

What it is

An End User grant is the permission the owner of an account gives through a link you send. Use it when the site belongs in an account that is not yours: the person you build it for owns the Cloudflare account that runs the Worker, or the GitHub account that holds the repository. Fleet calls that person an End User. They have no Fleet account and approve only on the provider's own screen.

How it works in Fleet

  1. Select Ask the account's owner as the source of the Cloudflare connection, the GitHub connection or both, when you create or link a site. Fleet creates one link for each provider.
  2. Enter the End User's email address so Fleet emails the link, or copy each link and send it yourself. A link is valid for 24 hours, 72 hours (the default) or 7 days.
  3. The End User opens the link and sees which account asks, the site name and each permission in plain words. See What Fleet for EmDash is asking for. They approve on Cloudflare or GitHub, with no Fleet sign-in.
  4. Fleet emails you. The connection reads Awaiting confirmation. On the site page, check the provider account name and identifier, then select Confirm account, or Reject. For a Cloudflare grant, also select or clear This account is on Workers Paid, after asking the End User.
  5. When every grant is confirmed, Fleet continues with the saved settings.

While a site waits for a grant, its status is Awaiting permissions, Fleet provisions nothing and the site tile says Send the link to the account owner.

Fleet creates and changes only the Worker, D1 database, R2 bucket and KV namespace in Cloudflare, and the one repository on GitHub. For a site that already exists, it only reads the Worker's settings and health. No Fleet code runs on a site.

Rules and limits

  • A link works once, and Fleet shows it only once, so copy it when it appears. You can cancel a link or create a new one with New link, which cancels the one before it.
  • The End User can select I was not expecting this request. The site page then says the person you sent the last link to did not recognize the request, and offers Create link again.
  • A grant is bound to one site and cannot be reused. Reusable connections are your own. See Connections.
  • Anyone who holds the link can finish it with their own account. Confirm the account name and identifier before provisioning continues, and reject a grant that does not match. Rejecting revokes the access at the provider.
  • If the links are not all used within 7 days, provisioning stops with this message: "Not every link was used within 7 days, so Fleet created nothing. On the site page, select Create link or New link, then send it again." The site stays in Awaiting permissions.
  • On GitHub, only an organization owner can install Fleet for EmDash, so a member forwards the link to an owner. On Cloudflare, an administrator who blocked public OAuth apps must allow Fleet for EmDash first. The grant page tells the End User what to do, and the link stays open until it expires.
  • Fleet keeps the account identifier and display name the provider returns, and never asks for or stores anyone's name. The End User removes access at any time on the provider's authorized-applications page, which the grant page links.
  • Revoking a grant makes the site show Reconnect needed, and the site page offers Create reconnect link. Send the new link to the same account owner. See Connection needs reconnecting.

Related how-tos

Report a problem with this page