Skip to content

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.

Terminal window
docker exec moirad moirad invite --name laptop # one-time invite, 15 minutes
docker exec moirad moirad clients ls # enrolled clients and last seen
docker exec moirad moirad clients revoke laptop # invalidate a client's token
docker exec moirad moirad tls fingerprint # the certificate's SHA-256 pin

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.

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.

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.

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.