Commit d511098
committed
fix(setup-action): set SFW_UNKNOWN_HOST_ACTION=ignore in generated shims
sfw-enterprise's built-in default for unknownHostAction is 'block' —
which rejects every host outside the registries[] allowlist, breaking
dev/CI workflows that hit api.anthropic.com, github.com, telemetry
endpoints, etc. sfw-free hardcodes 'ignore' internally and ignores the
env var, so setting it unconditionally is safe — free mode is a no-op,
enterprise picks it up.
The host allowlist (registries[]) is still required — it's what gets
ACTIVELY SCORED by Socket. unknownHostAction only changes the default
for non-allowlisted hosts from "block" to "pass through unscored."
Covers both bash and Windows .cmd shim variants. Source-of-truth check:
firewall/src/lib/firewall/connect.ts handleConnect.
Sibling change in socket-wheelhouse template/docs/references/sfw-local-
install.md updates the local-install doc to instruct users to add the
same export when hand-rolling their regenerate-shims.sh.1 parent 5a82eaa commit d511098
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
330 | 339 | | |
| 340 | + | |
331 | 341 | | |
332 | 342 | | |
333 | 343 | | |
334 | 344 | | |
335 | | - | |
| 345 | + | |
336 | 346 | | |
337 | 347 | | |
338 | 348 | | |
| |||
0 commit comments