Skip to content

Tenant Management

Comet Engine is multi-tenant. Every wallet, asset, and journal entry is scoped to a tenant.

WARNING

Tenant management (creating tenants, rotating secrets) is done through the Admin Dashboard at http://localhost:3000. Admin endpoints are not exposed in the public API documentation.

Default Tenant

The "comet" tenant (Comet Wallet) is automatically seeded at boot. This is the default tenant used when no tenantSlug is specified.

Tenant Data Isolation

Each tenant has isolated:

  • Wallets(tenant_id, user_id) unique constraint
  • Journal entries — scoped to tenant_id
  • API access — API key resolves to a specific tenant

MongoDB Collections

CollectionScope
tenantsTenant registry
evm_walletsPer-tenant wallets (unique on tenant_id + user_id)
journal_entriesPer-tenant journal (indexed on tenant_id)

Released under the MIT License.