Skip to main content

Set Up the Audit Workstation

This procedure prepares a computer for the audit. The auditor does it once for each audit. The computer needs only Docker and the audit image. The audit image contains all tools of the audit and the database servers that hold the copies.

Before you start​

  • You have a Linux or macOS computer with at least 16 GB of memory and enough disk space for the backups and for the four database copies.
  • The computer has encrypted storage.
  • Docker is installed.
  • You know the release of the election platform that ran the election. See Versions.

1. Get the audit image​

note

The shell examples use Linux or macOS syntax. The reviewed image was tested on Linux amd64 only. Confirm compatibility before using arm64 or Docker Desktop on macOS. See Versions for the implementation and test status.

Do one of these two tasks.

If the election authority gives you the image as a file:

  1. Load the image:

    docker load -i <image file>
  2. Set the name of the image that the command shows:

    export AUDIT_IMAGE=<image name>

If you build the image from the source code:

note

The build needs access to the internet. Build the image before you copy the backups to the computer. The audit itself does not need a network.

  1. Clone the source repository and go to it:

    git clone https://github.com/sequentech/step.git && cd step
  2. Check out the release tag or commit that the election authority gives you:

    git checkout <tag-or-commit>
  3. Make sure that the commit contains the audit image:

    test -f packages/ballot-audit/image/run-audit && echo found
  4. Write the commit in the audit notes:

    git rev-parse HEAD
  5. Set the name of the image. It contains the commit:

    export AUDIT_IMAGE=ballot-audit:$(git rev-parse --short HEAD)
  6. Build the image:

    docker build -f packages/ballot-audit/Dockerfile.prod -t "$AUDIT_IMAGE" packages

Then, in both cases:

  1. Write the ID of the image in the audit notes:

    docker image inspect --format '{{.Id}}' "$AUDIT_IMAGE"
  2. Ask a second person to compare the ID with the ID from the election authority, if there is one.

Expected result: docker run --rm "$AUDIT_IMAGE" help shows how to run the audit.

note

The image contains audit-tally, export-ballot-audit, export-electoral-log, prepare-ballot-audit, ballot-audit, audit-cast-history, the B3 server, the Braid verifier verify, PostgreSQL 18 and ImmuDB 1.9.6. To build the tools without Docker, see Without the Audit Image.

2. Make the audit directory​

  1. Make a private directory for the audit, its backups and its output:

    mkdir -m 700 ~/audit ~/audit/backups ~/audit/output
  2. Make a text file audit-notes.txt in ~/audit. Write in it each value that this manual tells you to record.

Expected result: you have a private audit directory with an empty audit notes file.

If there is a problem​

ProblemAction
The command does not show found.The commit is from before the audit image. Ask the election authority for a commit that contains packages/ballot-audit/image.
docker is not found, or it cannot connect to the Docker daemon.Install Docker and start it.
The build stops because it cannot download a file.Connect the computer to the internet for the build. Then disconnect it.

Next​

Prepare the Backups