Skip to content

Version Packages#519

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

Version Packages#519
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

stash@0.17.0

Minor Changes

  • eb94ac8: Add guards for missing native binaries. When npm skips the platform-specific
    optional dependency (a known npm bug), stash now prints actionable fix
    guidance instead of a raw MODULE_NOT_FOUND stack trace. Adds a new
    stash doctor command that diagnoses the runtime and native modules and works
    even when a binary is missing.

Patch Changes

  • @cipherstash/migrate@0.2.0

@cipherstash/stack@0.19.0

Minor Changes

  • 35b9ed6: Bump @cipherstash/protect-ffi to 0.26.0 and @cipherstash/auth to 0.40.0, and replace the lock-context token ceremony with a strategy-based approach for identity-bound encryption.

    protect-ffi 0.26.0 supersedes 0.25.0. The public API is unchanged from 0.25 (internal fixes only). As in 0.25, serviceToken is gone from the encrypt / decrypt / query option types; auth flows through the client's strategy / credentials, and lock contexts travel as lockContext.identityClaim. The WASM-inline path takes a single options object with the auth strategy nested under strategy, and Encryption() config uses workspaceCrn (CS_WORKSPACE_CRN) as the single source of truth — CS_REGION is no longer consulted. On that path workspaceCrn is required only alongside an accessKey (it derives the region); with a pre-built strategy it is optional, since the strategy already carries the CRN.

    Strategy-based, identity-bound encryption. OidcFederationStrategy federates an end user's third-party OIDC JWT (Clerk, Supabase, Auth0, …) into a CTS service token. As of @cipherstash/auth 0.40 it takes a workspaceCrn (region derived from the CRN), matching AccessKeyStrategy. Pass it as config.strategy so every ZeroKMS request authenticates as that user, then bind the data key to a claim with .withLockContext({ identityClaim }):

    import { Encryption, OidcFederationStrategy } from "@cipherstash/stack";
    
    const client = await Encryption({
      schemas: [users],
      config: {
        strategy: OidcFederationStrategy.create(workspaceCrn, () => getUserJwt()),
      },
    });
    
    await client
      .encrypt("alice@example.com", { column: users.email, table: users })
      .withLockContext({ identityClaim: ["sub"] });

    This replaces the old ceremony (new LockContext()await lc.identify(jwt).withLockContext(lc)), which relied on a per-operation CTS token that protect-ffi removed in 0.25.

    • .withLockContext() now accepts a plain { identityClaim } object (as well as a LockContext) and no longer requires a CTS token or an identify() call — it carries the identity claim only.
    • LockContext.identify() / getLockContext() are deprecated (kept for backwards compatibility); the strategy handles token acquisition.
    • Strategies are re-exported from @cipherstash/stack (OidcFederationStrategy, AccessKeyStrategy, AutoStrategy, DeviceSessionStrategy) and from @cipherstash/stack/wasm-inline (OidcFederationStrategy, AccessKeyStrategy) so integrators don't need a separate @cipherstash/auth install. AuthStrategy remains re-exported for the structural type.

    Existing credential / env behaviour is preserved when config.strategy is omitted.

@cipherstash/prisma-next@0.3.2

Patch Changes

  • Updated dependencies [35b9ed6]
    • @cipherstash/stack@0.19.0

@cipherstash/basic-example@1.2.13

Patch Changes

  • Updated dependencies [35b9ed6]
    • @cipherstash/stack@0.19.0

@cipherstash/prisma-next-example@0.0.5

Patch Changes

  • Updated dependencies [35b9ed6]
    • @cipherstash/stack@0.19.0
    • @cipherstash/prisma-next@0.3.2

@cipherstash/bench@0.0.4

Patch Changes

  • Updated dependencies [35b9ed6]
    • @cipherstash/stack@0.19.0

@github-actions github-actions Bot requested a review from a team as a code owner June 19, 2026 12:51
@github-actions github-actions Bot closed this Jun 19, 2026
@github-actions github-actions Bot force-pushed the changeset-release/main branch from 679b76f to 8ab3368 Compare June 19, 2026 13:23
@github-actions github-actions Bot reopened this Jun 19, 2026
@github-actions github-actions Bot closed this Jun 19, 2026
@github-actions github-actions Bot force-pushed the changeset-release/main branch from ad6332a to df9c8e3 Compare June 19, 2026 13:54
@github-actions github-actions Bot reopened this Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants