saas-multi-tenant

仓库创建 2026年5月22日最近提交 22 小时前SkillHot 收录 20 天前
▸ 精选理由

聚焦 RLS 与租户隔离的实战方案,适合构建共享数据库的 SaaS 团队参考。

这个 Skill 做什么

关于使用 PostgreSQL 与 RLS 实现多租户隔离与架构设计的实践指南。

讲清如何用 PostgreSQL 和 RLS 做多租户隔离,覆盖租户鉴权、数据隔离、迁移与性能权衡。搭建 SaaS、多个客户共享数据库但又要防止数据泄漏时会用到这些做法。特别强调 Row-Level Security 的设计模式、schema vs row 的取舍以及运维和审计的可观察性。

▸ 展开 SKILL.md 英文原文

Design and implement multi-tenant SaaS architectures with RLS, tenant isolation, and PostgreSQL / Desain dan implementasikan arsitektur SaaS multi-tenant dengan RLS, isolasi tenant, dan PostgreSQL.

开发编程多租户RLSPostgreSQL通用
41
Stars
7
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/roedyrustam/vibes-plug/main/skills/saas-multi-tenant/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/roedyrustam/vibes-plug/main/skills/saas-multi-tenant/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# SaaS Multi-Tenant Architecture

[English](#english) | [Bahasa Indonesia](#bahasa-indonesia)

---

<a name="english"></a>
## English

### Trigger Conditions
Use this skill when:
- The user is building a SaaS application where multiple customers share the same database.
- The user asks about tenant isolation, Row-Level Security (RLS), or data leakage prevention.
- The user needs to scope every database query to a specific tenant automatically.
- The user asks about tradeoffs between shared-schema, schema-per-tenant, and database-per-tenant.
- The user is implementing admin endpoints that must access data across tenants.
- The user needs to add `tenant_id` columns to an existing single-tenant
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有