You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Build errors and security hardening for Hyper 1.0 migration
This commit fixes critical issues identified through deep multi-agent
research and security analysis:
## Build Fixes
1. **http2_only() API fix** (libsql-server/src/http/user/mod.rs)
- Method takes 0 arguments, not 1
- Removed incorrect boolean argument
2. **Async file I/O consistency** (libsql-server/src/rpc/mod.rs)
- Changed CA cert reading from std::fs to tokio::fs
- Prevents blocking in async context
## Security Hardening
1. **TLS handshake timeout** - 30 second timeout prevents slowloris attacks
2. **Concurrent handshake limit** - Max 1000 handshakes with backpressure
3. **Proper async I/O** - All file operations are now non-blocking
## CI Fixes
1. **golang-bindings port fix** (.github/workflows/golang-bindings.yml)
- Changed LIBSQL_PRIMARY_URL from port 8080 to 5001
- Embedded replicas use gRPC protocol, not HTTP/Hrana
## Documentation
- Updated CHANGELOG.md with comprehensive migration status
All libsql-server tests pass (99 passed, 3 ignored).
The `cargo-udeps` check reports unused dependencies for:
71
+
-`hyper-rustls` - Used in `libsql/src/database.rs`
72
+
-`http-body-util` - Used throughout the codebase
73
+
-`tower-http` - Used in HTTP server
74
+
75
+
These are false positives due to how the dependencies are used (through re-exports or trait implementations). The `--each-feature` flag causes these to be flagged incorrectly.
76
+
77
+
**Workaround**: These can be ignored or the check can be modified to use `--all-features` instead.
0 commit comments