testsAndMisc/docs/superpowers/evidence/wg-firewall-workout-poke-8774-2026-10-10.json
Krzysztof kuhy Rudnicki b8d0b215e1
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
wg firewall: the workout poke moves to tcp/8774 (8773 is book-guard's desktop wrapper); applied on the host 2026-10-10, phone reaches 8774 over the LAN
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KrBEzjPRdx5oyp8NtTLW5F
2026-10-10 09:57:29 +02:00

32 lines
1.6 KiB
JSON

{
"intent": "The phone's instant workout poke reaches screen-locker on tcp/8774; tcp/8773 is left to book-guard's desktop wrapper (loopback), whose window the poke server had been answering.",
"scope": [
"linux_configuration/features/lib/wg_firewall.sh, wg_sshd.sh, tests/test_wg_firewall.sh",
"Non-goal: any other firewall rule; the poke stays LAN-only with no wg0 rule"
],
"changes": [
"LAN-only poke rule renders 'ip saddr <LAN> tcp dport 8774 accept' instead of 8773",
"allow-workout-poke help and confirmation text name tcp/8774"
],
"verification": [
{
"command": "bash linux_configuration/features/lib/tests/test_wg_firewall.sh",
"result": "pass",
"evidence": "18 passed, 0 failed (nft -c skipped: not permitted unprivileged)"
},
{
"command": "vm run pokefw 'echo y | sudo bash ~/lc/features/setup_wireguard_ssh.sh allow-workout-poke'",
"result": "pass",
"evidence": "vmbox: exit 0, live ruleset has 'ip saddr 192.168.1.0/24 tcp dport 8774 accept', no 8773 rule, sshd active, second ssh session connects. Not verified on the host at commit time."
}
],
"risks": [
"Until the host re-applies, the live ruleset still opens 8773 (nothing listens on the LAN there) and blocks 8774, so the poke fails fast and the regular sync credits workouts",
"nftables-drift reports drift until the host re-applies"
],
"rollback": [
"git revert, then sudo bash linux_configuration/features/setup_wireguard_ssh.sh allow-workout-poke",
"Check: sudo nft list ruleset | grep 877 shows the restored port"
]
}