Request paths
An upload, a private download and an image transform, call by call.
An upload
POST /object/avatars/user-42/photo.jpgwithapikeyand the user’s JWT reaches the engine.- The engine verifies the JWT with the project’s JWKS (cached), finds the project and its database.
- It opens a transaction as role
authenticatedwith the JWT’s claims, and runs theinsertcheck of your policies against the row it is about to write. - It streams the body to storage, computing SHA-256 and sniffing the type, and enforces the size limit while streaming.
- It writes the metadata row and commits. If scanning is on, it queues the scan and the row stays
pending.
A private download with a signed URL
- The app asks
POST /object/sign/receipts/order-1042.pdf; the engine checks theselectpolicy as the user and returns a URL with an HMAC signature over bucket, path, expiry and options. - The browser opens the URL on the content host; the edge verifies the signature and the expiry without calling the database, and fetches the object from storage.
An image transform
GET https://<ref>.files.sypnia.app/menu/pan.jpg?width=600&format=webpreaches the CDN.- On a cache miss, the transform function reads the original (public bucket, or a valid signature), resizes it with libvips, strips EXIF and returns it with a long cache time.
- Later requests with the same options are served from the CDN.