You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go SDK docs: nothing compares keysets, scopes, and context_field for separating tenants #1885
The Go SDK is in languages/golang in this repository. Its user docs are the READMEs of encrypt and cmd/stashgen, the package doc comments, and the testable examples. pkg.go.dev shows all of them. In November 2026 we audited the docs of version v0.1.0-rc.7. AI agents built programs from the published docs alone, against a dev workspace and PostgreSQL 17 with EQL (Encrypt Query Language) v4. EQL is the SQL extension that stores and queries encrypted values.
Problem
There are three ways to separate tenants: keysets, scopes, and context_field. Nothing compares them. Each gives a different error on a mismatch. A different keyset gives ErrForeignKeyset. A different scope on the same keyset gives ErrForbidden.
Proposal
Add a section that compares the three, with when to use each and the error each mismatch gives.
Evidence
The errors were verified by running code with two real keysets.
Activity