Files
Yota Hamada c1922d7e68 Add the worker invite and removal API (#4327)
An admin can create, list and delete worker invites, ask whether the
coordinators can accept workers from other hosts, and remove a worker
that joined with an invite through the REST API:

- GET and POST /api/v1/workers/invites
- DELETE /api/v1/workers/invites/{inviteId}
- GET /api/v1/workers/join-readiness
- POST /api/v1/workers/removals

Every route needs the admin role, checked before input validation, and
none of them is forwarded to a remote node. An invite address must be
host:port with a hostname or an IP literal as host; dagu worker invite
checks the same rule. A refusal carries a stable reason in
details.reason so a client can explain it without matching messages.
/workers reports each worker's connection, certificate and invite, and
leaves out workers whose certificate is revoked.

Part of #4292 (T16).
2026-11-29 05:20:43 +09:00
..