Updates and backup
Updates
An update goes from one release to the next. A release is a Git tag of the form vYYYY.MM.N, for example v2026.11.1, and the image built from it. Releases are created automatically: every new state that passes all automated checks becomes the next release; YYYY.MM are year and month, and N counts from 1 within the month. What changed is listed in the release notes. On start, Nova brings the database schema up to date itself: it creates new tables and columns and runs data migrations. There is no separate migration step. Migrations only run forwards – the way back is the backup taken before the update.
Docker Compose: deploy/autodeploy.sh performs the update, by hand or every five minutes through the systemd timer in deploy/systemd/. deploy/.env names the desired release:
DEPLOY_REF=v2026.11.1If the running state differs from it, the script proceeds like this:
- Backup.
pg_dumpof the database intobackups/in the installation directory (elsewhere:BACKUP_DIR); the newest ten are kept (BACKUP_KEEP). Only whoever runs the script may read a backup. No backup, no update. - New state. The script switches to the tag and runs the new state's
deploy/db/10-nova-app-role.shin the database container: it brings Nova's database roles up to that state, such as the login ofnova_report_rothat report SQL runs with, and changes nothing on a current installation. If it fails, the script names the command to run it by hand and carries on. It then builds the image with version, commit and build date – withWITH_SAP=1the SAP variant on top of it, which needs Docker's buildx plugin, see Requirements – and restarts Nova; the database keeps running. - Check. Within five minutes (
SMOKE_TIMEOUT, in seconds),/readyzmust report ready and/api/versionmust name the new commit. - Way back. If the check fails, the script starts the previous state with its image again and names the commands to restore the backup – the new version may already have migrated the schema, and an older version does not always start on a database a newer one has migrated. The script does not try the same release again by itself: every further attempt would back up the already migrated database, and after
BACKUP_KEEPattempts the backup from before the update would be deleted. Once the cause is fixed, delete the file.git/nova-autodeploy.failedin the installation directory or enter a newer release. If the previous state's script does not know this procedure yet, the new script stays asdeploy/autodeploy.shuntil the next update replaces it.
If the installation directory is already at the desired state but Nova does not report that commit as ready – an update that did not finish, or an image built without a commit –, the script says so on every run and changes nothing; the run ends with exit code 1. The script only goes forward: it refuses a tag older than the running one, as well as a value that is not a release tag. The installation directory is used for operation only; the script resets local changes to versioned files, deploy/.env and backups/ stay. Without DEPLOY_REF the script follows the branch in DEPLOY_BRANCH and deploys every new commit with the same steps; it fetches the release tags as well, so here too the version of a release is its tag. That is how the vendor's demo installation runs, whose branch only moves on to releases, not a customer installation.
Proxy settings of an older deploy/.env: The template deploy/.env.example sets Nova up for a TLS proxy on the same server – APP_BIND=127.0.0.1, TRUST_PROXY=1, SESSION_COOKIE_SECURE=1 –; until November 2026 it had 0.0.0.0, 0 and 0. An update does not change deploy/.env: its values stay in effect, only a missing line takes the new default. With a TLS proxy in front of Nova, set the three lines as in the template before the update. With TRUST_PROXY=1 next to APP_BIND=0.0.0.0 – or with APP_BIND=0.0.0.0 and no TRUST_PROXY line – the new version does not start, see Configuration: Nova is unavailable until the check (step 3) ends, then the script goes back to the previous state. After the correction, delete the file .git/nova-autodeploy.failed. With direct access without a proxy everything stays as it is; Nova then warns at every start that the session cookie also travels over HTTP.
Server and TLS proxy: The operator keeps the operating system, Docker and the TLS proxy up to date; an update of Nova does not touch them. Install security updates for the TLS proxy promptly and restart nginx afterwards – reloading the configuration does not necessarily replace the running program. The required version is listed under Requirements.
Kyma: first back up the database (see below), then push the image of the new release to the registry – its tag is the release tag –, enter the tag in deployment.yaml, apply the file, wait for kubectl rollout status and check the new version at /api/version. The Recreate strategy stops the old instance before the new one starts; Nova is briefly unavailable in the meantime.
Work in progress during a restart
- Jobs that were running during the restart are marked as failed by Nova once it is certain that their process has ended – about a minute after the start. The same applies to gap analyses, role mining runs and Migration Workbench loads.
- Provisioning runs interrupted by the restart are resumed by Nova on start, provided their execution plan was stored.
- Scheduled job times at most five minutes before the start that have no run yet are caught up. Older times are skipped; the job runs at its next regular time.
- If two instances briefly run side by side – for instance when Kubernetes drains a node and the new instance starts before the old one ends –, only one of them runs the scheduler, and every scheduled time starts at most once. The work of the other instance is left alone as long as its process is running.
Which version is running
The version is shown in the “About Nova IAM” dialog in the user menu, and by GET /api/version, which answers without sign-in: version is the release tag, for example v2026.11.1, commit the Git commit the image was built from, and build_date the time of the build. The image carries the same values as labels (org.opencontainers.image.version, .revision and .created). An image built without these values reports unknown.
Nova writes every start to the container log and counts it in the table app_versions – one row per version and commit with the first and the last start. This shows which versions an installation has run, and since when.
Backing up the database
Nova stores its data in the PostgreSQL database – identities, assignments, configuration, logs and job runs. Nova does not keep any data in the container itself. A backup is therefore an ordinary PostgreSQL backup of the Nova database. Example for Docker Compose; the command reads the user and database name from the database container's environment:
DC="docker compose -f deploy/docker-compose.yml --env-file deploy/.env"
# back up
$DC exec -T db sh -c 'pg_dump -U "$POSTGRES_USER" -Fc "$POSTGRES_DB"' > nova-$(date +%F).dump
# restore: stop Nova, recreate the database from the backup, start Nova
$DC stop app
$DC exec -T db sh -c 'pg_restore -U "$POSTGRES_USER" -d postgres --clean --if-exists --create --exit-on-error' < nova-2026-09-27.dump
$DC start appThe restore recreates the database, as the administrator of the database container (POSTGRES_USER). Loaded into the existing database, a backup from before an update fails on objects the new version has added, such as the views of the schema reporting. If deploy/.env was changed for the update, for example DB_USER or DB_PASSWORD, write the old values back first.
In Kyma, the same commands run in the PostgreSQL pod, for example kubectl -n nova-iam exec postgres-0 -- sh -c 'pg_dump -U "$POSTGRES_USER" -Fc "$POSTGRES_DB"' > nova.dump. A fresh backup before every update is advisable.
Configuration export
In addition, Nova offers administrators a transport file in format 3 through the interface GET /api/config/export. It carries business areas, approval workflows, entitlements, business roles, the risk rule set and the target systems only by transport alias, type and name – without connection data and without secrets. It does not contain settings, identities, assignments or logs, so it does not replace the database backup.
Another environment uploads the file as a draft (POST /api/config/imports), maps every alias to one of its own target systems, reviews every change in a dry run (POST /api/config/imports/‹id›/dry-run) and applies exactly that (…/apply). Every object it creates or changes gets its own entry in the audit log. The import does not accept files of the earlier format; export them again. Both are operated under Administration › Configuration transport, see Configuration transport.
Keeping the key safe
NOVA_ENCRYPTION_KEY is not stored in the database but in deploy/.env or in the Kubernetes secret. Nova uses this key to encrypt stored secrets, such as passwords and client secrets of target and source systems or the SMTP password. The database backup contains these values in encrypted form only.
- Without the key – or with a different one – the stored secrets cannot be decrypted; they then have to be entered again.
- Nova offers no key rotation for existing data. Do not replace the key of an existing installation.
- On start, Nova writes a fingerprint of the key to the container log (
NOVA_ENCRYPTION_KEY fingerprint, twelve characters from which the key cannot be derived). When moving an installation, comparing it with the old fingerprint shows whether the right key is set. - If the variable is missing, Nova does not fall back to a temporary key: operations that encrypt or decrypt a stored secret stop with an error message.
A backup can only be fully restored with the matching key; the key is not part of the backup.