Net: add TLS client stream and SMTP submission #48

Open
opened 2026-12-03 10:24:27 +00:00 by faumaray · 0 comments
Owner

Context: Forge needs TLS client streams and SMTP submission over TLS for verification/recovery email. Forge tracks this as VL-NET-02; production registration stays disabled until it lands.

Current behavior: HttpClient has secure()/insecure defaults, but there is no reusable TLS stream API and no SMTP client.

Need:

  • a TLS client stream that wraps a socket, verifies peer and hostname against the intended trust store, supports cancellation and deadlines, and never falls back to insecure on failure;
  • SMTP submission over TLS (STARTTLS or implicit) with authentication and bounded message sizes.

Tests/gate: hostname/trust-store failures, redirect/credential handling, cancellation, partial writes, SMTP dialogue fixtures and oversized messages. Forge M04/M18 consume it.

Context: Forge needs TLS client streams and SMTP submission over TLS for verification/recovery email. Forge tracks this as VL-NET-02; production registration stays disabled until it lands. Current behavior: HttpClient has secure()/insecure defaults, but there is no reusable TLS stream API and no SMTP client. Need: - a TLS client stream that wraps a socket, verifies peer and hostname against the intended trust store, supports cancellation and deadlines, and never falls back to insecure on failure; - SMTP submission over TLS (STARTTLS or implicit) with authentication and bounded message sizes. Tests/gate: hostname/trust-store failures, redirect/credential handling, cancellation, partial writes, SMTP dialogue fixtures and oversized messages. Forge M04/M18 consume it.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Void/Library#48