Documentation

How Fleetspan works — bootstrap once, operate safely every day after.

Use these guides before connecting production hosts. Deep technical notes also live under docs/ in the repository.

Platform overview

Fleetspan is an application operations and developer access platform for mixed Linux environments. Connect Ubuntu hosts with an outbound agent, discover PM2/systemd/Docker applications, and grant scoped operational permissions.

Bootstrap once, then operate here

The first Ubuntu setup (packages, nginx, Docker/Node/Python, PM2) is done once via SSH or an Owner bootstrap playbook. After the agent is enrolled, developers use Fleetspan for day-2 work — without root SSH.

  • Owner playbooks: node-pm2-nginx, python-nginx, docker-compose, agency-default
  • Agent enrolls with a one-time token over outbound HTTPS
  • Day-2: deploy, restart, logs, app .env, app nginx

Agent & connectivity

The agent enrolls with a one-time token, sends heartbeats, reports host inventory, and discovers applications. Allowed actions come from a strict operation registry — never an arbitrary remote shell.

  • Enrollment tokens expire and are single-use
  • Agent credentials are hashed at rest
  • Revoke an agent anytime from the server page
  • Default install runs as root with a fixed operation allowlist; app builds run as --app-user (sudoers template available for hardening)

Roles & application permissions

Organization roles (Owner, Admin, Developer, Viewer) combine with application assignments. Developers only see and act on apps they are assigned — with explicit grants for restart, logs, deploy, env, or nginx.

Deployment model

Configure repository, branch, directory, install/build commands, and healthcheck. Live deploys create release directories, activate current, restart the process, and can auto-rollback on failed healthchecks. Demo deployments are simulated and labeled.

App-scoped .env & nginx

Developers with grants can edit the allowlisted app .env (with backup) and apply a templated nginx site for that app. This is not a general filesystem or global nginx.conf editor.

What Fleetspan does not do

Fleetspan is not a general remote shell or full configuration-management product. Unscoped apt installs, firewall changes, and arbitrary file edits stay out of developer reach. Keep those for Owner bootstrap or your existing infra tooling.

Also in the repo

  • docs/phase8/DEPLOY_AND_BOOTSTRAP.md
  • docs/deployment/PRODUCTION.md
  • docs/agent/SECURITY.md