Webfs Harden Del
WebFS Internet hardening
Removing network publishing significantly reduced the attack surface, but WebFS is still a LAN prototype. Its current firmware serves read-only content; changes require USB/serial provisioning.
Work required before Internet exposure
- Deploy an HTTPS gateway. Terminate TLS on FreeBSD, restrict direct ESP32 access, and enforce connection, request-rate and queue limits. Apply the access restrictions to both IPv4 and IPv6.
- Fix and qualify TCP overload behavior. Implement bounded admission and connection cleanup. Earlier tests showed refusals and socket write errors under load; the read-only release has not established Internet-load reliability.
- Tighten slow-client limits. Use separate deadlines for receiving headers and transmitting responses so stalled clients cannot occupy every worker.
- Fuzz the HTTP parser and image reader. Exercise malformed framing, ambiguous paths, duplicate headers, disconnects and partial requests.
- Prove unattended reliability. Test sustained hostile traffic, Wi-Fi recovery, cold boots and repeated serial attach/detach cycles. Require no unexpected resets, resource leaks or dependence on an attached console.
- Establish security maintenance. Track dependency advisories, retain verified USB recovery images, and test gateway certificate renewal.
Recommended deployment
Use gateway-backed, public read-only serving, with the ESP32 inaccessible from the Internet directly. Keep network publishing disabled. Removing the publisher does not eliminate denial-of-service risks or provide TLS.
Direct Internet access to the ESP32 requires a maintained TLS server implementation with bounded handshake resources and certificate rotation, in addition to the work above. That profile has not been implemented or tested.
The detailed investigation and hardening plan are in webfs-perf.md. Current build, USB provisioning and operating instructions are in esp-hal-webfs.md.