Parity Sentinel by LOGIC

Documentation

How Parity Sentinel works, how an installation is put together, and how to configure one.

What Parity Sentinel is

Parity Sentinel supports the move from one version of a data-processing service to the next, while both run side by side. Each version writes its own SQL database: the baseline, written by the old version, and the candidate, written by the new one.

How an installation works

One installation serves one baseline and candidate pair. It is a set of containers from one image, run by Docker Compose on one server:

Everything the installation keeps is in its state directory, /var/lib/parity-sentinel: its SQLite database, each job’s evidence, its keys and certificates, and the instance file, instance.toml, which is the installation’s whole configuration. Back up that directory and you can restore the installation anywhere.

Ways to install

Azure Marketplace Coming soon

The Marketplace offer deploys one installation into a resource group of your Azure subscription: a virtual machine with a managed identity, a data disk for the state directory, a network with Private Endpoints to your two SQL servers, a Key Vault and a public address. The deployment form asks for the databases, the virtual machine’s size and the first administrator’s password, and writes the instance file into Key Vault; the virtual machine places it in the state directory at boot. On Azure the configuration is edited in Key Vault, so the dashboard shows it read-only.

One virtual machine with Docker Compose

The same layout on a virtual machine you create, in any cloud: Ubuntu, Docker, a data disk mounted at /var/lib/parity-sentinel, and ports 80 and 443 open for the dashboard. You write the instance file yourself and edit it in place, from the dashboard or with manage.py config apply.

Any Docker host

Sentinel needs nothing from the host but Docker with Compose, a directory for its state, and network access to both databases. To run it on a server you already have, follow the virtual machine steps there.

LOGIC provides the signed container image and the Compose file. Get in touch to get access.

First run

  1. Grant database access. Sentinel’s sign-in needs read access and VIEW DEFINITION on both databases, every write denied on the baseline, and insert, update and delete on exactly the candidate’s configuration tables. The grants script shipped with each release does this, once per database, and lists what it granted for your review.
  2. Write the instance file. At minimum: the [instance] names, both [databases], the tables and their roles, and an [access.initial_admin]. Save it as /var/lib/parity-sentinel/instance.toml, readable only by the service user (mode 0600). On Azure the deployment writes it for you. See the minimal example.
  3. Start it. docker compose up -d --wait starts every service once the database migration has run. The HTTPS proxy obtains a certificate for the public address on first start.
  4. Sign in at the public URL as the initial administrator, change the password, and create accounts for your team. Each user can create named API tokens for the API and MCP on their account page.
  5. Check for configuration problems. A missing or invalid setting does not stop Sentinel: it shows as a red banner on every page, with the setting, its line in the file and the fix, and it holds only the lanes that need that setting.
  6. Review the first scan. Automatic apply is off by default. The first configuration scan stages a plan; review it, apply it from the dashboard, and turn on automatic apply only when you trust its limits. Parity reports follow every hour.

Every setting is in the configuration reference. For help, see support.