Upgrade¶
Steps¶
- Back up, with the version that runs now:
bxp backup --config ... --out .... - Optionally, run the new binary's
bxp doctor. It says whether the database will be updated, and changes nothing. - Replace the binary (or the image) and restart the server.
The database schema¶
The database carries a schema version.
- A newer
bxp servebrings it up to date by itself when it starts, and so dorevokeandnew-intermediate, which work on it. Each update runs in a transaction: a failure leaves the database as it was. doctor, thelistcommands andbackuponly look: they never update it. So running a newer version'sbackupordoctorbefore switching leaves the database as the running server knows it.-
An older BastionXP CA refuses a database that a newer one has updated, rather than misread it:
the database is from a newer version of BastionXP CA (schema 3; this version knows up to 2): upgrade BastionXP CATo go back, restore the backup from before the upgrade.
Versions¶
BastionXP CA follows semantic versioning, MAJOR.MINOR.PATCH, from its first
release, v0.1.0, on:
| Release | Contains | Before upgrading |
|---|---|---|
Patch (0.3.1 → 0.3.2) |
Fixes only. | Nothing to read. |
Minor (0.3 → 0.4) |
New features. Before 1.0, a minor version may also change behavior, configuration keys or commands; the release notes say what, and how to adapt. From 1.0 on, nothing that worked stops working within a major version. | Read the release notes. |
| Major (from 1.0 on) | May break things. | Follow the upgrade guide. |
What stays compatible: the configuration file, the database (upgraded by
itself), the HTTP API under /v1/, and the commands and flags. Clients and
server of different versions work together within a major version.
Security fixes go into the latest release only. See SECURITY.md.