You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d75a44b
Browse filesBrowse the repository at this point in the historyBrowse files
hosted: refuse stdio and granian; cap what waitress buffers before auth
Orchard hosted mode (VGI_ORCHARD_HOSTED=1), two fixes found by the
SDK-neutral conformance harness (vgi test/hosted/):
- stdio is refused like --unix and --tcp: Worker.main without --http and
vgi-serve without --http both exit with "only --http is allowed".
- Waitress reads a whole request body before the WSGI app (and so the
Pass check) runs, up to its 1 GiB default. In hosted mode its
max_request_body_size is now the worker's request cap: the explicit
VGI_RPC_MAX_REQUEST_BYTES, or HOSTED_DEFAULT_MAX_REQUEST_BYTES (32 MiB)
when unset, which is also advertised (VGI-Max-Request-Bytes) and
enforced, so larger requests take upload URLs. A Content-Length over the
cap gets 413 before any body is read. Both waitress paths (vgi-serve and
Worker.main) apply it.
- granian has no body cap, so --server granian is refused in hosted mode.
The remaining exposure, at most one capped body per open connection before
the 401, is documented in docs/authentication.md. Tests cover stdio on both
entry points, granian, the advertised default, 413 for over-cap bodies on
both waitress paths, and the cap resolution. scripts/hosted_conformance.sh
adds stdio and granian to the must-refuse commands, and CI pins the
updated harness.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments