Appendix: Run Each Step Separately
Run the Audit runs all commands of the audit with
audit-tally. This appendix runs the same commands one at a time, for one scope: one election,
one area and one contest of the tally.
Use this appendix to do these tasks:
- Build the tools and restore the copies without the audit image.
- Repeat a step that did not pass, after you correct its cause.
- Examine the files of one step.
- Look up the receipt of a voter. See Audit the Bundle.
Do the procedures in this order. Check the Cast-Vote History is optional when you do only one scope.
| Step | Procedure | Result |
|---|---|---|
| Without the Audit Image | Only if you do not use the audit image: the tools and the copies. | |
| 1 | Get the Scope and the Pins | A pinned scope.json file. |
| 2 | Export the Evidence | The evidence files and their digests. |
| 3 | Prepare the Audit Bundle | An audit bundle. |
| 4 | Audit the Bundle | An audit report. |
| 5 | Verify the Bulletin Board | A Braid result for each batch. |
| 6 | Check the Cast-Vote History | A history report. |
Use the procedures with the audit image
The procedures give the commands without the audit image. With the image, open a shell in a container that has the copies, and type the commands there:
docker run --rm -it --network none \
-v ~/audit/backups:/backups:ro -v ~/audit/output:/output "$AUDIT_IMAGE" shell
The output directory must be empty. The shell starts in /output, which is ~/audit/output.
The copies stop when you leave the shell. Change the commands as this table shows:
| In the procedure | In the shell of the audit image |
|---|---|
cd ~/audit | The shell is in /output. Write scope.json there. |
connections.json | /var/lib/ballot-audit/private/connections.json |
docker exec -it audit-hasura-db psql -U audit_reader -d hasura_copy | psql hasura_copy. Use keycloak_copy or b3_copy for the other copies. The session is read only. |
--server-url http://127.0.0.1:43322 (ImmuDB) | --server-url http://127.0.0.1:3322 |
--username "$IMMUDB_READ_ONLY_USER" and the ImmuDB password | --username ballot_audit_reader. The shell sets the password. |
--b3-blob-root <path> | --b3-blob-root /var/lib/ballot-audit/b3-blobs |
audit-tally writes the files of each scope in output/scopes/<NNN>/. To examine one step of a
run, use the command line of the step in output/audit-record.json. To repeat it, use a new,
empty output directory.
After the last procedure, do Report and Remove the Copies.