mirror of
https://github.com/archtechx/tenancy.git
synced 2026-06-21 21:04:04 +00:00
Remove detailed tenancy references from boost resources for better clarity and maintainability
This commit is contained in:
parent
fde2bf0cf4
commit
882eaef8b4
20 changed files with 0 additions and 0 deletions
33
resources/boost/skills/laravel-tenancy/references/rls.md
Normal file
33
resources/boost/skills/laravel-tenancy/references/rls.md
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# PostgreSQL RLS Reference
|
||||
|
||||
Use this when implementing single-database PostgreSQL row-level security.
|
||||
|
||||
## Source Files
|
||||
|
||||
- `src/Bootstrappers/PostgresRLSBootstrapper.php`
|
||||
- `src/RLS/*`
|
||||
- `src/Database/Concerns/RLSModel.php`
|
||||
- `src/Commands/CreateUserWithRLSPolicies.php`
|
||||
- `tests/RLS/*`
|
||||
|
||||
## Config
|
||||
|
||||
- `rls.manager`
|
||||
- `rls.user.username`
|
||||
- `rls.user.password`
|
||||
- `rls.session_variable_name`
|
||||
- `PostgresRLSBootstrapper` in `bootstrappers`
|
||||
|
||||
## Command
|
||||
|
||||
```bash
|
||||
php artisan tenants:rls
|
||||
php artisan tenants:rls --force
|
||||
```
|
||||
|
||||
## Rules
|
||||
|
||||
- Use PostgreSQL and single-database tenancy.
|
||||
- Session variable name must be namespaced, for example `my.current_tenant`.
|
||||
- RLS user is one tenant database user for all tenants, not one user per tenant.
|
||||
- Test policies on every tenant-owned table.
|
||||
Loading…
Add table
Add a link
Reference in a new issue