Folders & ACLs
Secure by Default
Section titled “Secure by Default”Folder Structure
Section titled “Folder Structure”Pulsabase organizes files into a single scalable bucket, using a virtual folder hierarchy:
/├── public/ ← Publicly readable (requires a public ACL)│ └── avatars/└── private/ ← Authenticated access only (requires an auth ACL) └── invoices/Creating ACL Policies
Section titled “Creating ACL Policies”You can configure ACL policies directly in the Pulsabase Dashboard under Storage > Policies, or using the SDK.
Dashboard Configuration
Section titled “Dashboard Configuration”- Go to Storage > Policies.
- Click New Policy.
- Set the Path Pattern (e.g.,
public/avatars/*). - Select the permitted Actions (
READ,WRITE,DELETE). - Assign the Role (
public,authenticated, or a custom role).
Example Policies
Section titled “Example Policies”| Path Pattern | Role | Permitted Actions | Result |
|---|---|---|---|
public/* | public | READ | Anyone can download files, but no one can upload. |
users/{user_id}/* | authenticated | READ, WRITE, DELETE | Users can manage their own folder (via {user_id} variable binding). |
admin/reports/* | admin | READ, WRITE, DELETE | Only users with the admin role can access theses files. |