Commit 8972dc5
committed
fix(db): align supabase-target checks with platform-managed state
Two checker corrections surfaced by the first post-contract apply against
production, both verified with live probes on production and on a fresh
project:
- the runtime ACL union resolved object_name to type name (63-byte limit)
because the first branch selected relname bare, silently truncating any
function signature longer than 63 characters so it could never match the
expected set; the six long-signature webhooks functions were falsely
flagged. Casting the first branch to text fixes resolution for the whole
union.
- supautils grants every role that postgres creates back to postgres
(grantor supabase_admin) on every Supabase project, including fresh ones
(probe-verified). The zero-membership check now exempts exactly that
platform-managed membership and still flags everything else.1 parent 8180a42 commit 8972dc5
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
204 | 217 | | |
205 | 218 | | |
206 | 219 | | |
| |||
391 | 404 | | |
392 | 405 | | |
393 | 406 | | |
394 | | - | |
| 407 | + | |
395 | 408 | | |
396 | 409 | | |
397 | 410 | | |
| |||
0 commit comments