WS-I: native TLS (optional, default off) with SIGHUP cert reload
server.tls.{enabled,cert_file,key_file}; rustls (ring, explicit provider) via
tokio-rustls + hyper-util; https:// MCP origins when enabled; non-loopback
plain-HTTP startup warning; tests/tls.rs; README TLS section.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c83a5fa1ac
commit
c5972b762f
11 files changed
+835
-15
No files matched your search
@@ -106,14 +106,14 @@ Design: [`plan.md`](plan.md) · Review fixes: [`plan/review.md`](plan/review.md)
|
||||
## Phase 4 — TLS and NixOS packaging
|
||||
|
||||
### WS-I TLS · [card](plan/workstreams/WS-I-tls.md)
|
||||
- [ ] **T1** Config `server.tls.{enabled,cert_file,key_file}` with validation and documented example keys
|
||||
- [ ] **T2** Serve over rustls with a single pinned crypto provider. No openssl.
|
||||
- [ ] **T3** Reload cert and key on SIGHUP without dropping connections. A bad cert keeps the old one.
|
||||
- [ ] **T4** MCP allowed origins use `https://` when TLS is on
|
||||
- [ ] **T5** Startup warning for non-loopback bind without TLS
|
||||
- [ ] **T6** Tests with a generated self-signed cert: HTTPS, 401/200 over TLS, plain HTTP rejected, SIGHUP reload, bad files, bounded shutdown
|
||||
- [ ] **T7** README TLS section
|
||||
- [ ] **T8** Live check with `curl --cacert` and an `/mcp` initialize over HTTPS
|
||||
- [x] **T1** Config `server.tls.{enabled,cert_file,key_file}` with validation and documented example keys
|
||||
- [x] **T2** Serve over rustls with a single pinned crypto provider. No openssl.
|
||||
- [x] **T3** Reload cert and key on SIGHUP without dropping connections. A bad cert keeps the old one.
|
||||
- [x] **T4** MCP allowed origins use `https://` when TLS is on
|
||||
- [x] **T5** Startup warning for non-loopback bind without TLS
|
||||
- [x] **T6** Tests with a generated self-signed cert: HTTPS, 401/200 over TLS, plain HTTP rejected, SIGHUP reload, bad files, bounded shutdown
|
||||
- [x] **T7** README TLS section
|
||||
- [x] **T8** Live check with `curl --cacert` and an `/mcp` initialize over HTTPS
|
||||
|
||||
### WS-H NixOS · [card](plan/workstreams/WS-H-nixos.md)
|
||||
- [ ] **H1** `nix/package.nix`: `buildRustPackage` from `Cargo.lock` with pkg-config, cmake, systemd. Binary `slinuxm`.
|
||||
|
||||
Reference in new issue
Block a user