test(lan): end-to-end mTLS + capability-gate integration test (VA-8) #137
Loading…
Reference in a new issue
No description provided.
Delete branch "test/VA-8-lan-integration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
End-to-end integration test for the VA-8 LAN control-plane listener, added after the listener (#136) and its server-side trust anchor (VS-92, #110) merged.
Drives the real
lan::spawnlistener over mTLS:sysinfo(read-only) and gets a reply, then sendsexecutecommand(mutating) and is refused with{"action":"error","error":"not-permitted"}.This covers the peer-interaction half of the VA-8 acceptance criteria (listener + mTLS peer auth + WebSocket + gated dispatch). The agent has no peer-dialer yet, so the harness plays the connecting peer, using the same trust shape as production (one agent CA signs every agent leaf directly, so a bare leaf verifies in one hop).
Testing
cargo test -p vervain-agent --test lan_listener- 2 pass. clippy--all-targetsand fmt clean.Part of VA-8.