Finlay.worksBareBones Validation manual

This page is a first installation. To move an existing installation to a new version, use the upgrade procedure in the Operate section.

What is in the package

bbv-linux-compose-<version>/
  docker-compose.yml
  .env.example
  configure-database.sh
  uninstall.sh
  RUNBOOK.md
  images/barebonesvalidation-host-<version>.tar
  kit/
  THIRD_PARTY_NOTICES.md
  licenses/
  artifact-manifest.json
  SHA256SUMS

artifact-manifest.json records the package version, the source commit, the image ID and the file checksums. kit/ holds the recipe kit for running a validation; start with kit/README.md. THIRD_PARTY_NOTICES.md names the third-party components the program is built with, and licenses/ holds their licence texts and a list of where the source code of the image's operating-system packages is published.

Before you start on a host that had BareBones Validation before

Every package uses the same Compose project name. On a host where an earlier installation was removed with a plain ./uninstall.sh, the database, evidence and key volumes are still there, and a new installation attaches to them without saying so.

  • To keep that data, stop here and follow the upgrade procedure.
  • To start empty, remove the old data first:
./uninstall.sh --remove-data --confirm BareBonesValidation

1. Extract, check and load

Extract the package into a directory that will stay, then enter it.

cd /opt/barebonesvalidation
sha256sum -c SHA256SUMS
docker load -i images/barebonesvalidation-host-<version>.tar
umask 077
cp .env.example .env
mkdir -p https

sha256sum -c must report OK for every file. Do not continue if any line reports FAILED.

2. Put the certificate in place

Copy your PFX certificate to https/bbv.pfx.

3. Edit .env

Open .env and set these values. Put single quotes around a value that contains $ or a space.

Setting Set it to
BBV_PUBLIC_BASE_URL The HTTPS address people will use, for example https://validation.example.com:8443.
BBV_WEB_HTTPS_PORT The HTTPS port. The default is 8443.
BBV_HTTPS_CERTIFICATE_PASSWORD The password of https/bbv.pfx.
BBV_HSTS_MAX_AGE_DAYS How many days browsers are told to use HTTPS only for your host name. The default is 180. Read HTTPS only below before the first sign-in.
BBV_LOCAL_REVIEWER_EMAIL, BBV_LOCAL_REVIEWER_DISPLAY_NAME, BBV_LOCAL_REVIEWER_PASSWORD The first administrator's email address, name and password. The name is printed on this person's approvals: enter the person's own name. Left as Reviewer, no printed name is set, and an administrator sets it later under Administration › Accounts.
BBV_LOCAL_BROWSER_PROOF_OPERATOR_PASSWORD Leave empty. A value here creates an optional second account.

If you create the second account, give it a different email address.

HTTPS only

The installation answers over HTTPS only.

  • No plain HTTP port is opened. If you put your own proxy in front, have it speak HTTPS to BBV_WEB_HTTPS_PORT.
  • Sign-in cookies are sent over HTTPS only.
  • Browsers are told to use HTTPS only for your host name for BBV_HSTS_MAX_AGE_DAYS days. This is called HSTS.

Decide the HSTS setting before anyone signs in. A browser that has seen it keeps it for that many days:

  • It covers the whole host name. Another application on the same name that uses plain HTTP stops opening in those browsers.
  • If the browser does not trust your certificate, its warning can no longer be clicked through.
  • Lowering the number later takes effect only as browsers visit again.

Set BBV_HSTS_MAX_AGE_DAYS=0 to turn HSTS off.

With the bundled database

Keep COMPOSE_PROFILES=bundled. Set BBV_POSTGRES_PASSWORD. Set BBV_DATABASE_CONNECTION_STRING to:

Host=db;Port=5432;Database=bbv;Username=bbv;Password="<database password>"

Use the database name and user name that are in .env. Inside the quoted password, write a double quote as two double quotes.

With your own PostgreSQL server

Set COMPOSE_PROFILES= to empty. Set BBV_DATABASE_CONNECTION_STRING with your server's host, port, database, login and SSL settings. The bundled database settings are not used.

4. Start it

./configure-database.sh
docker compose ps

On RHEL 9 or Rocky Linux 9, make Python 3.11 the first python3 for this command:

mkdir -p ~/bin && ln -sf /usr/bin/python3.11 ~/bin/python3
PATH=~/bin:$PATH ./configure-database.sh

The script starts the database, lets the program create its tables, and waits until the program answers. You do not run a separate database migration. docker compose ps shows the services as healthy.

5. Check the build

Open <your address>/healthz in a browser. Compare it with artifact-manifest.json:

/healthz shows It must be
sourceCommit the source commit in the manifest
deploymentId the package version
sourceRef package/<version>
buildIdentityProven true

What the installation starts with

The program creates the first administrator's account and two starting validation projects, BareBones Validation self-validation and BareBones Ticketing validation, with the protocol templates Finlay.works registered for them. They are Finlay.works' own products, not yours. It adds no test results, evidence or packages.

Restarting keeps existing accounts and their passwords. Changing a password in .env afterwards does not change an existing account.

Where to go next