Rules that read like your table policies
Each bucket carries a policy per operation: SELECT, INSERT, UPDATE, DELETE. A definition is a SQL-style expression over the caller and the object, so auth.uid() = owner_id is the whole rule for owner-only files. A bucket with no policy for an operation refuses it.
- One policy per operation: SELECT, INSERT, UPDATE, DELETE
- Match on the owner, the path, or the file extension
- Enforced in the storage layer, not your form
# owner-only reads, written as one SQL expressionvolcano cloud storage policy create user-files --name own-read \ --operation SELECT --definition "auth.uid() = owner_id"✓ policy own-readvolcano cloud storage policy list user-filesown-read SELECT · own-write INSERT · own-delete DELETE

