The optional site admin connection
What the optional site admin connection lets Fleet read, what its scope can reach and how to remove it.
What it is
The site admin connection is optional. It links Fleet to one EmDash site, with the permission of one of that site's administrators, so Fleet can read the installed plugins and the update status. Every other feature works without it. No Fleet code runs on a site.
To create it, Fleet registers a public OAuth client named "Fleet for EmDash" on the site. You sign in on the site as an administrator, who is a user of the site and not of Fleet, and approve the consent page for the scope admin.
How it works in Fleet
What the scope reaches. admin is the narrowest EmDash scope that reaches the plugin routes. A token that holds it can do whatever a site administrator can do, including writing content, settings and users. Fleet never writes. It calls only these three read routes, once an hour:
GET /_emdash/api/admin/pluginslists the installed plugins and their versions.GET /_emdash/api/admin/plugins/updateslists the plugin updates.GET /_emdash/api/admin/core-updateshows whether a newer EmDash release exists.
Connect it. An Owner, Admin or Developer selects Connect site admin on the site page, signs in on the site and approves the consent page. Fleet stores an access token valid for 3600 seconds and a refresh token valid for 90 days, both encrypted and unreadable by members. The only thing Fleet creates on the site is the OAuth client registration, when you select the button.
Without it. The Plugins tab reads the repository (package.json and astro.config.mjs). A plugin installed from the EmDash registry shows "not visible to Fleet", with the hint "Connect site admin to see them".
When it expires. The refresh token ends after 90 days, or a renewal fails. The site then shows Site admin connection expired and Reconnect site admin. Fleet warns 7 days before the date. See The site admin connection expired.
Remove it. Disconnect on the site page. Fleet deletes the rows it stored and revokes the tokens where the site's route answers. A token the site does not confirm revoked stays valid until it expires. To end it sooner, another administrator of the site disables, then enables, the EmDash user who approved the connection, because EmDash deletes every OAuth token of a disabled user. Deleting the "Fleet for EmDash" OAuth client stops new connections but does not end tokens already issued (EmDash 1.5.0).
Rules and limits
- The connection belongs to one site host. Before every request that carries the token, Fleet rereads the site's domains and workers.dev host from its Cloudflare account and disconnects when the host is no longer listed. After a domain change, select Connect site admin again.
- Fleet sends the token only to the site's own https address and never follows a redirect.
- The connection opens no browser session and creates no user on the site. Open admin goes to the site's login page.