4 Commits
Author SHA1 Message Date
waozi f98d282141 Prove the installed-app login on native and switch production to it
Mesh CI and deploy / container (push) Successful in 22m1s
Mesh CI and deploy / checks (push) Successful in 1h9m52s
Mesh CI and deploy / deploy (push) Failing after 28m44s
check_legacy_headers.zi now signs in the way installed apps do: a real
ML-DSA-44 key, a server challenge signed over daochi-sync-v1, X-Daochi-User
and X-Daochi-Signature, then a sync with the returned bearer token. A wrong
signing label fails the check.

A mirror of 2,168 live requests to native on a database copy matched Go's
status on every route apart from logins and the requests that follow them,
which the copy cannot share with the live database. deploy/runtime selects
native again.
2026-11-23 04:45:57 -03:00
waozi 7ed59637a3 Return production to the Go server
Mesh CI and deploy / deploy (push) Canceled after 0s
Mesh CI and deploy / container (push) Canceled after 5m40s
Mesh CI and deploy / checks (push) Canceled after 5m45s
The native server answered a real client's POST /api/v1/sync with HTTP
400 where Go answers 200, so production was rolled back to Go two minutes
after the switch. deploy/runtime selects Go again until that request has
a native regression test.
2026-11-23 02:02:52 -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