How it works
Corsair stores your key using envelope encryption. Your KEK encrypts a per-connection DEK, which encrypts the key itself. The key is never stored in plaintext.corsair.ts
corsair.linear.api.* call will use the stored key automatically.
Solo setup
Solo mode means one API key shared across your entire application. This is the default — no extra configuration needed.corsair.ts
usage.ts
Multi-tenant setup
In multi-tenant mode, each user supplies their own API key. Keys are stored and encrypted separately per tenant.corsair.ts
onboarding.ts
withTenant to scope all API calls to a specific user:
usage.ts
Bring Your Own Key
If you manage your own decryption (e.g., AWS KMS or Google Cloud KMS), pass the decrypted key directly instead of using database storage:corsair.ts