Orbit — Agent Enrollment
Orbit manages agent enrollment in SOCSuite: new endpoints (Linux/macOS/Windows, K8s) are onboarded via enrollment tokens — one-time, time-limited and optionally scoped to missions.
Enrollment tokens
Tokens are created and managed under Orbit → Enrollment Tokens. Each token carries:
| Field | Meaning |
|---|---|
| Name | Free-form label (e.g. „Production Servers 2026") |
| Lifetime | 1 h, 24 h or 7 days (default 24 h) |
| One-Time-Use | Default — the token registers exactly one agent |
| Max Uses | Only when One-Time-Use is disabled (otherwise unlimited) |
| Missions | Optional restriction to selected mission types |
The token value is shown once at creation — afterwards only a hash is persisted.
Status automation
Token status is derived (no manual field):
- active — valid and not yet consumed
- expired — lifetime elapsed
- exhausted — max uses reached
- revoked — manually revoked
List & default filter
The view shows active tokens only by default — expired, exhausted and revoked tokens are collapsed behind the „Show inactive (n)" toggle (DEV-1351). The KPI cards (Total / Active / Expired+Exhausted / Revoked) always count over all tokens.
Hygiene & cleanup rule
Enrollment tokens are short-lived by design (1–7 days). Expired tokens are periodically purged from the database (cleanup — DEV-1351: 27 expired tokens removed in the dev environment), since they provide no further value: an agent enrolling with an expired token is rejected. Revoked tokens remain visible because they serve as an audit trail.
Security
- Token validation is server-side (lifetime, use counter, revocation, mission scope)
- Create/modify/revoke requires the
orbit.agents.managepermission - Every enrollment action is recorded in the audit log