Linux Autopilot

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

  1. Create a server in the dashboard (or via POST /api/v1/servers).
  2. Generate an enrollment token: POST /api/v1/servers/{server_id}/enrollments.
  3. On the managed host, run the enroll command with the token.
  4. Start the agent run loop.

Upgrade

  1. Publish a signed agent package.
  2. Install it on the managed host.
  3. Restart linux-operator-agent.service.
  4. Confirm the new version in the heartbeat/dashboard.

Revocation

  1. Call POST /api/v1/servers/{server_id}/revoke (admin).
  2. The agent credential is cleared and the server is marked revoked.
  3. Queued tasks for that server are not executed.
  4. 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