Skip to content

Commit a6b8a0e

Browse files
authored
Merge pull request #656 from cipherstash/docs/agents-md-authstrategy-key
docs(agents): correct the auth-strategy config key (config.authStrategy)
2 parents c9e32ed + 7744caf commit a6b8a0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Three rules to remember when editing CI or pnpm config:
157157
- `bulkEncryptModels(models[], table)` / `bulkDecryptModels(models[])`
158158
- `encryptQuery(value, { table, column, queryType?, returnType? })` for searchable queries
159159
- `encryptQuery(terms[])` for batch query encryption
160-
- **Identity-aware encryption**: Authenticate the client as the end user with `OidcFederationStrategy` (`config.strategy`, re-exported from `@cipherstash/stack`), then chain `.withLockContext({ identityClaim })` on operations to bind the data key to a claim. The same claim must be used for encrypt and decrypt. (`LockContext.identify()` from `@cipherstash/stack/identity` is deprecated — the strategy now handles token acquisition; `.withLockContext()` also accepts a `LockContext`.)
160+
- **Identity-aware encryption**: Authenticate the client as the end user with `OidcFederationStrategy` (`config.authStrategy`, re-exported from `@cipherstash/stack`), then chain `.withLockContext({ identityClaim })` on operations to bind the data key to a claim. The same claim must be used for encrypt and decrypt. (`LockContext.identify()` from `@cipherstash/stack/identity` is deprecated — the strategy now handles token acquisition; `.withLockContext()` also accepts a `LockContext`.)
161161
- **Integrations**:
162162
- **Drizzle ORM**: `encryptedType`, `extractEncryptionSchema`, `createEncryptionOperators` from `@cipherstash/stack-drizzle` (EQL v3 factories from `@cipherstash/stack-drizzle/v3`)
163163
- **Supabase**: `encryptedSupabase` (v2) / `encryptedSupabaseV3` (v3) from `@cipherstash/stack-supabase`

0 commit comments

Comments
 (0)