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
Default SEA binary server-v3 to only bind to localhost (#2091)
## Summary
- default the v3 server listener to localhost unless HOST is explicitly
set
- warn when HOST=0.0.0.0 opts into all-interface binding
- make the v4 SEA build choose a Node binary that contains the SEA fuse
## Validation
- pnpm --filter @browserbasehq/stagehand-server-v3 run build:esm-tests
- pnpm --filter @browserbasehq/stagehand-server-v3 run typecheck
- pnpm --filter @browserbasehq/stagehand-server-v4 run typecheck
- pnpm --filter @browserbasehq/stagehand-server-v3 run test:unit --
packages/server-v3/dist/tests/unit/listenHost.test.js
- pnpm --filter @browserbasehq/stagehand-server-v4 run build:sea:esm --
--binary-name=stagehand-server-v4-localhost-binding-test
Leaving the full suite to CI.
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Default `@browserbasehq/stagehand-server-v3` to listen on localhost
unless `HOST` is set, and warn on `HOST=0.0.0.0` to prevent accidental
exposure. Also make the `@browserbasehq/stagehand-server-v4` SEA build
use a Node binary that includes the SEA fuse for reliable builds.
- New Features
- Default listen host to `localhost` when `HOST` is unset or blank;
respect explicit values.
- Warn when `HOST=0.0.0.0` to make all-interface binding explicit.
- Migration
- If you need external access, set `HOST=0.0.0.0` (or a specific
interface).
<sup>Written for commit 3cecdce.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
"HOST=0.0.0.0 was passed explicitly, so the Stagehand server will listen on all network interfaces. Use HOST=localhost or HOST=127.0.0.1 unless you intend to expose this server beyond the local machine.";
`Current Node binary at ${process.execPath} does not include ${seaFuse}; falling back to the official ${process.version} distribution for SEA injection.`,
0 commit comments