Quota enforcement (507 on write) #14
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Cordy/Cairn#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reporting already ships (
GET /api/v1/quota+ WebDAV RFC 4331 props, v0.2.1). This is the enforcement half: reject writes that would exceed a configured cap.507 Insufficient Storage(WebDAV) / appropriate JSON error (REST).storage.Usager; POSIX via statfs, S3 has no bucket-wide capacity so per-user accounting is the realistic path there.Last remaining functional item in v0.3.
Shipped in v0.2.5 (PR #34):
storage.quotadecorator at the write chokepoint —maxFileBytes(any backend, enforced mid-stream),maxTotalBytes/reserveBytes(Usager-backed),storage.ErrQuotaExceeded→ 507 on WebDAV, JSON error on REST/TUS. Issue was left open by mistake; closing retroactively.