mirror of
https://github.com/DeBrosOfficial/orama.git
synced 2026-08-06 19:29:29 +00:00
- feat(storage): server-side per-namespace byte-quota enforcement on upload + pin (bugboard #141). Rejects when (current logical usage + new bytes) × replication-factor would exceed the namespace's configured max_storage_bytes, with a typed STORAGE_QUOTA_EXCEEDED (HTTP 413) error. OPT-IN: a namespace with no namespace_quotas row (all namespaces today) is unlimited, so this ships dark and changes nothing until an operator sets a budget. Checks server-observed input size before Add (no orphan blob); fail-open on a transient quota-lookup error. Known follow-up (documented, deferred while opt-in/unused): concurrent-burst TOCTOU + fail-open hardening before GA. - feat(sdk): HttpClient.uploadFile accepts an external AbortSignal (bugboard #144). A caller abort terminates the in-flight upload at the socket and rejects with SDKError code "ABORTED" — distinct from the internal timeout ("TIMEOUT") and never retried; the retry loop also stops once the signal is aborted. IHttpTransport kept in sync.