Repository navigation
Commit 5cd0c62
test(protect-ffi): migrate Protect.js 10.2.1 EQL v2 data to v4 end to end
The v3 -> v4 suite covers data Stack 1.x wrote. Customers still on
Protect.js hold EQL v2 data written by an older client (protect-ffi
0.18.1, cipherstash-client 0.28), and nothing showed that data can
reach v4 and keep answering the same queries.
The new suite writes v2 rows with the real @cipherstash/protect@10.2.1
into eql_v2_encrypted columns and queries them with its own search
terms. It then runs the same migration as the v3 suite: add a v4 column
per v2 column, decrypt with the engine Stack 1.x encrypts through
(in-tree protect-ffi, which still reads v2), re-encrypt through the v4
codec, and check equality, ORE range and ordering, and match queries
return the same rows from both columns. Every v4 value must decrypt to
the original plaintext, and the v4 columns must still answer after the
cut-over rename. Protect's dataType('number') encrypted a float64, so
that column migrates to DoubleOrdOre rather than an integer type.
v2 hazards are pinned too: a v2 payload cast into a v4 column fails the
domain CHECK, and relabelling `v` gives a value Stack Encrypt refuses.
@cipherstash/protect@10.2.1 is added exact-pinned as a dev dependency of
the private integration-tests package. It is loaded through import()
because its `types` export condition names ESM declarations.1 parent b097560 commit 5cd0c62
4 files changed
Lines changed: 578 additions & 0 deletions
File tree
- languages/typescript/packages/protect-ffi/integration-tests
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments