mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-12-02 00:37:18 +00:00
2.9 KiB
2.9 KiB
Remove Inbound TLS Termination From fabro-server
Summary
- Remove all server-side TLS termination from
fabro-serverso Fabro only listens on plain TCP or Unix sockets. - Make reverse proxy / load balancer TLS termination the only supported deployment model for HTTPS.
- Treat this as a deliberate breaking config change:
[server.listen.tls]is removed, not retained behind a compatibility layer.
Public Interface Changes
- Simplify server listen settings to
Tcp { address }orUnix { path }; remove thetlsfield from both sparse and resolved server settings. - Delete the inbound-listener TLS types from
fabro-typesand stop re-exporting them. - Remove
server.listen.tlsresolution fromfabro-config. - Existing configs that still set
[server.listen.tls]should fail during settings parsing via the current unknown-field behavior; do not add a migration shim. - Update published docs/examples so HTTPS is described as proxy-terminated, with public HTTPS URLs still expressed through
[server.api].urland[server.web].url.
Implementation Changes
- Server runtime:
- Delete the Rustls listener module and remove the TLS branch from startup.
- Keep the plain TCP and Unix socket serve paths intact.
- Preserve
ConnectInfoand IP allowlist behavior for non-TLS TCP serving. - Remove inbound-TLS-only dependencies from
fabro-server.
- Diagnostics and settings views:
- Delete server listener cert/key diagnostics.
- Keep redacting
server.listenfrom settings APIs, since bind addresses are still treated as host topology. - Update the redaction comments/tests so they no longer reference TLS cert/key paths.
- Tests and fixtures:
- Delete the Linux-only inbound TLS integration module and its fixture directory.
- Replace config-resolution tests that currently validate
server.listen.tls.cert/keywith tests asserting the removedtlsfield is rejected. - Update settings/runs API tests to remove TLS fixture blocks while keeping the
server.listenredaction assertions.
- Docs:
- Update active docs that currently advertise
[server.listen.tls]. - Leave archival brainstorm/plan docs unchanged.
- Update active docs that currently advertise
Test Plan
cargo build --workspacecargo nextest run -p fabro-configcargo nextest run -p fabro-servercargo +nightly-2026-04-14 fmt --check --allcargo +nightly-2026-04-14 clippy -p fabro-config -p fabro-server --all-targets -- -D warnings- Cover these scenarios in tests:
- TCP and Unix listener configs still parse, resolve, and serve correctly.
- Configs containing
[server.listen.tls]now fail with an unknown-field style parse error. - Settings API responses still redact
server.listen.
Assumptions
- Outbound/client TLS in
fabro-cliremains unchanged. - Hook/integration TLS settings remain unchanged.
- Proxy-aware behavior such as
X-Forwarded-Protohandling remains in place. - No automatic migration or deprecation layer will be added for old listener TLS configs.