Commit 07c2773
fix(auth): make the SSO Providers list visible to admins (ADR-0024 / cloud#551) (#2394)
The sys_sso_provider Setup list rendered empty even after an admin registered a
provider — member_default's wildcard tenant_isolation RLS denied every row
(better-auth writes via its adapter with no tenantId → organization_id never
stamped; the platform-admin viewAllRecords bypass is gated to private/non-tenant
objects). sys_sso_provider is env-global admin-only identity config, so it now
declares tenancy.enabled:false (admin viewAllRecords sees all env providers) +
requiredPermissions:['manage_platform_settings'] (object-level gate so members
are 403'd; without it tenancy-disabled + member_default '*' allowRead would leak).
Verified E2E: admin sees all providers in the list, non-admin → 403. Env-only
object (no control-plane risk).
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 69ae136 commit 07c2773
2 files changed
Lines changed: 29 additions & 0 deletions
File tree
- .changeset
- packages/platform-objects/src/identity
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
34 | 50 | | |
35 | 51 | | |
36 | 52 | | |
| |||
0 commit comments