Verifying images (signature)
The release images are signed with cosign (from 1.23.9).
This lets you check that an image really comes from OPNexus and has not been
modified since it was built. The public key is in the repository and in the
release bundle as cosign.pub:
cosign verify --key cosign.pub --insecure-ignore-tlog=true \
ghcr.io/opnexus-dev/opnexus-backend:<version>This needs cosign 3 or newer. The signatures are stored in the scheme of cosign 3. With cosign 2.x the same command fails with
no signatures found, even for a validly signed image. Check cosign version first; if it shows 2.x, update cosign and run the command again.
If it shows 3.x or newer and the message stays, the image really has no valid signature: do not use it.
opnexus update runs the same check: with cosign 2.x installed it stops with "signature invalid or missing" and changes nothing. Do not remove
cosign to get past the message: without cosign the tool skips the check, which is exactly what the check is there to prevent.
The images are available in two registries: ghcr.io/opnexus-dev (default for new installations)
and git.opnexus.dev/opnexus (Gitea, fully supported). They are built only once and copied,
digest-identical and including the signature, into both registries; the same check with
git.opnexus.dev/opnexus/opnexus-backend:<version> leads to the same digest. The check applies to the
digest, not the tag, and is the same in both registries.
The same applies to opnexus-frontend, opnexus-proxy and opnexus-updater. A
successful check prints the signature as JSON; with a foreign or missing
key the command ends with an error. --insecure-ignore-tlog=true is intended here:
OPNexus does not upload signatures to the public transparency log, so that the check also works in
air-gapped networks. The signature covers the content (digest) of the image, not
the tag.
opnexus update verifies the signatures itself before it switches anything, as soon as cosign is
installed and cosign.pub sits next to the docker-compose.yml (cosign.pub is already in the bundle,
you have to install cosign yourself). The updater container for one-click updates
ships cosign and therefore also verifies, as long as cosign.pub is in the project directory. If the check fails, the
update aborts and nothing was changed. If cosign is missing, opnexus update says so and
continues without verification.