Documentation
¶
Overview ¶
Command console is the minimal console of the SSH install test (test/sshinstall): NodeService.Enroll only, plus a plain HTTP side for the test script. It is not part of any release artifact.
Enroll follows the console (ADR-0067, Enroll idempotent by key): a CSR whose public key already belongs to a node gets that node back with a new certificate when the token is the one that node used, or an unused token of the node's cluster; any other token is refused. A node is never created twice for one key.
HTTP side (--http):
GET /pin the CA pin (hex SHA-256)
POST /token?t=T&cluster=C add a single-use token of cluster C
(default cluster-ssh)
POST /mode?delay=D&lose=N delay each Enroll answer by D; lose the
answers of the next N enrollments (the
certificate is issued, the node gets an error)
GET /state {"enrollments": n, "nodes": {id: spki}}
(clusters are not shown)
GET /mirror/... files of --mirror (install.sh's --mirror)