Harden bindings, FFI concurrency, mobile storage, and web SDK (Audit Batch 2B)
Harden bindings, FFI concurrency, mobile storage, and web SDK (Audit Batch 2B)
Harden runtime session concurrency, FFI and language bindings, mobile keystore storage, browser Web SDK, and demo server (Audit Batch 2B).
- Runtime and C ABI (
tendril-runtime,crates/tendril-ffi): split transport streams (PathStream::into_split) behindConcurrentSession(reader -> writer -> machine -> roster -> pending_events,shutdown(), freshcurrent_unix_secschecks), zeroize returned strings intendril_string_free, truncatetendril_last_errorat UTF-8 char boundaries, guardtendril_session_send_dataagainstlen > MAX_APP_DATA_LEN, and addtendril_endpoint_new_from_state,tendril_endpoint_close,tendril_session_shutdown, and state export symbols. - Go, Python, Node, Kotlin/Android, and Swift bindings: validate safe integers in Node, reject embedded NUL bytes across Go/JNI/Swift strings, upgrade
Endpoint/Sessionlocks to support concurrent full-duplex operations and cleanclose()wakeups, disable Android cloud/ADB backups (android:allowBackup="false"), wireSealedStateStore(AndroidKeyStore) andSealedSwiftStateStore(Keychain +CryptoKit) into mobileTendrilEndpoint/TendrilSessionlifecycles, and harden JNI UTF-16 error conversion. - Web SDK and demo (
crates/tendril-wasm,bindings/web): enforce relay WebSocket URL checks (allowInsecureWsopt-in off loopback, SSRF/userinfo/fragment/control-char guards), capRelayStreamreceive buffers, serializeTendrilWebSessionframe writes via#sendChain/#recvChain, roll back or fail closed ononPersistRostererrors (WasmRoster::replace_from_json), preventTendrilWebClient.free()WASM null-pointer traps, hardendemo/server.mjsheaders/allowlists/upgrades, scrub URL secrets indemo/app.js, and move demo keys into a non-extractable WebCrypto AES-256-GCM IndexedDB vault. Updated FFI ABI and cross-language bindings and Web and mobile bindings.
Connections
Local graphNo pages link here yet.