Repository navigation
BB Box 0.2.4
BB Box's own test suite now refuses to run on a machine that matters. This changes nothing for people using BB Box; it protects the machines of people working on it.
- Before any test runs, the suite checks the machine. It refuses where the user can run sudo without a password, runs as root, or has Tailscale installed, unless the machine is a BB Box box, a GitHub Actions run, or the person sets BBBOX_TESTS_MAY_BREAK_THIS_MACHINE=1. Every test file runs the check first, however it is started: npm test, node --test, node alone or Vitest. A sudo that does not answer in time counts as a refusal.
- The test fakes' stand-ins for privileged tools are stricter: file commands act only inside their own folders, and network and system tools run only in read-only forms.
- Earlier, tests run through a fake SSH host reached the machine's real sudo and logged it out of its tailnet. That can no longer happen on a machine the check protects.