plan: rename WS-I task IDs to T1-T8 to avoid clash with P3 I1-I6

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ariandClaude Sonnet 5.5 committed 2026-10-16 06:53:35 -04:00
1 parent 7b588120e0
commit 90e30bd771
2 files changed
+17 -17

No files matched your search

+9 -9
View File
@@ -17,20 +17,20 @@ Serve REST and `/mcp` over HTTPS with certificates the operator provides, so bea
Tick these in [`TODO.md`](../../TODO.md).
- **I1** Config: `server.tls.enabled` (default false), `server.tls.cert_file`, `server.tls.key_file`. Validation: enabled requires both paths, and both files must be readable at startup with a clear error. Document each key and its env var in `config.example.toml`.
- **I2** Serve over rustls. Pick the integration that keeps openssl out (`axum-server` with `tls-rustls`, or `tokio-rustls` with hyper-util). Pin the crypto provider so only one is linked. Cargo.toml change is a small separate commit.
- **I3** Reload certificate and key on SIGHUP without dropping connections. A bad new cert keeps the old one and logs an error.
- **I4** MCP allowlists: when TLS is on, `allowed_origins` default to `https://…`. `allowed_hosts` is unchanged.
- **I5** Startup warning when `bind` is non-loopback and TLS is off. Do not refuse.
- **I6** Tests: generate a self-signed cert in the test (dev-dependency such as `rcgen`). Cover HTTPS `/healthz`, 401 and 200 with a token over TLS, plain HTTP to the TLS port failing, SIGHUP reload serving the new cert, bad cert files failing startup, and graceful shutdown still within its bound.
- **I7** README TLS section, with a self-signed example and a note on ACME or sops certificate paths.
- **I8** Live check: `curl --cacert` against the running server, and one `/mcp` initialize over HTTPS.
- **T1** Config: `server.tls.enabled` (default false), `server.tls.cert_file`, `server.tls.key_file`. Validation: enabled requires both paths, and both files must be readable at startup with a clear error. Document each key and its env var in `config.example.toml`.
- **T2** Serve over rustls. Pick the integration that keeps openssl out (`axum-server` with `tls-rustls`, or `tokio-rustls` with hyper-util). Pin the crypto provider so only one is linked. Cargo.toml change is a small separate commit.
- **T3** Reload certificate and key on SIGHUP without dropping connections. A bad new cert keeps the old one and logs an error.
- **T4** MCP allowlists: when TLS is on, `allowed_origins` default to `https://…`. `allowed_hosts` is unchanged.
- **T5** Startup warning when `bind` is non-loopback and TLS is off. Do not refuse.
- **T6** Tests: generate a self-signed cert in the test (dev-dependency such as `rcgen`). Cover HTTPS `/healthz`, 401 and 200 with a token over TLS, plain HTTP to the TLS port failing, SIGHUP reload serving the new cert, bad cert files failing startup, and graceful shutdown still within its bound.
- **T7** README TLS section, with a self-signed example and a note on ACME or sops certificate paths.
- **T8** Live check: `curl --cacert` against the running server, and one `/mcp` initialize over HTTPS.
## Done when
- `server.tls.enabled = true` serves HTTPS, and `cargo tree -i openssl` is still empty.
- Replacing the cert files and sending SIGHUP changes the served certificate without a restart.
- Clippy, fmt and tests are clean, and the I8 live check passes.
- Clippy, fmt and tests are clean, and the T8 live check passes.
## Notes