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
fix: make the firewall self-verify fail closed and match exact rules
Two defects that compounded: the verify file was written before the
VERIFY_OK gate, and the Lima readiness probe treats its existence as
'firewall is up' — so a failed verification still produced a VM that
limactl start reported ready. In the container sandbox the same exit 1
aborted entrypoint.sh and the container died; the equivalent here is to
withhold the readiness signal, so the file is now written only after
every check passes.
The checks themselves could not be trusted either: the gateway-reject
check grepped the human-readable listing for 'owner UID match <agent
uid>', which the agent-to-Squid ACCEPT rule also contains, so it
reported the reject as present whether or not it existed. The proxy
check had the identical weakness. Both now match whole rule lines from
iptables -S, and the suite asserts those specs directly rather than
trusting the guest's self-report.
sandbox-boot.sh traps ERR and touches a failure marker the probe
watches, turning a broken boot from a silent 300s timeout into an
immediate failure that names the step.
Verified by patching one check in a copy of the live script to expect a
nonexistent rule: exit 1, the specific failure named, no verify file
written; and the probe exits non-zero in 0s with the marker present.
0 commit comments