identity-permissions-tenancy
Operate on BiSheng JWT auth, RBAC/ReBAC/OpenFGA permissions, tenant isolation, admin scope, approval center, commercial gateway integration, and cursor permission performance.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- identity-permissions-tenancy
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate on BiSheng JWT auth, RBAC/ReBAC/OpenFGA permissions, tenant isolation, admin scope, approval center, commercial gateway integration, and cursor permission performance.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档references/troubleshooting.md2.8 KB
- 参考文档references/workflows.md4.5 KB
03 SKILL.md 正文
identity-permissions-tenancy
Use this sub-skill when a task touches BiSheng authentication, authorization, resource ownership, OpenFGA/ReBAC, RBAC menu permissions, multi-tenant isolation, admin scope, approval workflows, SSO/org sync, commercial gateway behavior, or cursor-pagination permission performance.
Start here
Run bundled helper commands from this sub-skill directory, or adjust the script path to this directory after import.
- Run the read-only pattern checker before or after a permission/tenant-sensitive edit:
python scripts/check_arch_rules.py --repo-root <bisheng-checkout> - Read references/workflows.md for auth, PermissionService, tenant ContextVar, gateway, approval, and cursor workflows.
- Read references/troubleshooting.md for missing permissions, invisible resources, tenant leaks, SSO/gateway, and cursor list failures.
Owned responsibilities
- JWT/auth user loading, menu keys, and role/user/group relationships.
- PermissionService, OpenFGA/ReBAC model, failed tuple retry, owner grants, relation models, and resource authorization.
- Tenant ContextVar, SQLAlchemy tenant filter, tenant storage prefixes, tenant tree/admin scope, user-tenant membership, and quota hierarchy.
- Approval center and menu-approval mode when they affect access decisions.
- Commercial gateway integration, SSO/OAuth/LDAP/WeCom org sync, sensitive-word gateway filters, and rate/online limits.
- Cursor pagination patterns where permission filtering and DM8 keyset compatibility determine list correctness.
Route sibling areas instead of duplicating them
- Use
backend-corefor generic FastAPI routes, schemas, service layering, and non-permission models. - Use
frontend-appsfor React route guards and UI rendering after the backend permission contract is known. - Use
knowledge-ragfor parser/vector/retrieval internals after visibility is proven correct. - Use
workflow-enginefor graph execution after app visibility and permissions are proven correct. - Use
deployment-maintenancefor running operational backfill/migration scripts.
Non-negotiables
- New resource authorization must go through PermissionService/OpenFGA-aware services; do not add direct role-access table shortcuts.
- Resource creation must write owner/authorization tuples or enqueue failed tuple compensation as designed.
- ORM tenant filtering applies to SELECT; raw SQL and bulk update/delete require explicit tenant-safe handling.
- Use tenant bypass helpers only for intentional cross-tenant maintenance reads/writes.
- Cursor pagination under permission filtering must advance by the last DB row, not the last visible row.
- Frontend 403 and menu visibility bugs should not be patched until backend/menu/plugin permission data is understood.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.