Repository navigation
Conversation
… inputs - ospipe-server: bind 127.0.0.1, allow CORS only for local origins, reject non-loopback Host headers, cap search k. - ruvector-cloudrun-gpu server: validate benchmark sizes before allocating, set the running flag atomically, bound stored results. Co-Authored-By: claude-flow <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01MfPHVGXpp496tgmsE195Qn
|
The Generated by Claude Code |
|
Generated by Claude Code |
Daily security hardening run (rotating area: deployed examples).
Fixes
1.
examples/OSpipe/src/server/mod.rs— network exposure of local screen-memory API127.0.0.1instead of all interfaces; CORS grants only loopback (andtauri://localhost) origins instead of any origin; requests whoseHostheader is not a loopback name are refused (403); searchkcapped at 1000. Existing tests updated to send aHostheader.server::tests::test_remote_origin_gets_no_cors_grant,test_non_loopback_host_header_rejected,test_local_origin_gets_cors_grant,test_loopback_host_parsing(the first three fail onmain).cargo testinexamples/OSpipe: all suites pass.2.
examples/google-cloud/src/server.rs— unbounded request-controlled benchmark sizesdims,num_vectors,num_queries,kvalidated (non-zero, upper bounds,num_vectors * dimscap) before any allocation, returning 400; the running flag is checked and set under one lock; stored results are bounded. Documented example sizes (768 dims × 100k vectors) remain accepted.server::tests::zero_batch_is_rejected_and_service_stays_usable(fails onmain),server::tests::oversized_requests_are_rejected.cargo test -p ruvector-cloudrun-gpu: 8 passed.🤖 Generated with claude-flow
https://claude.ai/code/session_01MfPHVGXpp496tgmsE195Qn
Generated by Claude Code