One-click updates (optional)
Instead of opnexus update, an admin can under Settings › Update OPNexus
view version and release notes, update, follow progress and, if needed,
reset to the previous version. A failed update rolls back automatically.
This is deliberately off and must be enabled because it needs Docker access:
./opnexus updater enableThis writes COMPOSE_PROFILES=updater into the .env, pulls the updater image
and starts the container. Under rootless Docker it additionally detects the
socket path and stores it as DOCKER_HOST_SOCKET in the .env — a value already
there takes precedence and is never overwritten. By hand it still works with
COMPOSE_PROFILES=updater in the .env and
docker compose pull && docker compose up -d --no-build; it is switched off
with ./opnexus updater disable.
You switch on the version check (feed) in the web interface for this, see above.
Security model:
- The updater is the only container with the Docker socket, which is equivalent to root privileges on the host. That is why it is optional and small. The backend never gets the socket.
- It has no published port and is reachable only from the Compose network with a self-generated token.
- It can only "update to X.Y.Z", "roll back" and "status", no arbitrary command. The target version must be a stable, newer version with the same major version and the one that the release feed reports as the newest stable.
- Only admin requests are passed on, and each appears in the audit log (type "OPNexus system").
- Major version jumps (1.x → 2.0) deliberately cannot be triggered by click:
read the release notes, then
opnexus update 2.0.0.
Prerequisites: release images and an active release feed. An update switches the images, not the Compose file; if a version needs new Compose entries, the release notes say so.