Commit 610a64c
feat: Production hardening, security fixes, and performance infrastructure
Major improvements across security, performance, and reliability:
Security & Testing:
- Fix SQL injection vulnerability in row-level security expression substitution
- Add escape_sql_string() to properly escape context variables
- Add 12 new RLS edge case tests including injection prevention
- Add encryption tests for nonce uniqueness and tampered ciphertext
- Add protocol/auth.rs tests for MD5/SCRAM-SHA-256 authentication
MVCC & Transaction Improvements:
- Implement SSI write-skew detection for Serializable isolation
- Fix garbage collection to properly traverse version chains
- Add storage integration methods (export/import version state)
- Activate deadlock detector and transaction timeouts
Query Optimizer:
- Implement BitSet::subsets_of_size() using Gosper's hack
- Implement BitSet::splits() for join order optimization
- Implement extract_joins() to walk plan tree
- Implement split_join_predicates() for predicate pushdown
Feature Completion:
- Implement point-in-time recovery with ISO 8601 timestamp parsing
- Connect alerting system to real prometheus metrics
- Optimize segment reading with BTreeMap-based index
- Add segment bounds tracking for efficient event retrieval
Performance Infrastructure:
- Add large-scale benchmarks (100K, 500K rows)
- Add concurrent stress tests (2, 4, 8 threads)
- Add memory pressure scenarios
- Create benchmark regression detection script
- Add CI job for benchmark regression checks on PRs
- Add Makefile targets: bench-baseline, bench-check
Version bump to 0.9.1-alpha
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 11cdb45 commit 610a64c
File tree
23 files changed
+5889
-119
lines changed- .github/workflows
- benches
- benchmarks/baseline
- crates
- driftdb-cli
- src
- driftdb-core
- src
- storage
- driftdb-server
- src
- protocol
- scripts
23 files changed
+5889
-119
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
46 | 81 | | |
47 | 82 | | |
48 | 83 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| |||
562 | 564 | | |
563 | 565 | | |
564 | 566 | | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
565 | 573 | | |
566 | 574 | | |
567 | 575 | | |
| |||
572 | 580 | | |
573 | 581 | | |
574 | 582 | | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
575 | 600 | | |
576 | 601 | | |
577 | 602 | | |
| |||
671 | 696 | | |
672 | 697 | | |
673 | 698 | | |
| 699 | + | |
674 | 700 | | |
675 | 701 | | |
676 | 702 | | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
677 | 706 | | |
678 | 707 | | |
679 | 708 | | |
680 | | - | |
| 709 | + | |
681 | 710 | | |
682 | 711 | | |
683 | 712 | | |
| |||
0 commit comments