JSON Schemas

JSON Schema 2020-12 definitions of the configuration files, the registry's files and the report. The configuration schemas are generated from the validation in lib/config.js and lib/registry.js, so they accept what auditstatus validate and auditstatus registry validate accept.

SchemaFileDescribes
Attester configurationattester.schema.json/etc/auditstatus/config.yml on each server
Verifier configurationverifier.schema.jsonauditstatus.config.yml in the repository that runs the verification
Registry fileregistry.schema.jsonregistry/<project>.yml in the public registry
Reportreport.schema.jsonreport.json, written by every verification
Example reportreport.example.jsonA report from a verification of a test deployment

Editor support

Editors with the YAML language server validate and complete a configuration file that names its schema on the first line:

/etc/auditstatus/config.yml
# yaml-language-server: $schema=https://auditstatus.com/schema/attester.schema.json
version: 2
services:
  - name: web
    root: /var/www/production/current
auditstatus.config.yml
# yaml-language-server: $schema=https://auditstatus.com/schema/verifier.schema.json
version: 2
servers:
  - name: web1
    host: web1.example.com

Some settings are checked beyond what the schemas express: service and server names must be unique, a server's services must name services the file defines, a TPM key is pinned for one server only, and paths are resolved against the file's directory. See Configuration.