multi-tenant-saas

Community

Secure multi-tenant SaaS architecture

Authoraleonsa
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the complexities of building secure and scalable multi-tenant Software-as-a-Service applications, ensuring data isolation and robust access control.

Core Features & Use Cases

  • Tenant Isolation Strategies: Explores different methods like separate databases, schemas, or shared schema with Row-Level Security (RLS).
  • Tenant-Aware Data Models: Provides examples for integrating tenant IDs into SQLAlchemy models and repositories.
  • Row-Level Security (RLS): Demonstrates how to implement RLS in PostgreSQL to enforce data segregation at the database level.
  • Role-Based Access Control (RBAC): Outlines models for roles, permissions, and dependencies to manage user access within tenants.
  • Tenant Context Management: Shows how to extract tenant information from JWTs or subdomains and set it within the application context.
  • Alembic Migrations: Offers patterns for safely adding tenant IDs to existing tables and enabling RLS.

Quick Start

Use the multi-tenant-saas skill to implement row-level security in PostgreSQL for a shared schema architecture.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: multi-tenant-saas
Download link: https://github.com/aleonsa/claude-config/archive/main.zip#multi-tenant-saas

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.