Repository navigation
feat: support private HTTP backends for external TLS termination - #2
Conversation
- Add TLS_ENABLED with TLS enabled by default - Allow HTTP without certificate files when TLS is disabled - Default HTTP bindings to loopback and reject unsafe addresses - Preserve API-key authentication in both transport modes - Add configuration and transport tests, CI, and documentation
|
No actionable comments were generated in the recent review. WalkthroughConfiguration now supports TLS and validated node-host settings. The server binds to the configured host and serves HTTP or HTTPS based on the TLS setting. Tests cover configuration rules and authenticated responses in both transport modes. ChangesTLS Backend Configuration and Serving
Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant loadConfig
participant main
participant HTTPServer
participant TestClient
loadConfig-->>main: TLS setting, node host, and API port
main->>HTTPServer: Start HTTP or HTTPS listener
TestClient->>HTTPServer: Request root endpoint without API key
HTTPServer-->>TestClient: 401 response
TestClient->>HTTPServer: Request root endpoint with API key
HTTPServer-->>TestClient: 200 response
Suggested reviewers: Merge Risk:
|
Summary by CodeRabbit
New Features
Documentation