No description
  • Shell 93.1%
  • Dockerfile 6.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-14 17:12:25 +02:00
.forgejo/workflows build and push the relay3 image to the forge package registry with kaniko, and say so in the README 2026-10-14 16:04:26 +02:00
.gitignore [git] Ignore .idea 2026-08-24 23:01:46 +02:00
Dockerfile bump om3 version to 3.0.0-rc48 2026-10-14 12:21:22 +02:00
entrypoint.sh follow the users of /config/users in the running relay: create, change and delete them with om commands at each change and at the start 2026-10-14 15:07:23 +02:00
LICENSE Initial commit 2024-10-04 10:38:18 +02:00
README.md Remove the .github/ 2026-10-14 17:12:25 +02:00

om3 relay

build

An OpenSVC agent configured as a heartbeat relay, in a container.

A relay is usually deployed on a third site. A two-nodes OpenSVC cluster stretched over 2 datacenters, configured to use a 3rd site relay, avoids the split brain situation when the communication between the nodes is broken, as the relay heartbeat is still operational. A relay can serve several clusters.

Image

The image is built by the forge workflow and served by the package registry of the forge:

docker pull forge.opensvc.com/opensvc/relay3:latest
  • latest is the image of the last commit of main.
  • <version>, as 3.0.0-rc48, is the image of a tag, or of a commit of main, the version git describe says.

The om binary is the one of the ghcr.io/opensvc/om image of the release the OM_IMAGE argument of the Dockerfile names.

Configuration

The relay configures itself from /config at its first start:

  • users/<name>: the password of a user allowed to send heartbeats to the relay. The relay follows the changes of this directory while it runs: a user added, a password changed or a user removed applies within seconds, with no restart.
  • ssl/<key>: the keys of the certificate of the relay listener, as private_key and certificate_chain. Unset, the relay makes its own.
  • cluster/<keyword>: a cluster keyword of the relay agent, as listener.port.

The relay-v3 template deploys the relay as an OpenSVC service, /config installed from a sec.

Build

Clone this repository, then run the following command in the project directory:

docker buildx build -t relay3 .

Signing

The images of the forge registry are not signed: the keyless signing of Cosign rests on the OIDC identity of the CI, which Forgejo Actions does not provide.

The images previously published to ghcr.io/opensvc/relay3 by the GitHub workflow are signed with Cosign, using the keyless signing of Sigstore via GitHub Actions OIDC. To verify one:

cosign verify \
  --certificate-oidc-issuer=https://token.actions.githubusercontent.com \
  --certificate-identity-regexp='^https://github.com/opensvc/docker_osvc_relay_v3/.github/workflows/docker-publish.yml@' \
  ghcr.io/opensvc/relay3:TAG

Replace TAG with the version (e.g., 3.0.0-rc1).