Skip to content

v4.12.1 — One signature per file, Pro that ends with its subscription, and search by meaning across a change of model

Choose a tag to compare

@Alexandr-Paleev Alexandr-Paleev released this 29 Oct 05:00
adbc589

One Cloudinary signature buys one file. /api/cloudinary/sign checks the quota against the size the browser declares and signs the upload for an hour. Cloudinary named each upload itself, so the signature took as many files as were sent with it: two different files under one signature, on production. The server now chooses the name and signs it with overwrite off, so a second upload under the same signature finds the first and keeps it. On production after the merge, the second file came back as the first: one asset. A page still running the previous bundle when this deployed had its next Cloudinary upload refused, once, until the service worker loaded the new one.

A subscription that ended without being cancelled no longer keeps Pro. When the retries of a card run out, Stripe cancels the subscription or marks it unpaid, as its account is set; a subscription can also be paused, and a first payment that never came ends as incomplete_expired. The webhook took only canceled for an end, so the other three left an account on Pro for good. All four end it now, unless another subscription beside them is live. Production bills in Stripe's test mode, so no real payment was involved.

An R2 download address lives an hour, whatever the request asks. /api/r2/presign-download took its lifetime from the request, so a caller could ask for the longest SigV4 allows, a week, for an address nothing can take back. Every caller in the app used the default hour, which is now the only lifetime it signs. R2 is switched off in production.

Search by meaning keeps its files across a change of model. Which models describe and embed the files is decided by the keys a deployment has, and the search compares only rows made by the model of the query, on purpose. The count of files not indexed yet asked only whether a file had a row, not whose: after a key was added or removed, every file the old model had indexed counted as done, so none was offered for indexing again and none could be found. The count now asks about the model the search was made with. Decision 0013 has the measurement behind that filter: with files embedded by bge-large-en-v1.5 and queries by another open model of the same width, the right file came first in 15, 14, 2 and 0 searches of 15, depending on the model, and nothing on the model cards says which. Search by meaning is switched off in production.

What it costs: nothing CI can see. The figures are 4.12.0's, a first load of 375.3 kB gzipped, and the end-to-end suite passed on each of the three merges, 44 of 44.