5 Commits
Author SHA1 Message Date
waozi 8854464571 Prove legacy peer headers, match Go metrics, and sandbox the service
Mesh CI and deploy / checks (push) Successful in 37m19s
Mesh CI and deploy / native (push) Successful in 17m28s
Mesh CI and deploy / scans (push) Successful in 4m37s
Mesh CI and deploy / container (push) Skipped
Mesh CI and deploy / deploy (push) Successful in 1m47s
The native pull client sent both X-Mesh-Node-* and X-Daochi-Node-*
signatures but nothing tested the legacy pair. A fixture peer now accepts
only the Daochi names and verifies ID, Time, Nonce and Signature against
the pulling node's paired key.

Native route labels used {reference}, {id} and {path} where Go writes
{recipient}, {receipt_id} and the bare collection prefixes, and native had
no referral rows. Both sides now emit the same 129 labels, and a parity
test fails on any family name, type or label mismatch.

mesh.service ran as root with ProtectSystem=no. Installs now create a
dedicated mesh account, hand it the data directory, let it read root-owned
configuration through its group, and install a drop-in with
NoNewPrivileges, ProtectSystem=strict, ReadWritePaths and PrivateTmp.
Rollback restores the recorded ownership and the previous drop-in.
2026-11-23 16:43:20 -03:00
waozi 938156c35a Run the native server in production and keep sync tokens out of the unit
Mesh CI and deploy / container (push) Successful in 22m21s
Mesh CI and deploy / checks (push) Successful in 51m58s
Mesh CI and deploy / deploy (push) Successful in 19m14s
deploy/runtime selects the native Ziran server. The Go binary stays at
/opt/mesh/mesh for its CLI commands and as the rollback, which removing
mesh.service.d/30-runtime.conf restores.

systemd shows Environment= values to local users, and the node sync
token in the 20-mesh-mesh.conf and 20-daochi-mesh.conf drop-ins was an
older value that /etc/mesh/mesh.env overrides. Installs now back up and
remove both drop-ins, rollback restores them, and a deploy that passes a
token is refused before any change, so the 0600 mesh.env is the only
place that holds it.
2026-11-22 22:49:18 -03:00
waozi f9fb1555ba Ship and install the native server beside the Go binary
The deploy job adds the native server's generated C and SQLite source to
the artifact. The origin gateway builds them with cc when present and
verifies their manifest, and install.sh installs /opt/mesh/mesh-native
beside the Go binary, whose CLI commands stay in use.

deploy/runtime selects the server through a mesh.service drop-in. It
stays go until the origin has built native once; a failed install
restores the previous binary and selection.
2026-11-22 18:17:12 -03:00
waozi 35159302be Rename Daochi to Mesh with compatible state and deployment migrations 2026-11-17 14:57:07 -03:00
waozi 64f75e90fc Validate published dependency graph and isolate deployment shell inputs 2026-10-30 21:21:24 -03:00