ConfigVet: a review of how your app is deployed. A preview.
ConfigVet, cv, is StackVet's companion for ops and DevSecOps engineers. StackVet reads an app's code and tests the running app. ConfigVet reads the layer between them: the files that say how the app is deployed. For each setting that matters, it says whether the setting is safe, unsafe, or something it could not establish, and it never counts what it could not establish as a pass.
This is a preview. ConfigVet has four rules of its own for deployment files, reads one GitHub repository's or one Cloudflare zone's settings only when you ask it to, and writes its results as one report.json, without the report pages StackVet has.
cv check <folder> [--out <folder>] [--fail-on attention|not-assessed] [--no-tools]
cv live github <owner>/<repo> [--out <folder>] [--fail-on attention|not-assessed]
cv live cloudflare <zone> [--out <folder>] [--fail-on attention|not-assessed]Deployment files, read the way they are deployed.
cv check reads the folder's Dockerfiles, compose files, Kubernetes manifests, and Terraform plans (as JSON), with the app's package.json and Django settings. It turns each layer into the units that are deployed:
- Dockerfiles: each stage's
ENVandUSER, following the chain ofFROMthat a stage's name makes. - Compose files: each service's
image,build,environment(in both forms),env_file, anduser. - Kubernetes manifests: each workload's containers, their
envandenvFrom, andrunAsUserandrunAsNonRoot, a container's own setting outranking its pod's. - Terraform plans: ECS container definitions'
environment,secrets,environmentFiles, anduser. ConfigVet reads a plan, not the.tffiles, because a plan holds the values after variables and modules are worked out. - The app itself:
package.json, for which major version of Express the defaults are for, and a Django app's settings module, since that is where Django's settings are.
Its first rules: Express running in development mode, with stack traces in its error answers; Django's session and CSRF cookies without the Secure flag; and a container that runs as root.
A setting left out is a finding only when its default is known, and unsafe.
Most configuration linters flag a value that is present and bad. ConfigVet also says when nothing sets a setting and the default leaves it unsafe. It knows a default only from a table of defaults, each entry read from the vendor's own documentation for a named range of versions. Every setting lands in one of five outcomes:
| Outcome | What it means | What the report says |
|---|---|---|
| Set, safe | Set explicitly, to a safe value | Checked in part: one file saying so is not the running system |
| Set, unsafe | Set explicitly, to an unsafe value | A finding |
| Missing, default safe | Not set, and the default for this version is safe | Checked in part |
| Missing, default unsafe | Not set, and the default for this version is unsafe | A finding, at medium confidence, since the deployment may set it somewhere the folder doesn't hold |
| Unknown | The version is unknown, the default is not in the table, or the value comes from somewhere cv can't read | Not assessed, saying why |
Not assessed is never a pass. A value that comes from a variable, a valueFrom, an env_file, an envFrom, or an image ConfigVet can't read is unknown, and so is a version outside what the table was read for. A hardening guide's recommendation is not enough on its own: unless the default is unsafe, reporting it would pass a preference off as a weakness, and a report that cries wolf teaches its reader to ignore it.
The table holds six defaults today, each read from the vendor's page on 20 November 2026: Express's env and its error handler's stack trace (Express 4 and 5), Django's SESSION_COOKIE_SECURE and CSRF_COOKIE_SECURE (4.2 to 5.2), the official node image's NODE_ENV and USER (images 22 and 24), and Docker's default user, root.
hadolint, Checkov, and Trivy, run offline, and kept from reading the app's own settings.
cv check runs hadolint, Checkov, and Trivy over the same files, where they are installed, unless you add --no-tools. A tool that isn't installed is reported as not run, with how to install it, and never counted as a pass. ConfigVet was tried with hadolint 2.15.1, Checkov 3.4.6, and Trivy 0.74.0, each installed with Homebrew.
- Offline, measured, not assumed. Each tool was run in a sandbox that reports every connection a program tries. Run as they come, Trivy connected to check.trivy.dev and Checkov to api0.prismacloud.io. ConfigVet runs them with those switched off, and each gave the same results. Trivy uses the configuration rules built into its program, so a report names the version whose rules ran. hadolint connected nowhere.
- The app can't switch a rule off unseen. An app's
.hadolint.yaml,# hadolint ignore=comments,trivy.yaml, and.trivyignoreeach hid a rule when tried; Trivy'strivy.yamlhid every one. ConfigVet gives hadolint and Trivy its own settings files in their place, and every rule came back. Checkov reads an app's.checkov.yamlwhatever it is told, so while that file is there, Checkov's run counts as ran in part, and finding nothing is not credited. - Handed only what ConfigVet read. hadolint and Checkov are given ConfigVet's Dockerfiles, Kubernetes manifests, and Terraform plans by name, never a file it could not read, since Checkov given a plan it can't parse says nothing and exits 0. Trivy takes one target, so it is given the folder; it did not follow a link out of it. Neither Checkov nor Trivy reads compose files.
- One finding where they agree. When a tool reports a root container that ConfigVet's own rule also found, in the same file, the report shows one finding and names the tools that agree.
Each tool's rules are mapped to ASVS 5.0 one at a time, after reading the requirement. Of the 23 mapped so far, only a secret written into a Dockerfile's ARG or ENV speaks to a requirement: it is evidence against V13.3.1 and never credits it, since finding none doesn't show that a vault is used. A rule that isn't mapped is still a finding, with no requirement attached.
Checking files and reading a live account are kept apart.
cv checkreads the folder you give it. Reading a live account is never part of a check: it iscv live githuborcv live cloudflare, a command of its own, which you ask for by name.- It never writes over your files. It writes one file,
report.json, into--out, by default<folder>/cv-report, and refuses a folder that holds anything else. - Its exit codes are StackVet's, so a pipeline can stop on them: 0 when the run finished; 1 only with
--fail-on attentionand a finding; 2 when a deployment file could not be read or the folder holds none, or with--fail-on not-assessedand anything not assessed; and 3 whencvitself failed.
Reading a GitHub repository's settings, behind rules of their own. cv live github <owner>/<repo> reads one repository's settings: the rules on its default branch, whether workflows may approve pull requests, what a workflow's token may do by default, which actions may run and whether they must be pinned, each environment's reviewers and deployment branches, and secret scanning. Reading a live account means holding a credential to production, a first for this project, so the rules were written before any of it was built:
- Off until you ask for it by name, one provider at a time. Never on by default, and never part of
cv check. - The token comes from
GH_TOKENorGITHUB_TOKEN, never from an option, since options are kept in shell history. It goes tocurlon its input, never on a command line, and is never written to any file, log, or report, which show only its first characters and its length. - Read only. A classic token that can write is refused, and nothing more is read. GitHub doesn't let a fine-grained token say what it can do, so the report says, before any finding, that ConfigVet could not confirm it is read-only. Make it with read-only access to the repository's Administration and Actions, and nothing else.
- A fixed list of requests compiled into the program: every one a
GETtoapi.github.com, over HTTPS with certificate checks, a redirect followed only to that host, and at most 40 requests of 1 MB and 20 seconds each. - Settings, never data: no secret's value, no logs, and nothing from the repository's files, which
cv checkand StackVet read. - Every request is listed in the report: its method, host, path, and response status.
A live reading counts as GitHub's own account of its settings: a safe setting is checked in part, since it shows a setting's value, never the behavior the setting is meant to cause. What GitHub does not show the token is not assessed, never a pass. Where the files and the account disagree, that will be drift, a finding of its own: the files are what someone intended, and the account is what is running.
Reading a Cloudflare zone's settings, behind the same rules. cv live cloudflare <zone> reads the settings that sit between the visitor and the app: the SSL/TLS mode (the connection from Cloudflare to the app's server), the lowest TLS version accepted, TLS 1.3, Always Use HTTPS, HSTS, Automatic HTTPS Rewrites, and the cache rules, with ten requests, every one a GET to api.cloudflare.com. What differs from GitHub:
- The token comes from
CLOUDFLARE_API_TOKENalone. A Global API Key and the tokenwrangler loginkeeps can change the whole account, so either is refused before anything is sent, and the token must be active. - Read only, as far as Cloudflare lets it be told. Cloudflare shows a token its own permissions only if it may read every API token on the account, which ConfigVet doesn't ask for, so the report says, before any finding, that it could not confirm the token is read-only. Make it with Zone Read, Zone Settings Read, and Cache Rules Read, for the one zone, and nothing else.
- A setting's value, said with what it depends on. The SSL/TLS mode guards only a connection to a server behind Cloudflare, which ConfigVet can't see without the DNS records, so its finding says so; Cloudflare's own HSTS being off is not assessed, since the app may send the header itself. The cache rules are listed, never credited.
It was tried first on stackvet.dev, this site's own zone, with a read-only token: two of its findings were real (TLS 1.0 accepted, and plain HTTP not redirected), both were changed in Cloudflare, and the next reading credited both. Drift, where the files and the account disagree, comes next.
The same engine and the same rules of evidence, in a program of its own.
ConfigVet is built in StackVet's workspace, on StackVet's engine. The two share what a finding is, how much credit a piece of evidence earns, how a key is shown (its first four characters and its length, never the key), and the runner of outside tools. Every rule of evidence holds unchanged: something not assessed is never a pass and never a failure.
- One rule has one home. A check StackVet already makes stays in StackVet. StackVet already reports a Dockerfile's final stage setting
NODE_ENVtodevelopment; ConfigVet lists that value as set unsafe and leaves the finding to StackVet, naming its rule. - StackVet's own network fence doesn't change. StackVet gains no connection from ConfigVet. The live readers are in a part of the code StackVet's program doesn't include, and a test fails if it ever does.
- Two programs, installed separately.
svandcvcome from one release, with one version number, as two packages, since v0.3.0. Installing StackVet never brings a program that can reach a live account.
StackVet is written for people who are not programmers. ConfigVet is written for ops and DevSecOps engineers, in the field's own terms.
What the preview doesn't do.
- No report pages yet: the results are on the terminal and in
report.json. The pages, SARIF, the seal, and the OSCAL export come in a later part. - No drift or joins between layers yet, such as an app that trusts a proxy header with no proxy in front of it, or Cloudflare's SSL mode leaving the hop to the origin unencrypted while the app's HSTS header promises otherwise. With two live providers built, they come next.
- Not yet tried with the outside tools: kube-linter isn't run, and no Terraform plan has been tried through Checkov or Trivy yet, though Checkov is handed the plans
cvread, and Trivy the whole folder.
Until these are built, ConfigVet stays a preview, and this page says what each part really does as it lands.
Released with StackVet, as a package of its own.
cv comes from the same release as StackVet, with the same version number, and installs separately. On a Mac or Linux, Homebrew builds it on your computer:
brew install abbyshade111/stackvet/cvOn Windows, Scoop installs the signed download from the release:
scoop bucket add stackvet https://github.com/abbyshade111/scoop-stack-vet
scoop install stackvet/cvOr build it from StackVet's repository with Rust's cargo, and the program is cv, in target/release/:
cargo build --release --locked -p cv-cliInstall hadolint, Checkov, and Trivy yourself if you want ConfigVet to run them; without them, it says they did not run.
If something is wrong or confusing, tell us in a GitHub issue.