Skip to content

fix(issuer): cfg(unix)-gate dstack-kms so the wasm32 build compiles#26

Merged
NubsCarson merged 1 commit into
mainfrom
fix/dstack-kms-wasm-cfg
Jun 8, 2026
Merged

fix(issuer): cfg(unix)-gate dstack-kms so the wasm32 build compiles#26
NubsCarson merged 1 commit into
mainfrom
fix/dstack-kms-wasm-cfg

Conversation

@NubsCarson

Copy link
Copy Markdown
Owner

Why

PR #25's new dstack-kms client uses std::os::unix::net::UnixStream, which does
not exist on wasm32. tessera-wasm transitively compiles tessera-issuer, so the
wasm browser client CI job broke — and it reached main because my #25 merge
command's piped gh pr checks | sort | head masked the failing exit code. My fault;
this restores main to green.

Fix

#[cfg(unix)]-gate the Unix-only dstack_kms module. The
KeyProviderConfig::DstackKms variant still parses on every platform (portable
config validation), but preflight/establish fail closed with a clear "requires a
Unix platform" error on non-Unix targets.

Verified locally

  • cargo build --manifest-path crates/tessera-wasm/Cargo.toml --target wasm32-unknown-unknown now compiles (was error[E0433]: cannot find unix in os).
  • Unix path unchanged: 35 issuer tests green, clippy -D warnings clean, fmt clean.

Docs/behavior on Unix (the only supported deploy target) are unchanged.

The new dstack-kms client uses `std::os::unix::net::UnixStream`, which doesn't
exist on `wasm32` — and `tessera-wasm` transitively compiles `tessera-issuer`, so
PR #25 broke the `wasm browser client` CI job (and landed on main: my merge
command's piped `gh pr checks` masked the failing exit code).

Gate the Unix-only module behind `#[cfg(unix)]`; the `KeyProviderConfig::DstackKms`
variant still parses everywhere (portable config validation), but preflight/establish
fail closed with a clear "requires a Unix platform" error on non-Unix targets.
Verified: `tessera-wasm` now builds for wasm32-unknown-unknown; the Unix path is
unchanged (35 issuer tests green, clippy clean).
@NubsCarson NubsCarson merged commit 1b0d1cb into main Jun 8, 2026
12 checks passed
@NubsCarson NubsCarson deleted the fix/dstack-kms-wasm-cfg branch June 8, 2026 03:18
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.

1 participant