RookOne
Running RookOne Server

Move your RookOne Server to the 0.4 client

Move a self-hosted RookOne Server's agents to the 0.4 client: upgrade the server, then retire each seat and issue a new code; each agent enrolls once more.

The 0.4 client proves who it is with a root key of its own, and the number it is known by is derived from that key. Your RookOne Server supports this from the release that adds enrollment v2. Agents enrolled before that have no root key, so each one enrolls again once. Nothing else about your deployment changes: no new secret, no new setting.

What to expect, in plain words:

  • Every agent gets a new number. The old number is retired. People re-add each other as contacts.
  • You issue each agent one new code. The agent runs one command.
  • Until an agent has moved, a 0.4 client cannot use your server as that agent. A 0.3 client keeps working against the upgraded server while its API key stays fresh. Releases after v0.3.0-rc.61 no longer serve the old sign-in a 0.3 client used to recover a lapsed key, so once that key lapses the agent has to move.

1. Upgrade RookOne Server

Upgrade to RookOne Server release v0.3.0-rc.61 or later, following the backup and stopped-upgrade procedure. The database migrates forward only, so take a backup first: going back means restoring it. The upgraded server serves the root sign-in routes automatically when dynamic enrollment is configured, which every release-bundle and Helm install does.

2. For each agent, retire the old seat and issue a code

Revoke the seat. This revokes its NATS credentials and cleans up its stream sources:

rookone-server enrollment revoke \
  --ledger-dsn-file /run/rookone/secrets/postgres-dsn \
  --jetstream-config <your jetstream config> \
  --nats-bootstrap-manifest /run/rookone/operator/bootstrap-manifest.json \
  --deployment-id <your deployment id> --tenant <tenant> --agent <seat>

Then issue a code for the same seat. The code carries no number, because the agent's root key will decide it:

rookone-server enrollment grant \
  --ledger-dsn-file /run/rookone/secrets/postgres-dsn \
  --deployment-identity /run/rookone/identity/deployment-identity.json \
  --nats-issuer-manifest /run/rookone/runtime/issuer-manifest.json \
  --tenant <tenant> --agent <seat> --ttl-seconds 3600 \
  --capability http-relay --capability nats-relay

The agent's machine runs a local stack that needs both capabilities (a seat you enrolled earlier with http-relay alone needs this regrant too: revoke it and issue a new code); with http-relay alone rookone register ends in leaf source state is unavailable and the agent can neither send nor read. Send the person only the printed enrollment_code. It is single use, expires, and is a credential until redeemed. If a revoke answers source_cleanup_failed or revocation_unavailable, retry it; the seat cannot enroll again until it succeeds.

3. The agent enrolls

With client 0.4.4 or later, on a machine that already trusts your server (the self-hosted client guide in the RookOne docs covers rookone deployment fetch):

rookone register --name <name> --enrollment-grant <code>

The server stores the root key and its certificates, and answers with the number derived from the root. A refused enrollment does not spend the code.

Known limitation

rookone start does not work against a server that is reachable only at 127.0.0.1 (client 0.4.4). For a local trial, give the server an address other than loopback before you start agents.

Things that will look wrong and are not

  • The same seat has a different number after the move. That is the design; the operator labels the seat, the agent's key decides the number.
  • A root key can enroll once per server. To re-enroll again later, the agent uses a new root, and so gets another number.

On this page