Skip to content

v0.16.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 09:35
· 3 commits to main since this release
d089bf6

evnx v0.16.0

0.16.0 is about three things:

  • scan finds what was hidden. Secrets inside base64, hex and percent-encoded values, seven more GitLab token types, and the files git history added or changed (scan --history, with a pre-push hook that scans what is being pushed).
  • scan reports less noise, and says why. Classic GitHub stand-ins that fail their checksum are dropped, lockfiles get only the key-format rules, the confidence shown follows the line's context, and the advice to rewrite history is kept for real key matches.
  • Getting values in and people out. add import reads many variables from one file, set --fill asks for every empty or placeholder value, --from-file reads a certificate or key, and vault revoke --all-vaults removes someone everywhere and lists what to rotate.

This is a minor release with breaking changes. A "no" at a confirmation prompt exits 4, scan JSON is schema_version 3, and CI that passed may now fail on new findings. Read Upgrade in five minutes before you update scripts or CI. The upgrade guide: https://docs.evnx.dev/cli/reference/upgrading-to-0-16-0

Highlights

  • evnx scan --history [RANGE] scans the file versions git history added or changed: origin/main..HEAD, v0.15.0.., everything reachable from HEAD, or all refs. Each finding is reported against the oldest commit that has it (path@abc1234:LINE), so a secret that was added and later removed is still found. A bare --history reads only the commits since the last clean history scan of this clone.
  • evnx scan hook install --pre-push blocks a push that adds secrets. When no remote has the commits yet, it says to amend or rebase them, not to force push. EVNX_SCAN_BYPASS="<reason>" git push pushes anyway, and the reason is logged.
  • Secrets inside encoded values. A base64, hex or percent-encoded value of 16 to 4096 characters is decoded once and checked against the format rules.
  • More GitLab tokens: feed, incoming email, agent for Kubernetes, workspace, SCIM, feature flags client and OAuth application secrets, plus glrtr- runner tokens and the routable personal access token form.
  • evnx add import <FILE|-> adds many variables at once from .env, .properties, INI, JSON, YAML (including a Kubernetes Secret, a docker-compose environment: and a GitHub Actions env:), CSV and web.config. Never prints a value.
  • evnx set --fill asks, in file order, for every name whose value is empty or a placeholder, and writes them all at once.
  • --from-file <path|-> on add custom and set reads one multi-line value: a certificate, a private key, a service-account JSON.
  • evnx vault revoke --all-vaults --user <email> removes someone from every vault you can see, and vault revoke ends with a "rotate at the source" checklist of credential names grouped by provider. Names only, never a value.
  • evnx config show prints every effective setting and where it came from. Credentials show only as set (hidden) or not set.
  • evnx cloud watch --on-change -- <COMMAND>... runs a command for each change, and cloud delete-version --latest removes the latest version safely.
  • Signed SBOM on every archive: the CycloneDX SBOM is attached to each release archive as a signed attestation. See Verify your download.

Upgrade in five minutes

  1. Update with the channel you used before, or:

    curl -fsSL https://evnx.dev/install.sh | bash

    evnx update prints the right command for your copy. In CI, pin the version with EVNX_VERSION=0.16.0.

  2. Check scripts that answer "no" to a prompt. A declined confirmation now exits 4. Accept 4, or pass --yes.

  3. Check scripts that read scan --format json. It is schema_version 3. Use the new file and line fields instead of splitting location.

  4. Run evnx scan (and evnx scan --history if you use it) once before CI does. Findings inside encoded values and new GitLab tokens can fail a CI job that passed. Mark what is not a secret with evnx:allow <rule-id> or evnx scan --update-baseline.

  5. Pre-commit users: set rev: v0.16.0. At that rev the evnx-scan-push hook scans the commits being pushed (evnx scan --history) instead of the files on disk.

Breaking changes

Exit codes

  • A "no" at a confirmation prompt exits 4. vault delete, vault leave, vault revoke, vault rekey, org seats, org remove, org delete, org leave, cloud push (the shrink and production-file questions), cloud delete-version, auth rotate-master-password, auth token revoke, auth sessions revoke, auth sessions revoke-others and auth devices disavow printed "Cancelled" and exited 0. They now exit 4 after the same message, as set, remove and platform already did. Do: accept 4 where a "no" is expected, or pass --yes.

Scan JSON and SARIF

  • Scan JSON is schema_version 3. Every finding has file and line (a number, or null) beside location. A finding in a YAML, JSON, TOML or notebook file has key_path (app.db.password). Allowed and baseline findings carry reason_code, and summary.by_reason counts them. New optional fields: encoded, context, confidence_before_context, and under --history commit, blob, commit_time and git: "history"; effective_config has rules_digest. A field is left out when it does not apply, and the run header is unchanged. SARIF lists allowed and baseline findings as suppressed results, with the reason as the justification. Do: accept schema_version 3; read file, line and key_path instead of parsing location.

What scan finds

  • More findings: decoded values and GitLab tokens. A value that is base64, hex or percent-encoded text is decoded once and checked against the format rules (known prefixes, private-key headers, connection strings). Such a finding says "found inside a base64-encoded value, decoded once" and carries encoded in JSON. Seven new GitLab token rules, plus glrtr- and the routable personal access token form. Do: run a scan before CI does, and baseline what is not a secret (evnx scan --update-baseline, or evnx:allow on the line).
  • Classic GitHub tokens that fail their checksum are no longer findings. A ghp_, gho_, ghu_ or ghr_ value with 36 characters after the prefix carries a checksum in its last six. A value whose checksum does not match was never issued by GitHub, so it is dropped like a placeholder; one that matches is reported with high confidence. ghs_ tokens and other lengths are not judged. CI that failed on made-up stand-ins in test files now passes; real tokens are unaffected.
  • The confidence shown can move one level. An Authorization or Bearer header, an HTTP client call or a connection string on the line raises it; a file under test, tests, mock, spec or fixtures lowers it (name, entropy and medium findings only). Nothing is dropped, and the exit code, the --confidence floor and the summary counts use the level before the hint. Do: a script that reads confidence and needs the old value reads confidence_before_context when it is present.
  • Lockfiles get the key-format rules only. In package-lock.json, pnpm-lock.yaml, yarn.lock, Cargo.lock, poetry.lock, go.sum and the other common lockfiles, scan no longer judges a key by its name or a value by its entropy, so a package named …-password-toggle-field is not a "Sensitive config key". Every format rule still runs. JSON files[] notes it; -v prints it.

Next steps and messages (for scripts that read them)

  • History-rewrite advice only for a real key match. Revoke, git filter-repo and force push are given only for a committed file that a format rule matched by value with high confidence. Other committed findings get "Check " with how to accept it if it is not a secret; a staged-only file gets "Unstage ". Outside a repository, scan no longer talks about commits.
  • doctor says "git would commit it" instead of "NOT in .gitignore": .env is not ignored: git would commit it (security risk), also in doctor --format json details. The answer is git's own, so a global excludes file or .git/info/exclude counts. Outside a git repository it is information, not an error, and does not fail --strict. Do: a script that matched the old details text matches the new one.

YAML

  • YAML is read with yaml-rust2 instead of the deprecated serde_yaml, and the unsafe C port unsafe-libyaml is gone from the build. The rules are unchanged (YAML 1.2: yes, no, on, off are text; anchors resolved; << not applied; every --- document read). Edge files only: a tab right after key: is a syntax error, so scan reads that file as text and add import refuses it; a key that is a list or a mapping is refused the same way; a numeric or ~ key is named as written (1.10, ~).

New in 0.16.0

Commands and flags

  • evnx add import <FILE|->: .env, .properties, INI, JSON, YAML, CSV and web.config (<appSettings>), with --from, --section, --only, --exclude, --dry-run and --json (a source-to-name mapping, never a value).
  • evnx set --fill (with --only <glob> and --dry-run): one atomic write and one .bak; Ctrl-C before the last answer writes nothing.
  • evnx add custom NAME --from-file <path|-> and evnx set NAME --from-file <path|->: up to 64 KiB, --keep-trailing-newline, --base64 for a binary file. A dry run says 118 bytes, 4 lines.
  • evnx scan --history [RANGE], --full, and evnx scan hook install --pre-push (hook uninstall and hook status take --pre-push too).
  • evnx vault revoke --all-vaults --user <email>, and --dry-run and --json on vault revoke <vault>.
  • evnx config show (--json).
  • evnx cloud watch --on-change -- <COMMAND>... and evnx cloud delete-version --latest.
  • An evnx server that refuses an old CLI (HTTP 426) is explained: the running version, the minimum, and evnx update. Exit 11.
  • The baseline records rules_digest, the hash of the rule set it was written under (still schema_version 1).

Changed

  • The evnx-scan-push pre-commit hook scans the commits being pushed (evnx scan --history).
  • scan's scanning … line lists git-ignored files apart: "git-ignored (summarised only)".
  • scan hook status reads .pre-commit-config.yaml, names the rev, and says when it is older than the running evnx.
  • validate, init and doctor point to the command that does the job: evnx set --fill for placeholders, evnx init --yes for a missing .env beside a template.
  • doctor --fix adds .env*.bak* to evnx's .gitignore block and makes backups owner-only.
  • parse --show-values implies --values.
  • Refusals that name the next command end with "evnx stopped before making changes (exit 2). Run one of the commands above."
  • The config line names [scan] settings only for scan; a template line with only a name says to write NAME=.
  • Every built-in scan rule declares keywords, so rules run only on text that can match. Findings do not change.
  • indicatif 0.18 (no more number_prefix).

Fixed

  • scan no longer reads evnx's own files in .evnx/ (rule packs, the baseline, the backups list), which reported their example keys.
  • scan no longer tells you to rewrite history for a file that is only staged.
  • validate no longer compares backups such as .env.bak-20261120 as environments, and remove --all leaves them alone.
  • add custom NAME=value writes the value when the template lists NAME with another value.
  • doctor outside a git repository no longer says "run: git add .env.example"; init adopting an env file with no template names evnx sync; spec init writes "# only in .env" only for names the template lacks.
  • migrate -o FILE, platform push conflicts, cloud run --min-version and remove name the right next command; auth token create's CI example names one password variable.
  • auth sessions list and auth devices list line up again; validate and migrate --to github end their progress lines on a terminal; run --help and cloud run --help show -- <COMMAND>... again.
  • On Windows the scanning line writes paths with /.
  • A backup passphrase in EVNX_PASSWORD is no longer removed from evnx's own environment while it is read.

Security

  • url 2.5.9 for RUSTSEC-2026-0592 (reached through reqwest, in builds with net, which cloud and migrate imply), and the yanked wasm-bindgen family refreshed. cargo audit reports no vulnerability; the accepted "unmaintained" notices (chrono, pin-utils, and humantime, which only the tests use) are listed with reasons in .cargo/audit.toml.

The full list, with the reason for each change, is in the CHANGELOG.

Install

# Linux / macOS
curl -fsSL https://evnx.dev/install.sh | bash

# Homebrew (macOS, Linux)
brew install urwithajit9/evnx/evnx

# npm
npm install -g @evnx/cli            # global
npm install --save-dev @evnx/cli    # per project, then: npx evnx
npx @evnx/cli --version             # no install

# Python
pipx install evnx

# Cargo (compile from source)
cargo install evnx --all-features

# Docker
docker run --rm -v "$PWD:/work" ghcr.io/urwithajit9/evnx:0.16.0 scan
# Windows
scoop bucket add evnx https://github.com/urwithajit9/scoop-evnx
scoop install evnx

winget install urwithajit9.evnx

cargo install evnx without --all-features builds a binary without auth, vault and cloud. Every other channel ships them.

Verify your download

Checksum

sha256sum -c evnx-*.tar.gz.sha256

Provenance. Every archive has a signed build provenance attestation that ties it to the workflow run and commit that built it:

gh attestation verify evnx-x86_64-unknown-linux-musl.tar.gz -R urwithajit9/evnx \
  --signer-workflow urwithajit9/evnx/.github/workflows/release.yml \
  --source-ref refs/tags/v0.16.0

SBOM. SBOM: evnx-0.16.0.cdx.json (CycloneDX 1.5, signed). It lists every crate in the build, with all features on, and has its own checksum and signed attestation:

sha256sum -c evnx-0.16.0.cdx.json.sha256
gh attestation verify evnx-0.16.0.cdx.json -R urwithajit9/evnx \
  --signer-workflow urwithajit9/evnx/.github/workflows/release.yml

New in 0.16.0: the SBOM is attested per archive. Each archive also carries the SBOM as a second signed attestation, so you can check which SBOM describes the archive you downloaded:

gh attestation verify <archive> --repo urwithajit9/evnx \
  --predicate-type https://cyclonedx.org/bom

Scan it with your own tools:

grype sbom:evnx-0.16.0.cdx.json                 # or: trivy sbom evnx-0.16.0.cdx.json
osv-scanner scan source -L evnx-0.16.0.cdx.json

Full Changelog: v0.15.0...v0.16.0