Skip to content
CyberbladeAssay
SourceSign in

Upgrade and host migration

The deliberate, reversible upgrade sequence (migrate first, verify the guardrails) and how to move an install to a new host as a data copy.

Upgrading Assay is a deliberate, reversible sequence, and moving to a new host is a data copy, never a rebuild. The rule that governs both: migrate first, verify the guardrails, then trust the new build.

Upgrading in place

  1. Read the release notes

    A minor-to-major jump may carry a migration that needs --allow-destructive. Read what it does before running it.

  2. Pull the new image, then migrate on the new binary first

    Shell
    for s in authz safemode asset engine planner prioritize verify report; do
      FORGE_SERVICE_NAME="$s" cbctl assay migrate
    done

    A service that boots against an unmigrated schema fails its own readiness check and restarts in a loop. Migrate first, always.

  3. Roll services one at a time

    If you run more than one replica, roll them individually so a bad upgrade cannot take the whole install down at once.

  4. Preflight, then re-earn trust

    cbctl assay doctor green, then re-run the guardrail smoke test: the no-grant refusal and the kill switch. An upgrade is exactly the kind of change that should re-earn trust, not assume it.

Moving between editions

Moving from a commercial build to the Community edition removes capabilities, so the Community build checks for the two that leave state behind in the database and refuses to start rather than coming up healthy and quietly stopping:

  • Configured SSO providers. A federated login would simply stop working, which looks like a broken identity provider rather than a changed build. Delete the configured providers on the commercial build first (/v1/admin/sso/*), tell your operators to sign in locally, and confirm each of them has a local password and MFA enrolled before you switch: a federated-only account has no other way in.

Active SCIM provisioning tokens are different: they are reported as a startup warning, not a refusal. They are already dead in the Community build, which wires no API-key store at all and so refuses every API-key credential on every route. Clear the rows when convenient with cbctl assay scim token list and cbctl assay scim token revoke, which ship in every build: minting a token is a commercial capability, turning one off is not.

That is the general rule: a credential never outlives the capability that issued it, and a build that will not honour something must still be able to remove it. So cbctl assay sso provider delete ships in every build too; without it the refusal above would be a brick, because the routes that would delete a provider are themselves commercial.

The refusal names what it found and what to do about it. Nothing is deleted for you, and no account is ever disabled: the check reads, reports and stops.

Bumping the pinned platform version

The shared platform version is pinned deliberately, not bumped on autopilot. Minor versions are contract-compatible and checked on every merge; majors are planned. After a bump, check GET /v1/version’s contract_version against the version you pinned, and re-run the go-live verification before trusting the build in production. The UI kit pins to match.

Moving to a new host

Back up the database (backup and restore) and, separately, OpenBao’s own raft state; move both artifacts plus the off-host unseal shares to the new host; stand up the four externals fresh; restore the database and the vault state; unseal with the migrated shares. Then cbctl assay doctor green and the full guardrail smoke test before pointing production traffic at it.