Skip to content

multi-tenancy capability

multi-tenancy adds row-level tenant isolation to your Go service, ensuring every request is scoped to the authenticated tenant.

  • Tenant middleware
  • Context-based tenant propagation
  • Query scoping helpers

Use multi-tenancy for SaaS applications serving multiple organizations. Every query must be scoped by tenant — missing a scope is a data leak. The middleware extracts tenant identity from authenticated JWT claims, not raw headers (which any caller can spoof).

Requires: http-api, platform (config)

Suggests: auth-jwt, observability

Terminal window
verikt new my-service --language go --cap http-api,platform,multi-tenancy
# or add to an existing service:
verikt add multi-tenancy

auth-jwt

JWT authentication for verified tenant identity.

audit-log

Audit trail scoped per tenant for compliance.

observability

Trace requests with tenant context for debugging.