fix(security): harden auth and request limits

This commit is contained in:
shuaiplus committed 2026-07-05 23:43:49 +08:00
1 parent 12af18e3a3
commit d9a36fefe6
12 files changed
+315 -30

No files matched your search

+4
View File
@@ -124,6 +124,10 @@ async function processAttachmentUpload(
}
const path = getAttachmentObjectKey(cipherId, attachment.id);
if (await getBlobObject(env, path)) {
return errorResponse('Attachment file has already been uploaded', 409);
}
try {
await putBlobObject(env, path, upload.body, {
size: upload.size,