From 477d286870922c1c7ee73d6d727a14151a190e8d Mon Sep 17 00:00:00 2001 From: Dan Draper Date: Tue, 24 Nov 2026 23:05:53 +1100 Subject: [PATCH 1/2] docs(golang): the 0.1.0-rc.7 changelog section Turns Unreleased into 0.1.0-rc.7 and adds the upgrade notes: update both modules, run go generate again (Children's new type, and the refused order index on bytes), check stored dates against the new range, and the EQL SQL is unchanged since rc.6. release-golang.yml takes the release page's notes from this section. --- languages/golang/CHANGELOG.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/languages/golang/CHANGELOG.md b/languages/golang/CHANGELOG.md index 12eb89d62..0e905f359 100644 --- a/languages/golang/CHANGELOG.md +++ b/languages/golang/CHANGELOG.md @@ -13,6 +13,35 @@ and `languages/golang/encrypt/encrypttest/vX.Y.Z` on the same commit. ## [Unreleased] +## [0.1.0-rc.7] - 2026-11-25 + +### Upgrading from rc.6 + +Update the SDK, and `encrypttest` if your program imports it. The two +modules are released at the same version: + +```sh +go get github.com/cipherstash/stack/languages/golang@v0.1.0-rc.7 +go get github.com/cipherstash/stack/languages/golang/encrypt/encrypttest@v0.1.0-rc.7 +``` + +Run `go generate ./...` again. Two changes in the Breaking section need +it: + +- `Children` now returns `encrypt.JSONChildren`. +- A `[]byte` field with an order index (`index=ore` or `index=ope`) is + refused. Remove the index from the field's tag first, or `stashgen` + fails on it. Until that type is generated again, its `Encrypt` and + `Decrypt` fail with `index_not_admitted`. + +Before you upgrade, check that you have not stored a date or timestamp +outside the years -9999 to 9999. A value outside that range no longer +decrypts. The Breaking section says how to check. + +The EQL SQL has not changed since rc.6. The `eql-v4-install.sql` attached +to this release differs from rc.6's only in its version stamp. If you +installed rc.6's bundle, you do not need to run it again. + ### Added - **Read one child of a JSON node** (#1677). Your app can now read one From 6278fe175911801e6835dd15458677cfc6356545 Mon Sep 17 00:00:00 2001 From: Dan Draper Date: Tue, 24 Nov 2026 23:49:02 +1100 Subject: [PATCH 2/2] docs(golang): correct the rc.7 notes, and put the #1398 fix under Fixed Review of #1814: - The upgrade note said every project must run go generate; only a []byte field with an order index needs it. Generating again gives Children its new type, and then code that keeps a JSONToken takes .Token(). The failing calls are left to the Breaking entry. - The date check names the exact Date and time.Time bounds and the ErrAuthentication a value outside them gives. - JSONChildren is generic: the notes name JSONChildren[eql.JSONEntry], as stashgen writes it. - The Children entry says what Open does not check: every child, the row, and, within an array, the tags, which a database can forge. - The audit entry adds the 32-level nesting limit and that a non-finite float is sent as null. - The #1398 Matches entry is a fix, so it moves to a Fixed heading. --- languages/golang/CHANGELOG.md | 55 +++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/languages/golang/CHANGELOG.md b/languages/golang/CHANGELOG.md index 0e905f359..deaa597e5 100644 --- a/languages/golang/CHANGELOG.md +++ b/languages/golang/CHANGELOG.md @@ -25,18 +25,22 @@ go get github.com/cipherstash/stack/languages/golang@v0.1.0-rc.7 go get github.com/cipherstash/stack/languages/golang/encrypt/encrypttest@v0.1.0-rc.7 ``` -Run `go generate ./...` again. Two changes in the Breaking section need -it: - -- `Children` now returns `encrypt.JSONChildren`. -- A `[]byte` field with an order index (`index=ore` or `index=ope`) is - refused. Remove the index from the field's tag first, or `stashgen` - fails on it. Until that type is generated again, its `Encrypt` and - `Decrypt` fail with `index_not_admitted`. - -Before you upgrade, check that you have not stored a date or timestamp -outside the years -9999 to 9999. A value outside that range no longer -decrypts. The Breaking section says how to check. +If a `[]byte` field has an order index (`index=ore` or `index=ope`), +remove the index from its tag and run `go generate ./...` again. rc.7 +refuses that index, and the calls that fail until the type is generated +again are listed under Breaking. + +Code generated by rc.6 otherwise still compiles and runs. Generating again +also gives `Children` its new return type, +`encrypt.JSONChildren[eql.JSONEntry]`, which opens the children. Code that +keeps the result as an `encrypt.JSONToken` then takes `.Token()`. + +Before you upgrade, check that no value you have stored is outside the new +range: an `encrypt.Date` from `-9999-01-01` to `9999-12-31`, and a +`time.Time` from `-009999-01-02T01:59:59Z` to +`9999-12-30T22:00:00.999999999Z`. A stored value outside it no longer +decrypts, and is reported as `ErrAuthentication`. The Breaking section +says how to check. The EQL SQL has not changed since rc.6. The `eql-v4-install.sql` attached to this release differs from rc.6's only in its version stamp. If you @@ -48,7 +52,7 @@ installed rc.6's bundle, you do not need to run it again. level of a `JsonSearch` document without fetching the parent's whole subtree. The read takes three steps. 1. Your app calls `Children(ctx, c, path)` on the field. `Children` now - returns an `encrypt.JSONChildren`. + returns an `encrypt.JSONChildren[eql.JSONEntry]`. 2. The database (EQL) runs `eql_v4.json_tree_children(col, $1::text)`, with `Token()` as `$1`. The database returns the parent's direct children as encrypted entries. @@ -70,6 +74,12 @@ installed rc.6's bundle, you do not need to run it again. token. - An entry that is not a child of that node is `ErrEncoding`, with code `stack_encrypt::json_wrong_entry`. + - `Open` does not check that the database returned every child, or which + row an entry came from. + - Within an array, the tags are not authenticated, and the database has + the parent's token, so it can compute them. A database that forges them + can return the children of `$.items[0]` for a read of `$.items[1]`, and + `Open` accepts them. See the EQL `json_tree` leakage reference. - A child that is an object or an array with members does not open alone. `Open` refuses it as `ErrEncoding`, with code `stack_encrypt::json_not_a_leaf`. Read such a child with `Subtree` at @@ -100,7 +110,8 @@ installed rc.6's bundle, you do not need to run it again. the same key. - A time is sent as RFC 3339 text in UTC. A time outside the years 0 to 9999 is refused with `ErrEncoding`. So is a key or a text that is not - valid UTF-8. + valid UTF-8, and maps and lists nested more than 32 levels deep. A + float that is not finite is sent as null. - Printing an `AuditMetadata` shows its keys, quoted, and never a value. - ZeroKMS does not verify the facts, and a decrypt does not need them. ZeroKMS writes them to its logs. Do not send plaintext, anything @@ -159,8 +170,8 @@ installed rc.6's bundle, you do not need to run it again. in the database until the row is written again or the column is dropped. -- **`Children` returns `encrypt.JSONChildren`, not `encrypt.JSONToken`** - (#1677). The new type contains the token and opens the children. +- **`Children` returns `encrypt.JSONChildren[E]`, not `encrypt.JSONToken`** + (#1677). `stashgen` writes `encrypt.JSONChildren[eql.JSONEntry]`. The new type contains the token and opens the children. Regenerate with `stashgen` to get it. - Code that passes the result to a query keeps working, because `JSONChildren` binds as its token. @@ -226,6 +237,12 @@ installed rc.6's bundle, you do not need to run it again. the scopes and the binding. A cipher with a binding still refuses `ChildCount`, since a count opens nothing. +- `vcffi` and `vcvalue` move to vitaminc `f1fc9ae74`, the commit vitaminc + 0.10.0 was released from. The host now checks the same date and + timestamp range as the guests. + +### Fixed + - **`Matches` on `TextMatch`, `TextSearch`, and `TextSearchOre` finds a name typed in part again** (#1398). Before this fix, "Mike Ng" did not find "Mike Nguyen". A stored value contains its 3-grams, and each @@ -245,12 +262,6 @@ installed rc.6's bundle, you do not need to run it again. `Verify` keeps the same rows that the filter selects. Stored values do not change, so nothing needs re-encrypting. -- `vcffi` and `vcvalue` move to vitaminc `f1fc9ae74`, the commit vitaminc - 0.10.0 was released from. The host now checks the same date and - timestamp range as the guests. - -### Fixed - - **A client goes on working after its RoundTripper panics during a ZeroKMS request** (#1780). A panic in the `http.RoundTripper` given to `WithTransport`, while it sends a ZeroKMS request, reaches the caller,