Clients and access
Admin commands run inside the moirad container and talk to the daemon over a unix socket
(/run/moirad/admin.sock). The socket isn’t reachable over the network, so using it requires
access to the host.
docker exec moirad moirad invite --name laptop # one-time invite, 15 minutesdocker exec moirad moirad clients ls # enrolled clients and last seendocker exec moirad moirad clients revoke laptop # invalidate a client's tokendocker exec moirad moirad tls fingerprint # the certificate's SHA-256 pinRevoking a client
Section titled “Revoking a client”clients revoke removes the client from memory and from clients.json. It takes effect on the
client’s next request, and its open log streams are closed. Running jobs it started keep
running.
On the client side, moira server rm <host> removes the server from the local config.
Who did what
Section titled “Who did what”Every job records the client that started it, and moirad logs it with the job’s start and end.
moira jobs shows the client in its CLIENT column.
Pending invites
Section titled “Pending invites”Invites live in the daemon’s memory: single-use, 15 minutes, dropped when the daemon restarts. Failed enrollment attempts are limited to five per minute per source address.
Rotating the certificate
Section titled “Rotating the certificate”Clients pin the certificate. To rotate it, stop the daemon, delete <state dir>/tls/, start it
again and re-enroll every client. There is no rotation protocol, because it should almost never
be needed: the certificate is valid for 10 years.