How Fleet handles credentials
Fleet connects with OAuth 2.0 only, encrypts every stored credential, and shows a token to no one.
What it is
A credential is anything that lets Fleet act in an account: the tokens of a Cloudflare, GitHub or site admin connection, and the encryption key of a site. Only Fleet holds the tokens. Customers and End Users cannot see them, and Fleet never accepts an API key or a token that you type in.
How it works in Fleet
- Sign-in on the provider. You approve each connection on Cloudflare or GitHub, or on the site for a site admin connection. Fleet receives a token from the provider and never your password.
- Encryption. Fleet encrypts every stored token with AES-256-GCM under its own data key. A secret held in Fleet's own Worker wraps that key and is rotated every 12 months.
- One module. Only one module of Fleet decrypts a credential. It hands a token to no caller and writes it to no log or alert. The steps of a workflow pass around the id of a connection, never the token.
- Bound to its record. Each encrypted value is bound to its record, so a copy placed in another record, account or kind does not decrypt.
- Support access. The access Fleet support uses cannot read the tables that hold credentials.
The site encryption key. Fleet generates EMDASH_ENCRYPTION_KEY once for a site it creates, uploads it as a secret of the site's Worker and sends it again after every upload and restore. EmDash uses it to encrypt secrets stored in the site, so a lost key makes a restored database unreadable. Fleet keeps an encrypted copy and never rotates it. Only an Owner or an Admin who signed in again can reveal it, and each reveal is an audit event.
Rules and limits
- When a provider refuses a stored credential, the connection shows Reconnect needed. Reconnect it from the Connections tab.
- Revoking a connection asks the provider to revoke the tokens first. Fleet deletes its stored copies afterwards. Deleting an account revokes every connection of the account before the deletion is scheduled.
- If the provider does not confirm a revocation, the connection stays as it was and Fleet shows an error. Fleet never deletes a credential whose revocation failed.
- What Fleet can and cannot access lists the permissions behind each connection. The data processing agreement states Fleet's duties as a processor.