The short version
- Your key is encrypted at rest using Supabase Vault, a key-management service backed by libsodium.
- The key is decrypted only when needed to make an API call to your AI provider.
- The decryption happens in memory; the plaintext key is never written to disk and never logged.
- The key is scoped to your atlas; it cannot be used by any other atlas in Brand Atlas.
- You can revoke the key at any time from your provider’s dashboard; Brand Atlas detects the revocation within minutes.
- You can replace the key in Brand Atlas at any time; the old key is deleted in the same operation.
How Supabase Vault works
Supabase Vault is the storage layer for sensitive material in Brand Atlas. It uses libsodium for authenticated symmetric encryption. Each key stored in the Vault is encrypted with a key-encryption-key that is not available to the application layer. When Henry needs to make an API call:- Brand Atlas’s API server requests the decrypted key from the Vault.
- The Vault returns the plaintext key to the requesting process in memory.
- The process uses the key to call the provider.
- The plaintext key is discarded at the end of the request.
What is logged
Brand Atlas logs metadata about Henry usage:- The atlas the request came from.
- The provider it was sent to.
- The size of the request (tokens in and tokens out).
- The success or failure of the call.
- The latency.
- The plaintext API key.
- The user prompt or the model response in plaintext (Brand Atlas does retain a conversation history for the team member’s reference; that history is encrypted at rest and accessible only to the team member and the brand owner).
- The brand-record content sent to the provider.
Provider-side storage
Once the key reaches your AI provider, it is stored by them under their own policies. Both OpenAI and Gemini store API keys with industry-standard encryption at rest and access controls. Brand Atlas’s storage hygiene is one half of the picture; the provider’s is the other. You can audit the provider side by reviewing your provider’s API key list and usage. Both providers show recent usage by key.What happens on revocation
You can revoke the key at any time from your provider’s dashboard. When you do:- The next API call from Brand Atlas using that key will fail.
- Brand Atlas detects the failure and notifies the brand owner.
- Henry stops responding to new questions until the key is restored or replaced.
- The brand owner can paste a new key or remove the old one entirely.
What happens on rotation
Rotation is the practice of replacing a working key with a new one for security hygiene. The flow:- Create a new key in the provider’s dashboard.
- Paste the new key into Brand Atlas. Brand Atlas tests it.
- On success, the old key is deleted from Brand Atlas’s Vault in the same operation.
- (Optional but recommended.) Revoke the old key in the provider’s dashboard.
Multi-atlas customers
Customers running multiple atlases (an agency, a holding company) typically use:- One key per atlas. Each atlas has its own key, scoped to that atlas in the provider’s dashboard. Cleanest separation of usage and billing.
- One key shared across atlases. Simpler to manage; usage is aggregated. Less clean from an auditing perspective.
What Brand Atlas can never see
Three things that are out of Brand Atlas’s reach by design:- The provider’s account credentials. Your OpenAI or Gemini login is yours alone.
- Other API keys in your provider account. Brand Atlas only sees the key you supply.
- Other usage on your provider account. Brand Atlas sees only Henry’s usage of the key you provided.
When the key cannot be recovered
If a key has been pasted into Brand Atlas, deleted from your provider’s dashboard, and the provider’s record of it is also gone (an account closure, for example), the key cannot be recovered. Brand Atlas does not maintain its own copy beyond the Vault entry, and the Vault entry stops being useful when the key is no longer valid on the provider side. Create a new key and paste it in.Related pages
Setting up Henry
The initial setup.
BYOK Policy
The formal policy.
Rotating and revoking
Key management hygiene.