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.
| Schema | File | Describes |
|---|---|---|
| Attester configuration | attester.schema.json | /etc/auditstatus/config.yml on each server |
| Verifier configuration | verifier.schema.json | auditstatus.config.yml in the repository that runs the verification |
| Registry file | registry.schema.json | registry/<project>.yml in the public registry |
| Report | report.schema.json | report.json, written by every verification |
| Example report | report.example.json | A 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:
# yaml-language-server: $schema=https://auditstatus.com/schema/attester.schema.json
version: 2
services:
- name: web
root: /var/www/production/current# yaml-language-server: $schema=https://auditstatus.com/schema/verifier.schema.json
version: 2
servers:
- name: web1
host: web1.example.comSome 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.