Skip to content

feat(demos): add multi-tenant with shared schema demo#42

Merged
zeevdr merged 1 commit into
mainfrom
feat/multi-tenant-demo
Jun 5, 2026
Merged

feat(demos): add multi-tenant with shared schema demo#42
zeevdr merged 1 commit into
mainfrom
feat/multi-tenant-demo

Conversation

@zeevdr

@zeevdr zeevdr commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Demonstrates the core SaaS multi-tenancy pattern: one schema shared by all tenants, with each tenant managing its own config values completely independently.
  • Provides a concrete, runnable example that answers "how do I onboard a second customer without duplicating schema definitions?"
  • Completes the demo content requested in the parent issue for multi-tenant scenarios.

Test plan

  • ./run.sh completes without errors (infrastructure up, schema seeded, both tenants provisioned)
  • curl http://localhost:8080/v1/config/tenant1/snapshot returns USD currency and 8% tax rate
  • curl http://localhost:8080/v1/config/tenant2/snapshot returns EUR currency and 20% tax rate
  • Runtime override on tenant1 does not affect tenant2's values (isolation check in run.sh)
  • Re-running seeds is idempotent (no duplicate versions created)
  • docker compose down -v tears down cleanly
  • Admin panel at http://localhost:3000 loads in multi-tenant mode

Refs opendecree/decree#30

Adds a self-contained multi-tenant/ demo showing how multiple tenants share
one schema definition while maintaining completely independent config values.
The demo uses a SaaS e-commerce scenario (US store vs. EU store) and covers
schema seeding, per-tenant provisioning, isolation verification, schema
validation enforcement, and idempotent re-seeding.

Partially closes opendecree/decree#30.

Co-Authored-By: Claude <noreply@anthropic.com>
@zeevdr zeevdr added enhancement New feature or request help wanted Extra attention is needed size: M Moderate — a day or two, clear scope multi-tenant Multi-tenant demo priority: P2 Nice-to-have labels Jun 5, 2026
@zeevdr zeevdr merged commit 7e5d51a into main Jun 5, 2026
4 checks passed
@zeevdr zeevdr deleted the feat/multi-tenant-demo branch June 5, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request help wanted Extra attention is needed multi-tenant Multi-tenant demo priority: P2 Nice-to-have size: M Moderate — a day or two, clear scope

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant