# secure-messaging Passthrough NATS envelopes, Ed25519 signed configuration, DataCube admin history, and Network Error Bundles. * Python spec: `python/secure_messaging/` (line comments) * Go leaf: `go/cmd/sm-leaf` (in-process NATS + optional `SM_LEAF_HUB`) * Loopback health: `SM_HTTP` default `127.0.0.1:18783` (`GET /health`) * systemd: `deploy/pfc-sm-leaf.service` (does not replace `pfc-py-admin`) * Catalog: https://git.georgelambert.org/marchon/nats-service-endpoints * Hub: https://git.georgelambert.org/marchon/system-git-sync Config must be a signed wrapper. Unsigned files are rejected. Admin changes append prev + new + unified diff to a `kind=admin-history` JSONL chain. `crypto.mode`: `npe` | `lab-xor` | `plain-lab` (see signed payload). Live ns1 lab uses `lab-xor` until `PFC_REQUIRE_NPE=1` is explicitly cut over. Not a HIPAA/SOC 2/ISO certificate.