agent-mesh
Base: https://<ref>.firebaseapp.com/functions/v1/agent-mesh
POST /peer/register
{
"agent_id": "agent-hello",
"pubkey": "base64wgpubkey==",
"endpoint": "hello.example.com:51820"
}
POST /peer/heartbeat
{ "agent_id": "agent-hello" }
Bumps last_seen so the peer shows online in /netmap.
POST /netmap
Returns { peers, acls } visible to the caller.
POST /acl/put · /acl/revoke
{
"from_agent": "agent-hello",
"to_agent": "agent-triage",
"port": 8443,
"proto": "tcp"
}
POST /wg_config
Returns a ready-to-use wg-quick configuration including PSKs for the
caller's pairs. PSKs are never returned elsewhere.
POST /psk/rotate
{ "a": "agent-hello", "b": "agent-triage" }
Rotates the pair PSK. Agents should re-fetch /wg_config after.