Tokens
How tokens are encrypted
Slack tokens, and the tokens for Linear or HubSpot when a workspace connects them, are encrypted before they are stored.
Tokens are never logged, and uninstall deletes them at once.
- Cipher
- AES-GCM with a 256-bit key
- Nonce
- A fresh random 96-bit nonce for every encryption
- Binding
- Each ciphertext is bound to its workspace, so a token copied into another workspace's record will not decrypt
- Key
- A secret held by Cloudflare Workers, never in code
- Rotation
- When the key is rotated, tokens sealed with the old key are sealed again with the new one the next time they are read