VeilNet

Upgrades

Upgrade the guardian to a new release: back up, run setup again before the stack starts, then bring each service up.

What an Upgrade Keeps

An upgrade keeps your configuration. It handles each part of the deployment as follows:

PartOn upgrade
The secrets directorySetup keeps it. It generates any secret that the release adds, and leaves the rest as they are.
secrets/.envSetup keeps it as it is and never rewrites it, so a new default in .env.example does not reach it.
The identity service's realmThe identity service imports it only once. Setup applies part of it again on every run, and a release that changes the rest needs a re-import. See Identity Realm Changes.
confluxSetup rebuilds the API server image on the newest conflux release of your branch's channel. Between upgrades, the API server itself moves to a newer release of that channel within the hour, unless GUARDIAN_CONFLUX_UPDATES is off.

Upgrade Checklist

0 of 7 done
  1. Pay particular attention to the identity service's notes, because its migrations are one-way.

Keep this in mind as well:

  • When a release changes what a manifest carries, upgrade conflux on your machines first, with sudo conflux update.

Identity Realm Changes

The identity service imports its realm, the file that defines its roles and sign-in policy, only once, into an empty store. After that, it ignores the file.

Setup applies part of the realm to the running identity service itself: the console's address, the account-management client, the sign-in notice, the profile's lockout, password, session and audit settings, the client that reads sign-in records, and the role for outside auditors. Any other change, such as a new role, does not reach a deployment that has already run. Running setup again does not help, because setup regenerates the realm file but does not import it.

This failure is silent. If a new role is missing, everyone who should hold it is refused access, and no log says why.

Planning an Upgrade