Endpoint Agents
The WolfGuard endpoint agent (~10 MB Go binary) runs on Windows, Linux, and macOS hosts and sends a periodic posture report to WolfGuard over mutual TLS. It is the modern successor to the bearer-token "standalone host" agent and is deployed exclusively through the Coderaft platform shell.
endpoint_agent feature flag.
Architecture
Endpoint Agent (Go, ~10 MB)
──mTLS (TLS 1.3 + client cert)──→
WolfGuard backend (FastAPI / PG / Neo4j)
- Each agent owns a per-host client certificate signed by the WolfGuard endpoint CA (created per tenant, stored in PostgreSQL)
- The platform reverse proxy validates the client cert fingerprint and injects
X-Client-Cert-Fingerprintinto the upstream request - WolfGuard authorises the agent by fingerprint (
endpoint_agents.mtls_cert_fingerprint)
Enrolment workflow
- Sign in to the Coderaft platform shell, open WolfGuard → Hosts
- Click Add new host and pick the target OS
- The dashboard generates a one-time enrolment command, scoped to the chosen OS and embedding a token valid for 60 minutes
- Run it as administrator / root on the target host
- Within ~10 seconds the Hosts page shows the new host as active
File system layout
| OS | Binary | Config |
|---|---|---|
| Linux | /opt/wolfguard/entraguard-agent | /etc/wolfguard/agent.json |
| macOS | /usr/local/opt/wolfguard/entraguard-agent | /etc/wolfguard/agent.json |
| Windows | %PROGRAMFILES%\WolfGuard\entraguard-agent.exe | %PROGRAMDATA%\wolfguard\agent.json |
agent.json (mode 0o600 on Unix, ACL-restricted on Windows) contains the mTLS cert + private key + CA cert + endpoint URL. Never check this file into source control.
Task queue
The dashboard can queue per-host tasks: rescan, collect-specific, rotate cert, revoke. The agent polls /api/entraguard/hosts/:id/tasks every 300 seconds (default), executes each task, and POSTs the result to /tasks/:task_id/complete.
Certificate rotation & revocation
- Rotation — per-host certs expire after 365 days. The Hosts page shows the next expiry and warns at T-30 days. Enqueue a
rotate_certtask to trigger rotation. - Revocation — instant. The agent record is marked
revokedand the proxy refuses all requests from that fingerprint. The agent exits on the next poll.
Reverse-proxy snippet (Caddy)
wolfguard.example.com {
tls {
client_auth {
mode require_and_verify
trust_pool file /etc/caddy/wolfguard-endpoint-ca.pem
}
}
@agent path /api/entraguard/hosts/*/report /api/entraguard/hosts/*/tasks*
handle @agent {
request_header X-Client-Cert-Fingerprint {http.request.tls.client.fingerprint}
reverse_proxy localhost:8000
}
handle {
reverse_proxy localhost:8000
}
} For Cloudflare deployments, use the Cloudflare mTLS feature and a Custom Hostname route to inject the same header.
Troubleshooting
| Symptom | Cause / fix |
|---|---|
register failed: 400 Invalid enrolment token | Token expired (60 min TTL) or already consumed — mint a new one. |
tls: handshake failure | Cert not yet issued / clock skew on agent host. Check NTP. |
Host stays pending forever | Proxy not forwarding X-Client-Cert-Fingerprint. See Caddy snippet above. |
feature_locked: endpoint_agent | License lacks the feature. Upgrade to Standard or Enterprise. |
Next steps
- → Collection Strategies — configure LDAP / WinRM / Intune alongside agents
- → Coderaft Vault — credential management for agents