Agent installation
The managed agent runs as an unprivileged systemd service on the managed host and initiates outbound HTTPS connections to the central platform.
Properties
- Runs as a dedicated unprivileged user (
linux-operator). - Installed as a systemd service.
- Uses a one-time enrollment token with short expiry (10 minutes).
- Stores client certificate and key with restrictive permissions (0600).
- Initiates outbound HTTPS only (no inbound listener).
Enrolment
- Create a server in the dashboard (or via
POST /api/v1/servers). - Generate an enrollment token:
POST /api/v1/servers/{server_id}/enrollments. - On the managed host, run the enroll command with the token.
- Start the agent run loop.
Upgrade
- Publish a signed agent package.
- Install it on the managed host.
- Restart
linux-operator-agent.service. - Confirm the new version in the heartbeat/dashboard.
Revocation
- Call
POST /api/v1/servers/{server_id}/revoke(admin). - The agent credential is cleared and the server is marked
revoked. - Queued tasks for that server are not executed.
- Re-enroll the host with a new one-time token if needed.
Permissions for kernel log reading
sudo usermod -aG adm linux-operator
# or
sudo setfacl -m u:linux-operator:r /var/log/kern.log /var/log/syslog
