Form files: a dropped, stalled or endless upload is aborted and frees its slot, attempt key and buffers
Security review of 1.16.0 (blocking): a request body that errored mid-file never resolved, leaking the concurrency slot and the attempt key. Also: idle and request timeouts (submit.idleTimeoutMs / timeoutMs), ImmutableId preference on every Graph draft call, the remaining total in the too-large message, files sent to a form without a File field are refused and logged. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
cd74d7decb
commit
e24c918d4b
@@ -71,8 +71,18 @@ export type FormSubmitEndpointOptions = {
|
||||
clientIp?: ClientIpOptions
|
||||
/** Honeypot field name. Default HONEYPOT_FIELD. */
|
||||
honeypotField?: string
|
||||
/**
|
||||
* A stalled upload: no byte of the request body for this long (ms) and the request is given up (408).
|
||||
* Default 30000; 0 = no idle limit.
|
||||
*/
|
||||
idleTimeoutMs?: number
|
||||
/** Max submissions per IP per minute. Default 5; 0 turns it off. */
|
||||
maxPerMinute?: number
|
||||
/**
|
||||
* Ceiling for the whole request — upload, checks and e-mail (ms). Past it the request is answered 408 and
|
||||
* everything it held is released. Default 300000 (5 minutes); 0 = no ceiling.
|
||||
*/
|
||||
timeoutMs?: number
|
||||
turnstileHostnames?: string[]
|
||||
turnstileOnConfigError?: 'allow' | 'reject'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user