Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(b4): write host NaCl key file with mode 0o600 (security review)

enes8c61b376c904
diff --git a/src/main/remote/host-service.ts b/src/main/remote/host-service.ts
index 090915c05..2d752f208 100644
--- a/src/main/remote/host-service.ts
+++ b/src/main/remote/host-service.ts
@@ -271,7 +271,8 @@ async function loadOrCreateKeyPair(): Promise<KeyPair> {
publicKey: Buffer.from(keys.publicKey).toString('base64'),
secretKey: Buffer.from(keys.secretKey).toString('base64')
}),
- 'utf-8'
+ // 0o600: the host's NaCl secret key is its E2EE identity — owner read/write only.
+ { encoding: 'utf-8', mode: 0o600 }
)
.catch(() => {})
return keys