makesPDF
← All updates

Fixed — an over-limit API key could loop the artifact download route

A caller already over its 500 downloads/hour limit is now stopped before authentication instead of being processed every time, so one key cannot loop requests through the route. The trade-off - an over-limit caller keeps its per-IP charge - can use up a shared IP's budget for the hour.

fixesapilimits

A correction to the 500/hour limit on GET /api/v1/artifacts/:id/:kind. When a session or API-key caller was already over its own limit, every further request still ran the authentication lookup before being refused — and because both the caller charge and the request's per-IP charge were refunded, nothing slowed the loop down. A request that resolves a caller whose own bucket refuses it now keeps its per-IP charge, so a client that keeps going exhausts the IP budget too and is refused at the IP gate, before the credential is looked up.

The trade-off is deliberate and small: a caller that stays over its own limit can use up the budget its IP shares with other clients, but only for the current hour, and only while it is already over a limit of its own. Requests from callers within their limit behave exactly as before — one charge, on their own bucket, with the IP charge refunded. Nothing changes on your side unless a script keeps downloading after it has been given a 429.