[repo] Legatus v0.1: protocol v1, enrollment, mTLS, the signature check, the Linux target #1
Reference in New Issue
Block a user
Delete Branch "feature/v0.1"
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?
Legatus v0.1 foundations (Fabrica docs/32_coherence.md, T3a): protocol v1, enrollment, mTLS, the signature check, and the Linux (systemd) target.
What
legatus-protocol(pure):EnrollmentCode(lgt1-…: server, root SHA-256, 128-bit secret, checksum),EnrollmentBook(single use, digest only), messages (enroll, hello, job, report, renew; strict, bounded),JobGuard(expired, future, too long, replayed),Registry(current/pending serial, revoked),verify_release+check_artifact(minisign by a pinned team key over the exact manifest bytes; team, app, version, artifact must match the job; size and SHA-256),check_entry(archive paths).legatus-linux: release dirs,currentswitched by symlink +rename(2),systemctl restart, health (unit active and a local URL, twice in a row), auto rollback, pruning, hostile-tar unpacking.legatus: TLS that trusts only the pinned Domi root (by hash at enrollment, then the stored root), mTLS with the agent's own key, a small bounded HTTP/1.1 client,enroll, the job loop, renewal, CLI;install/install.sh;tests/linux(real systemd in a container).Tests (first, 58 on Windows + 13 on a Linux kernel): protocol 32 (enrollment 8, certificates 6, release 9, jobs 9); linux 13 (unpack 5 everywhere; switch/rollback 8 Linux-only, run on Linux 6.6 in the x86_64 emulator, systemd faked); agent 21 (pipeline 9, end to end over real TLS 12). Mutation check: disabling the server-certificate check or the artifact hash makes 3 e2e tests fail.
Self-review (adversarial)
systemctl; tar refuses links, devices,.., absolute paths.tests/linux/run.shwith real systemd (no Docker/Podman/WSL on this PC); the installer end to end (Fabrica must serve it); the server side (Fabrica, T3b).