Shoraky commited on
Commit
f1be358
·
1 Parent(s): ab01304

Document chat supplied security migration

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -56,7 +56,7 @@ Run one container with one Python worker: analysis jobs and retry payloads are i
56
 
57
  The production database must have the analysis functions and action-review structures used by secret-protected `/internal/analysis` routes. The database also needs the profile columns shown in `../Database/schema.sql` and a private `profile-images` Supabase Storage bucket for JPG, PNG, and WEBP files up to 4 MB. The frontend resizes profile photos to at most 1280 pixels and encodes them as WebP before upload. The backend reads and writes images through its service-role client; browsers access them through authenticated API routes with private, versioned browser caching.
58
 
59
- Before deploying access-control or deletion changes, run [`../Database/updates/access-permissions.sql`](../Database/updates/access-permissions.sql) in the Supabase SQL Editor. To link profile records to Supabase Auth and block direct Data API access to application tables, also run [`../Database/updates/auth-profile-security.sql`](../Database/updates/auth-profile-security.sql); it stops if orphaned profile rows exist. These database changes do not replace the ownership and admin checks required on every Backend service-role route. The full policy is documented in [`../Database/access-permissions.md`](../Database/access-permissions.md).
60
 
61
  To remove the unused `players.dominant_foot` and `players.notes` columns from an existing database, apply `../Database/migrations/20261017_remove_player_dominant_foot_notes.sql` in the Supabase SQL Editor.
62
 
 
56
 
57
  The production database must have the analysis functions and action-review structures used by secret-protected `/internal/analysis` routes. The database also needs the profile columns shown in `../Database/schema.sql` and a private `profile-images` Supabase Storage bucket for JPG, PNG, and WEBP files up to 4 MB. The frontend resizes profile photos to at most 1280 pixels and encodes them as WebP before upload. The backend reads and writes images through its service-role client; browsers access them through authenticated API routes with private, versioned browser caching.
58
 
59
+ Before deploying access-control or deletion changes, run [`../Database/updates/access-permissions.sql`](../Database/updates/access-permissions.sql) in the Supabase SQL Editor. Apply the Auth profile-link and public-table security SQL supplied in the release conversation; it stops if orphaned profile rows exist. These database changes do not replace the ownership and admin checks required on every Backend service-role route. The full policy is documented in [`../Database/access-permissions.md`](../Database/access-permissions.md).
60
 
61
  To remove the unused `players.dominant_foot` and `players.notes` columns from an existing database, apply `../Database/migrations/20261017_remove_player_dominant_foot_notes.sql` in the Supabase SQL Editor.
62