Configuration

Audit Status reads two configuration files: the attesterThe program on each server. It collects facts and reports them as evidence; it never decides whether the server passes. configuration on each server, and the verifierThe program in CI that sends a nonce, fetches references itself, compares, and writes the report. configuration in the repository that runs the verification. This page lists every setting of both, with its type, default and meaning. Both files are YAML (or JSON). Validation is strict: an unknown key is an error, so a typo cannot silently turn a check off.

Check a file with:

Shell
auditstatus validate --role attester --config /etc/auditstatus/config.yml
auditstatus validate --role verifier --config auditstatus.config.yml

YAML is parsed with the JSON schema: no custom tags, and values such as yes or on are strings, not booleans. Quote hex values that could be read as numbers, such as '0x81010002'. Relative paths are resolved against the configuration file's directory.

Annotated examples with every setting: examples/attester.yml and examples/auditstatus.config.yml.

Both files have JSON Schemas, generated from the same validation: attester.schema.json and verifier.schema.json. Editors with the YAML language server validate and complete a file whose first line names its schema:

YAML
# yaml-language-server: $schema=https://auditstatus.com/schema/attester.schema.json

For the verifier configuration, use https://auditstatus.com/schema/verifier.schema.json.

Attester configuration#

/etc/auditstatus/config.yml on each server. It must be owned by root (or, without capabilities, by the user running the attester) and must not be writable by group or others.

YAML
version: 2
services:
  - name: web
    root: /var/www/production/current
    user: deploy
  - name: worker
    container:
      image: ghcr.io/example/worker
tpm:
  enabled: auto

Top level#

KeyTypeDefaultMeaning
version2noneThe configuration format. Any other value is an error.
serviceslist(required, or the short form)What runs on this server. See services.
runtimesmappingSee runtimes.
distromappingSee distro.
containersmappingSee containers.
tpmmappingSee tpm.
imamappingSee ima.
confidentialmappingSee confidential.
monitormappingSee monitor.
limitsmappingSee limits.
projectRoot, exclude, processes, packagesThe short form.

services#

Each service is either a directory (root) or the containers matching a filter (container); exactly one of the two is required.

KeyTypeDefaultMeaning
namestring (letters, digits, _, ., -; up to 64)(required)The service's name. It must match a service in the verifier configuration. Names must be unique.
rootpathThe deployed directory: a git checkout of the public repository, or a release directory with .attestium-manifest.json. A symbolic link is resolved.
useruser nameInspect only processes of this user. Looked up in /etc/passwd.
uidintegerThe same, by user id. Takes precedence over user.
cwdpaththe resolved rootInspect processes whose working directory is this directory or inside it. A symbolic link (PM2's current) is resolved, as for root.
excludelist of glob patterns[]Paths (relative to root) left out of the file list entirely. Files the commit's .gitignore ignores are listed but not compared, so this is rarely needed.
ecosystemsauto, false, or a listautoWhich installed packages to look for in root: npm, pypi, rubygems, hex, composer, maven, nuget. false turns package checks off for this service.
installslist[]Package install directories to add, for example outside root. Each is {ecosystem, dir}; both are required, and dir is relative to root or absolute. dir is the directory the table below names: for pypi the site-packages directory (/opt/venvs/web/lib/python3.12/site-packages), not the virtual environment.
containermappingA container service: every running container that matches all the given filters. At least one is required.
container.namestringThe container's name.
container.idhex string (12 to 64)A prefix of the container's id.
container.imagestringThe image repository, with or without a tag (for example ghcr.io/example/worker).
container.labelkey=valueA container label.

The attester inspects every process whose working directory is inside the service's cwd (and whose user matches, when set), whatever its language. Processes in containers are left out of directory services. The same user's other processes are listed in the report but not inspected.

For each directory, installed packages are detected in root:

EcosystemDetected in
npmnode_modules
pypisite-packages of .venv, venv, env, .virtualenv, virtualenv (virtual environments with pyvenv.cfg)
rubygemsvendor/bundle/ruby/<version>, .bundle/ruby/<version>
hexdeps/, when mix.lock exists
composervendor/, when composer.lock and vendor/composer exist
maventarget/lib, target/dependency, lib, libs, build/install/*/lib, WEB-INF/lib of unpacked wars
nuget.NET publish output (*.runtimeconfig.json with *.deps.json)

runtimes#

KeyTypeDefaultMeaning
runtimes.debugPortslist of TCP ports[]Debugger and management ports that must not be listening, in addition to each runtime's default ports, which are always checked.
runtimes.node.globalDirpathfound from the first running official Node.js binaryWhere the global Node.js packages are installed.
runtimes.node.globalPackageslist of names[npm, corepack, pnpm, pm2]Global packages next to Node.js to report and verify.

distro#

KeyTypeDefaultMeaning
distro.enabledbooleantrueRecord the Debian or Ubuntu package that owns each executable and library, so the verifier can compare it with the signed archive. Needs a readable dpkg database.
distro.rootabsolute path/The host's root as the attester sees it: /proc/1/root in a container that shares the host's PID namespace.

containers#

KeyTypeDefaultMeaning
containers.dockerSocketpath/var/run/docker.sockThe Docker Engine API socket.
containers.podmanSocketpath/run/podman/podman.sockPodman's Docker-compatible API socket (systemctl enable --now podman.socket; /run/user/<uid>/podman/podman.sock for rootless Podman).
containers.crictlcommandcrictlcrictl, to identify containers of CRI runtimes (containerd, CRI-O).
containers.hashRootfsbooleantrueHash every file of each container's root filesystem. When false, only the writable layer is compared with the image.
containers.maxFilesinteger, 1 to 10,000,000500000The most files hashed per container root filesystem.

See Containers.

tpm#

KeyTypeDefaultMeaning
tpm.enabledauto, true, falseautoauto: quote when a TPMTrusted Platform Module: a chip with keys that cannot be exported and registers (PCRs) that can be extended but never set. is present. true: report a missing TPM as a failure. false: never use the TPM (and refuse enroll and activate).
tpm.tctistringthe tpm2-tools defaultThe TPM transmission interface, for example device:/dev/tpmrm0.
tpm.handlestring 0x81xxxxxx0x81010002The persistent handle of the attestation key.
tpm.banksha1, sha256, sha384, sha512sha256The PCRPlatform Configuration Register: a TPM register that can only be extended with a hash. Firmware, bootloader and kernel extend PCRs with what they load. bank to quote.
tpm.pcrslist of PCR indexes (0 to 23)[0, 1, 2, 3, 4, 5, 6, 7], plus 10 when ima.enabledThe PCRs to quote.
tpm.ekAlgorithmrsa, eccrsaThe endorsement key type used for enrollment, and the attestation key type created when there is none.

See Hardware evidence.

ima#

KeyTypeDefaultMeaning
ima.enabledbooleanfalseInclude the kernel's IMAIntegrity Measurement Architecture: the Linux kernel hashes files as they are used, logs each hash and extends PCR 10. measurement log.
ima.logpath/sys/kernel/security/ima/binary_runtime_measurementsThe binary measurement log. With capabilities it must be under /sys/kernel/security/.
ima.maxBytesinteger, 1024 to 53687091267108864 (64 MiB)The largest log the attester reads.

See Hardware evidence.

confidential#

KeyTypeDefaultMeaning
confidential.enabledauto, true, falseautoauto: on an AMD SEV-SNPAMD Secure Encrypted Virtualization with Secure Nested Paging: confidential VMs whose launch measurement the AMD chip signs. or Intel TDXIntel Trust Domain Extensions: confidential VMs whose measurement is signed through Intel's quoting enclave. guest (configfs-tsm available), add a hardware report bound to the evidence. true: report its absence as a failure. false: never.
confidential.entrypatha new entry per reportAn existing report directory under /sys/kernel/config/tsm/report/, created by root at boot. With capabilities it must be under /sys/kernel/config/tsm/.

See Hardware evidence.

monitor#

KeyTypeDefaultMeaning
monitor.enabledbooleanfalseInclude what the monitor service recorded.
monitor.logpath/var/log/auditstatus/monitor.logThe monitor's log. With capabilities it must be under /var/log/.
monitor.windowSecondsinteger, 60 to 259200086400How far back each report looks.

See Monitor.

limits#

KeyTypeDefaultMeaning
limits.maxFilesinteger, 1 to 10,000,000500000The most files reported per directory service. More fails as a truncated file list.
limits.maxChangedFilesinteger, 0 to 100,0001000The most files and directories reported as changed after a process started, per process and list.

Short form#

A server running one application can leave out services and use these keys instead. They describe one directory service named app. Using both forms in one file is an error.

KeyTypeDefaultMeaning
projectRootpath(required in the short form)The service's root.
excludelist of glob patterns[]The service's exclude.
processes.useruser nameThe service's user.
processes.uidintegerThe service's uid.
processes.cwdPrefixpathThe service's cwd.
processes.inspectorPortslist of TCP portsUsed as runtimes.debugPorts when that is not set.
packages.enabledbooleantruefalse turns off installed package checks (ecosystems: false) and the global Node.js packages. packages is also accepted with services, where it affects only the global packages.
packages.globalDirpathUsed as runtimes.node.globalDir when that is not set.
packages.globalPackageslistUsed as runtimes.node.globalPackages when that is not set.

Verifier configuration#

auditstatus.config.yml in the repository that runs auditstatus verify.

YAML
version: 2
services:
  - name: web
    repository:
      url: https://github.com/example/app.git
      branch: main
    build:
      command: npm ci && npm run build
      outputs: ['dist/**']
ssh:
  knownHosts: known_hosts
servers:
  - name: web1
    host: web1.example.com

Top level#

KeyTypeDefaultMeaning
version2noneThe configuration format. Any other value is an error.
repositorymappingThe repository for services that do not name their own; required when services is absent. See repository.
buildmappingThe build for services that do not have their own. See build.
serviceslistone service named app using repository and buildWhat each service is verified against. See services.
serverslist(required, at least one)The servers to verify. See servers.
referencesmappingWhere references come from. See references.
sshmappingSee ssh.
kubernetesmappingSee kubernetes.
policymappingSee policy.
outputmappingSee output.

repository#

KeyTypeDefaultMeaning
urlhttps://, file:// or absolute path(required)The public repository.
branchstringmasterThe audited branch. The deployed commit must be on it. Set it explicitly (auditstatus init does).
webUrlhttps:// URLthe url without .git, for github.com URLsUsed to link commits in report.md.
versionsee belowanyThe version the servers must run.

The verifier keeps a blobless clone and checks out the reported commit in a worktree. Git runs with hooks disabled, no system or global configuration, no prompts, and the ext and fd transports disabled.

version#

ValueThe servers must run
anyAny commit of branch. A commit older than policy.maxCommitAgeDays is a warning.
latestThe latest commit of branch.
latest-releaseThe commit of the latest release of the GitHub repository (not a draft or prerelease), by its tag. Needs a github.com url or webUrl.
a tag, such as v1.4.2The commit the tag points to.
a 40-character commit idThat commit.

Each run resolves the version once. A server that runs another commit is a policy.versionMismatch finding (fail by default): "The server runs 3f2a9c81d0e4, not the latest release, v2.1.0 (9b1e44c07a3d)". That commit must still be on branch. The version itself need not be (a release tagged on another branch): a server that runs it is never too old, and its build is reproduced as for a commit of branch. A version that cannot be resolved (no such tag, GitHub unreachable) makes the result inconclusive.

A version that moves (latest, latest-release) is deployed some time after it appears. policy.versionGraceSeconds (for example 3600) makes a server that still runs an earlier commit of it a warning for that long after the release was published (by GitHub's clock) or the branch's latest commit was made: "The server runs 3f2a9c81d0e4, an earlier commit than the latest release, v2.1.0 (9b1e44c07a3d), which is 12 minute(s) old: a deploy in progress". After that, or for any other commit, policy.versionMismatch applies. Deploy as soon as a release is published, and publish a release for each deploy: a server that runs a newer commit than the latest release is a mismatch too.

services#

KeyTypeDefaultMeaning
namestring(required)Matches the service of the same name in the attester configuration. Names must be unique.
repositorymappingthe top-level repositorySee repository. A service needs one unless it has image.
buildmappingthe top-level build; none for services with imageSee build.
lockfilesmapping of ecosystem to path{}A lockfile not in its default place, relative to the repository root. Keys: npm, pypi, rubygems, hex, composer, maven, nuget, cargo. For npm the file is pnpm-lock.yaml, npm-shrinkwrap.json or package-lock.json (for example web/package-lock.json), and the package.json next to it holds the pnpm patches.
goModulepath.Where go.mod is, for the dependencies built into Go binaries.
rootabsolute paththe root the server reportsWhere the service is deployed on its servers (the real path, after symbolic links). A server that reports another root fails. With IMA, project files the kernel measured are compared under this root; without it, under the root the server names, which warns.
artifactmappingA release deployed without git. See artifact.
imagemappingSettings for container services. See image.
executableslist[]Programs no other reference explains. See executables.

artifact#

KeyTypeDefaultMeaning
artifact.signermapping(required)Who must have attested the manifest. See signer.

The release manifest is always .attestium-manifest.json at the release directory's root, the file auditstatus manifest writes and the attester sends.

image#

KeyTypeDefaultMeaning
image.repositorystring or listThe image repositories the service may run, as registry/repository (ghcr.io/example/worker; nginx is docker.io/library/nginx). A container whose image has no registry digest in one of them fails. Without it (and without signer), any image the server names is accepted if the container matches it.
image.signermappingRequire the image to be attested by this workflow. See signer.
image.compareFilesbooleantrueCompare the container's files with the image.
image.allowChangeslist of glob patterns[]Paths (relative to /) the container may write.

signer#

KeyTypeDefaultMeaning
repositoryowner/name(required)The GitHub repository whose workflow signed the attestation.
workflow.github/workflows/<file>.ymlanyThe workflow file that must have signed it.
refrefs/...anyThe ref the workflow must have run on, for example refs/heads/main.

executables#

KeyTypeDefaultMeaning
pathabsolute path(required)The program's path on the server.
sha256list of hex SHA-256[]Accepted hashes.
checksums.urlhttps:// URL(required with checksums)A checksum list the project publishes (<hash> <file> or SHA256 (<file>) = <hash> lines). The program matches when the list gives its hash for its file name (checksums.name), or for that name in a directory of the list (linux-amd64/tool).
checksums.namefile namethe base name of pathThe program's name in the list, when it is installed under another name.
checksums.signature.typegpg, minisign, sigstore(required with signature)How the list is signed. Without signature, the list is trusted as far as HTTPS and its host.
checksums.signature.urlURLthe list's URL plus .sig, .minisig or .sigstore.jsonThe signature.
checksums.signature.keyringpathgpg: the keyring to check with (gpgv).
checksums.signature.publicKeybase64 keyminisign: the public key (the second line of the .pub file).
checksums.signature.identitymapping of claim to string or /regex/sigstore: certificate claims the signer must have, for example subjectAlternativeName.

build#

KeyTypeDefaultMeaning
commandstring(required)Run with /bin/sh -c in a clean checkout of the deployed commit.
outputslist of glob patterns(required, not empty)The files the build produces, compared with the server's. Patterns under node_modules are not allowed. Outputs inside another install directory (a .NET publish directory, vendor/ of Composer, a directory of jars) are compared with the files the attester hashed there, and the package check leaves them to the build.
envmapping of name to string{}Variables set for the build.
passEnvlist of names[]Variables passed on from the verifier's environment.
timeoutSecondsinteger, 60 to 216003600The build's time limit.
useraccount nameAUDITSTATUS_BUILD_USER, else noneAn unprivileged account the build runs as (Linux). The verifier must run as root or have passwordless sudo. Without one, the build runs as the verifier's user and can read its secrets and change its cache. The GitHub action creates auditstatus-build and sets AUDITSTATUS_BUILD_USER.

See Verifier.

servers#

KeyTypeDefaultMeaning
namestring(required)The server's name in the report. Names must be unique.
transportssh, kubernetes, localsshHow the verifier reaches the attester.
hosthost name, IPv4, or [IPv6](required for ssh)The server's address.
portintegerssh.portThe SSH port.
useruser namessh.userThe SSH user.
attesterConfigpath(required for local)The attester configuration to collect with, in the verifier's process.
serviceslist of service namesall servicesThe services this server runs. Each must be defined in services.
minProcessesinteger, 0 to 100,0001Fewer processes across the server's services fails.
kubernetes.nodestringThe node whose attester pod to reach. node or pod is required for kubernetes.
kubernetes.podstringA specific attester pod.
kubernetes.namespacestringkubernetes.namespaceThe attester's namespace.
kubernetes.selectorlabel selectorkubernetes.selectorSelects the attester pods.
kubernetes.daemonSetstringkubernetes.daemonSetThe attester DaemonSet; only a pod it controls, running its pod template, answers.
kubernetes.contextstringthe current contextThe kubeconfig context.
tpm.publicKeyPEM public keyThe pinned attestation key, printed by auditstatus tpm-verify. A pinned key makes a valid quote mandatory.
tpm.requiredbooleantrue when publicKey is setRequires publicKey (auditstatus tpm-verify --server <name> prints it).
tpm.expectedPcrsmapping of bank to {index: hex}PCR values the quote must show.
tpm.imabooleanfalseRequire an IMA log that replays to the quoted PCR 10 (evidence level TPM + IMA). Requires publicKey. Without it, a server that stops sending the log drops to TPM and still passes.
tpm.ekCertificatebase64The endorsement certificate tpm-verify printed, recorded for reference. It is not checked again; it only adds "enrolled against the TPM's endorsement certificate" to the TPM finding.
confidential.requiredbooleantrueFail when the server sends no confidential VM report.
confidential.typesev-snp, tdxanyThe expected technology.
confidential.measurementslist of hex[]Accepted launch measurements. Without any, a verified report warns.
confidential.mrConfigIdhexIntel TDX: the expected MRCONFIGID.
confidential.mrOwnerhexIntel TDX: the expected MROWNER.

See Hardware evidence for tpm and confidential, and Kubernetes for kubernetes.

references#

KeyTypeDefaultMeaning
nodeDistUrlURLhttps://nodejs.org/distOfficial Node.js releases.
nodeKeyringpathA GPG keyring to check the Node.js release's signed SHASUMS256.txt with.
registryUrlURLhttps://registry.npmjs.orgThe npm registry.
githubArchiveUrlURLhttps://codeload.github.comArchives of GitHub commits, for dependencies pinned to a commit.
registriesmapping{}Mirrors for other ecosystems. Keys: pypi, rubygems, hex, nuget, maven, packagist, uvSource, goproxy, crates.
npmProvenancebooleanfalseReport which repository and commit built each npm package (SigstoreA public signing service: short-lived certificates from Fulcio tied to an OIDC identity, with signatures logged in Rekor. provenance). Provenance that does not verify fails.
sigstore.tufUrlURLhttps://tuf-repo-cdn.sigstore.devSigstore's TUFThe Update Framework: signed, versioned metadata for distributing keys and files. Sigstore ships its trusted root with it. repository, for the trust root.
sigstore.trustedRootpathA Sigstore trusted root JSON file to use instead of TUF.
distro.enabledbooleantrueCompare system binaries and libraries with the signed Debian or Ubuntu archive.
distro.archiveslistthe default archives for the server's releaseArchives to use. Each has url, suites, components, keyring (all required), and snapshot (an https:// URL for superseded versions).
containerRegistriesmapping of registry to {url, tokenEnv}{}An endpoint to use for a registry, and the environment variable holding its token.
githubApiUrlURLhttps://api.github.comGitHub's API, for artifact attestations. Set it for GitHub Enterprise Server.
githubTokenEnvvariable nameGITHUB_TOKENThe variable holding a GitHub token, which raises the API rate limit.
amdKdsUrlURLhttps://kdsintf.amd.comAMD's key distribution service, for SEV-SNP chip certificates.
tpmRootslist of paths[]TPM manufacturer CA certificates (PEM) for auditstatus tpm-verify.
auditorChecksumsUrlURL containing {version}https://github.com/auditstatus/auditstatus.com/releases/download/v{version}/SHA256SUMSWhere the attester's release checksums are.
cacheDirpath.cache/auditstatusThe reference cache, relative to the configuration file.

URLs must be https://, or http:// to 127.0.0.1 or localhost. Archive URLs in distro.archives may be http://, since the archive's Release file is signed. The default archives are the Ubuntu archive (archive.ubuntu.com, or ports.ubuntu.com for other architectures) with its snapshot service, and for Debian deb.debian.org and debian-security with snapshot.debian.org. The default keyrings are /usr/share/keyrings/ubuntu-archive-keyring.gpg and /usr/share/keyrings/debian-archive-keyring.gpg, which must exist on the verifier (the GitHub action installs debian-archive-keyring when it is missing).

ssh#

KeyTypeDefaultMeaning
useruser nameauditstatusThe account on each server.
portinteger22The SSH port.
knownHostspathknown_hostsPinned host keys.
identityFilepathThe private key, when AUDITSTATUS_SSH_KEY is not set.
timeoutSecondsinteger, 5 to 3600600Time limit per server.
commandcommandsshThe SSH client.

kubernetes#

KeyTypeDefaultMeaning
kubectlcommandkubectlThe kubectl binary.
kubeconfigpathkubectl's default (KUBECONFIG)The kubeconfig file.
namespacestringauditstatusThe attester's namespace.
selectorlabel selectorapp.kubernetes.io/name=auditstatus-attesterSelects the attester pods.
daemonSetstringauditstatus-attesterThe attester DaemonSet (the Helm chart's name): only a pod it controls, running its pod template, answers for a node. See Kubernetes.
portinteger8740The port the attester pods listen on (auditstatus serve --listen, the chart's port).
timeoutSecondsinteger, 5 to 3600600Time limit per request.

policy#

Settings with the values fail or warn choose the severity of a finding. See Reports for each finding.

KeyTypeDefaultMeaning
allowUntrackedlist of glob patterns[]Files not in the commit and not ignored by it, allowed anyway. Also applies to release manifests.
codePathslist of glob patterns[]Paths that hold code: files there that the commit ignores must be explained by a build (unexplainedCode).
modifiedAfterStartfail, warnfailTracked files, build output or installed packages written after a process started, and PM2's files written after its daemon started.
metadataChangedAfterStartfail, warnfailThe same whose status alone changed (a new mode or owner, or contents restored with an earlier modification time), and their directories whose entries changed (a file added and removed again).
unofficialNodefail, warnfailA Node.js binary that differs from the official release of its version.
unverifiedAuditorfail, warnfailThe attester binary does not match a published release (or a hash in attesters), and evidence from an attester attesters does not name. When the checksums cannot be fetched, fail makes the result inconclusive.
attesterslist[]Other attester implementations whose evidence is accepted: name (the name the evidence reports; not auditstatus), and sha256 (hashes of its binaries) or checksumsUrl (a checksum list, {version} replaced by the reported version), or both. Evidence from any other attester is judged by unverifiedAuditor.
unverifiablePackagesfail, warnfailInstalled packages that cannot be verified, or no lockfile pins them.
buildOutputsfail, warnfailBuild output that differs from the reproduced build.
unexplainedCodefail, warnwarnExecutables and libraries no reference explains, and ignored files in codePaths.
containerCodefail, warnfailExecutables and libraries a container runs that are not in its image (from a volume, a bind mount or the writable layer) and no other reference explains. Applies once the image could be read; otherwise unexplainedCode does.
bytecodefail, warnwarnPython bytecode caches, which are not verified.
builtPackagesfail, warnwarnGems with native extensions compiled on the server (RubyGems only).
unpinnedPackagesfail, warnwarnPackages compared with a registry because the lockfile pins no hash.
containerChangesfail, warnfailContainer files that differ from the image, and images without a registry digest.
monitorfail, warnfailPrograms the monitor saw that no reference explains or that are gone, and monitor errors. Paths longer than the monitor keeps are a warning.
maxEvidenceAgeSecondsinteger, 10 to 86400900The oldest evidence accepted.
maxCommitAgeDaysinteger, 1 to 365030Warn when the deployed commit is older (with repository.version: any).
versionMismatchfail, warnfailA server runs another commit than repository.version names.
versionGraceSecondsinteger, 0 to 864000With repository.version latest or latest-release: for this long after the version appeared, a server that runs an earlier commit of it is a warning (a deploy in progress). See version.
retryAfterSecondsinteger, 0 to 36000Collect a server that failed or was inconclusive again after this delay, and report the second result. 0: no retry.

output#

KeyTypeDefaultMeaning
dirpathaudit-statusWhere report.json, report.md and badge.json are written. --output overrides it.
labelstringauditThe badge's label.

Edit this page on GitHub