ruvector/crates/ruvector-postgres/src
rUv 4d7166941d fix(ruvector-postgres): IVFFlat storage, HNSW query, SQL injection fixes
## Index Fixes
- IVFFlat: Implement write_inverted_list() for proper vector storage
- IVFFlat: Update build to write inverted lists with correct page refs
- IVFFlat: Add rewrite_centroids() for in-place centroid updates
- HNSW: Fix hnsw_rescan() to extract query vectors from datum
- HNSW: Implement build_index_from_heap() with proper heap scan

## Security Fixes (3 CRITICAL)
- CVE-PENDING-001: SQL injection in tenant isolation (isolation.rs)
- CVE-PENDING-002: SQL injection in audit logging (operations.rs)
- CVE-PENDING-003: SQL injection via drop partition (isolation.rs)

## New Files
- src/tenancy/validation.rs: Input validation for tenant IDs
- docs/SECURITY_AUDIT_REPORT.md: Full security audit documentation

## Verified
- IVFFlat index build:  Collects and stores vectors
- IVFFlat query:  Returns correct results
- HNSW index build:  Working
- HNSW query:  Returns correct results

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 04:05:58 +00:00
..
attention feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
bin feat(postgres): Add ruvector-postgres extension with SIMD optimizations (#42) 2025-12-02 09:55:07 -05:00
distance feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
embeddings feat(postgres): Add HNSW index and embedding functions support (#62) 2025-12-09 11:14:52 -05:00
gnn fix(ruvector-postgres): IVFFlat storage, HNSW query, SQL injection fixes 2025-12-26 04:05:58 +00:00
graph feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
healing feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
hybrid feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
hyperbolic feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
index fix(ruvector-postgres): IVFFlat storage, HNSW query, SQL injection fixes 2025-12-26 04:05:58 +00:00
integrity feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
learning feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
quantization feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
routing Claude/sparql postgres implementation 017 ejyr me cf z tekf ccp yuiz j (#66) 2025-12-09 15:32:28 -05:00
sparse feat(postgres): Add 53 SQL function definitions for all advanced modules (#46) 2025-12-02 22:49:29 -05:00
tenancy fix(ruvector-postgres): IVFFlat storage, HNSW query, SQL injection fixes 2025-12-26 04:05:58 +00:00
types feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
workers feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
lib.rs feat(ruvector-postgres): Complete v2.0.0 with 148 SQL functions 2025-12-25 23:41:29 +00:00
operators.rs feat(postgres): Add ruvector-postgres extension with SIMD optimizations (#42) 2025-12-02 09:55:07 -05:00