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
WASM-inline: support CS_WORKSPACE_CRN / derive region from workspace CRN #523
Follow-up from #496 / #522. The existing CRN tracking issue covers the Rust crate; this is the equivalent gap in @cipherstash/stack.
Problem
The WASM-inline entry (@cipherstash/stack/wasm-inline) currently:
IgnoresCS_WORKSPACE_CRN — the WASM client derives workspace identity from the access-key token, not from the CRN. The Node entry consumes the CRN, so this is a parity gap. examples/supabase-worker/.env.example and the wasm-e2e-tests CI job both deliberately omit the var with a comment pointing here.
Requiresregionexplicitly — WasmClientConfig.region is a required field, marked @deprecated in packages/stack/src/wasm-inline.ts, because the underlying @cipherstash/auth/wasm-inlineAccessKeyStrategy.create() still takes a region argument.
Desired end state
Once @cipherstash/auth switches AccessKeyStrategy.create() to take a workspaceCrn and derive the region from it:
Replace the required region field with workspaceCrn on WasmClientConfig (single source of truth).
Assert the bearer token's workspace against the CRN.
Re-add CS_WORKSPACE_CRN to the Supabase example .env.example + the wasm-e2e-tests job env, and remove the "deliberately omitted" comments.
Update the region deprecation note / docs accordingly.
Blocked on
A @cipherstash/auth/wasm-inline release whose AccessKeyStrategy.create() accepts a workspaceCrn.
See the region deprecation comment in packages/stack/src/wasm-inline.ts for context.
Delivered by #497 (merged to main as 93fc5f9b1). The wasm-inline path now takes workspaceCrn (region derived from the CRN) via AccessKeyStrategy.create / OidcFederationStrategy.create, with CS_WORKSPACE_CRN as the single source of truth — and workspaceCrn is optional when a pre-built strategy is supplied. Shipping as @cipherstash/stack@0.19.0 (Version Packages PR #519). Closing as completed.
Activity
coderdan commentedon Jun 30, 2026
Delivered by #497 (merged to
mainas93fc5f9b1). The wasm-inline path now takesworkspaceCrn(region derived from the CRN) viaAccessKeyStrategy.create/OidcFederationStrategy.create, withCS_WORKSPACE_CRNas the single source of truth — andworkspaceCrnis optional when a pre-builtstrategyis supplied. Shipping as@cipherstash/stack@0.19.0(Version Packages PR #519). Closing as completed.