Skip to content

v0.13.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 08:21
· 325 commits to main since this release
2218b28

evnx v0.13.0

Read this first: what changes for scripts and CI. Each item has its own
entry below with the details and how to migrate.

  1. .env expansion is top to bottom, as Compose does it. A forward
    ${VAR} is an error naming the line to move. evnx validate on 0.12.0
    already lists every affected line as expansion_order.
  2. Keys with ., -, [, ], a leading digit or non-ASCII letters are
    read
    ; outputs that cannot hold them refuse them by name.
  3. evnx scan --format json is schema_version: 2: severity (how bad)
    is separate from confidence (how sure). --severity now filters on risk;
    the old meaning is --confidence. SARIF ruleId is the stable rule id.
  4. More findings: 63 built-in rules (13 in 0.12.0), names checked inside
    YAML, JSON and TOML. A --severity high gate may start failing; a
    baseline (evnx scan --update-baseline) or allow markers adopt existing findings.
  5. Cloud commands exit 10–15 by failure class (table below), not 1 or 2.
  6. migrate --to gcp-secret-manager names secrets db-url, as
    convert does; a project migrated with 0.12 gets new secrets beside the old.
  7. Clerk and UploadThing sk_live_ keys have their own rule ids, no
    longer stripe-live-secret-key: update baselines and allow markers on them.
  8. convert --to vercel marks secrets sensitive (production and
    preview only), evnx add exits 4 when declined, and
    backup/restore --output - are refused.

New: evnx remove; scan rule files, packs from
evnx-rules (gitleaks,
betterleaks) and a Betterleaks importer; allow markers and baselines;
scan --staged and scan hook; provider and category on every rule;
repeatable --vault on cloud run and cloud pull; reasons on refused cloud
requests; cloud audit names removed members.

⚠️ Cloud commands exit 10–15 for server failures, where they exited 1 or 2 (RM-55, decision X3).
evnx auth, evnx vault, evnx org and evnx cloud now exit with a code that says what failed,
so a pipeline can tell "sign in again" from "the server is down" without reading the message:

Code Meaning
10 not signed in, or the session / EVNX_TOKEN was refused
11 forbidden (role too low, not a member, token scope), or email not verified
12 plan limit reached
13 server unreachable, or answered by something that is not evnx (proxy, firewall, captive portal)
14 conflict (someone else pushed first), or account locked
15 server error, or rate limited
  • Any script that tested for exactly 1 or 2 after a cloud command needs to accept these.
    Other failures (bad arguments, local errors, a 404, a rejected request body) keep their code.
  • evnx cloud run / evnx run still return the child's own code once it has started; 10–15 can
    only come from a failure before that.
  • A 403 now explains why when the server says (needs the <role> role, not a member, API token
    restricted to another vault); a Retry-After is shown as "Try again in N s."; an HTML error page
    from a proxy is reported as "not from evnx" instead of as a server error. All of this works
    against servers that do not send the new fields yet.

⚠️ evnx migrate --to gcp-secret-manager now creates db-url where 0.12 created DB_URL
(I-098, RM-62). convert --to gcp-secrets has always lowercased names and written _ as -;
migrate kept the .env name, so the two commands named the same variable differently. Both
(and cloud export --to gcp-secrets, which renders through convert) now take the name from one
function, so they cannot drift.

  • A project migrated with 0.12 gets new secrets beside the old ones: DB_URL stays, db-url is
    added. Point the app at the new names, then delete the old upper-case secrets
    (gcloud secrets delete DB_URL --project=my-project).
  • A_B and a_b becoming one a-b is refused by name, as in convert.

⚠️ convert --to vercel writes "type": "sensitive" for secret-looking variables (RM-65,
experimental). They were all "plain". A variable whose name or value looks secret
(DB_PASSWORD, a token, a URL with a password) now gets "target": ["production", "preview"]:
Vercel's API rejects a Sensitive variable in development, so it is not set there, and evnx says
how many on stderr (the JSON is unchanged otherwise). Other variables stay "plain" for all three
targets. migrate --to vercel adds --sensitive to vercel env add for those variables, except
when the environment is development.

  • Three more built-in rules, 63 in all (C12, RM-92): gitlab-job-token (glcbt-, medium),
    flyio-token (FlyV1 fm2_ / fm2_, critical) and azure-devops-pat (the 84-character PAT
    with the fixed AZDO signature, high), each only where the provider's own docs state the
    format. A GCP service-account key file ("private_key": "-----BEGIN PRIVATE KEY-----\n…") was
    already reported by private-key; a test now locks that in.

⚠️ CLERK_SECRET_KEY=sk_live_… and UPLOADTHING_SECRET=sk_live_… change rule id (C10,
RM-92, CV-2). Clerk and UploadThing reuse Stripe's sk_live_ prefix, so both were reported
as stripe-live-secret-key and sent you to Stripe's dashboard. Two new rules, clerk-secret-key
(Clerk, auth) and uploadthing-secret-key (UploadThing, saas), both critical, fire when the
variable (or YAML/JSON/TOML key) has Clerk's or UploadThing's name; 60 built-in rules, up
from 58
. Under any other name, or in plain text, the value stays stripe-live-secret-key.

  • Update baselines and evnx:allow stripe-live-secret-key markers on those lines to the new
    ids; the old ones no longer match, so the finding reappears until you do.
  • New optional rule field names (regexes matched against the variable/key name) for your own
    rule files and packs: the rule never fires on text with no name, and beats an unconstrained
    rule matching the same value. An invalid names expression is a load error naming the file
    and rule. evnx scan rules test checks a rule's value shape and ignores names.

Every built-in scan rule names its provider and a category (C11, RM-90). Additive: no
rule, id or existing JSON field changes.

  • rules.toml gives all 58 rules a provider and a category from a fixed list: cloud,
    source-ci, ai, payments, databases-backends, auth, messaging-email,
    observability, infra-secrets, saas, keys-certificates, generic. A test fails
    for a built-in without both.
  • Both fields are optional in your own rule files and packs. An unknown category is a
    load error naming the file, the rule and the allowed list. evnx scan rules test warns
    (never fails) for a rule missing either.
  • evnx scan rules list groups by category and shows each provider; unset ones list last
    as "uncategorised". --category <name> filters (an unknown name exits 2 with the list).
    --json adds provider and category (null when unset).

evnx scan knows 22 more providers: 58 built-in rules, up from 36 (C3, second wave).
Each prefix was checked against the provider's own documentation (or, for Atlassian, a
statement from its staff), and each rule has fixtures that must match and near misses that
must not. Across evnx-web, evnx-server and evnx-app the new rules report nothing.

  • AI billing (critical): Groq gsk_, xAI xai-, Replicate r8_, Perplexity pplx-.
  • Infrastructure and secrets (critical): HCP Terraform ….atlasv1.…, Pulumi pul-,
    Doppler dp.st./dp.pt./dp.ct./dp.sa., Supabase sbp_ and sb_secret_, age
    AGE-SECRET-KEY-1.
  • Source and CI (high): GitLab runner glrt-, deploy gldt- and trigger glptt- tokens;
    GitHub refresh tokens ghr_ join the existing GitHub Token rule.
  • SaaS (high): Stripe webhook signing secrets whsec_, Databricks dapi, Atlassian API
    tokens ATATT3…/ATCTT3…, Bitbucket app passwords ATBB (medium confidence), New Relic
    NRAK-, Grafana glsa_ and glc_, Postman PMAK-, Notion ntn_.
  • A --severity high gate now fails on these. [scan] disable takes each by name, listed in
    evnx scan --help.

⚠️ .env references now expand top to bottom, as Docker Compose does (P1,
D10). A ${VAR} reads the value assigned above it; until now evnx read each
variable's last value in the file. Measured with Docker Compose v5.7.0, which now
agrees on every case below. 0.12.0 warned about each affected line
(expansion_order); that warning is gone because the difference is.

  • B=1, A=${B}, B=2 gives A=1 (was 2).
  • A forward reference fails: A=${B} above B=1 is an error that names the
    line to move ("${B} is assigned below it, on line 2 … move that line above
    line 1"). It was 1.
  • A=1, then A=${A}3, gives 13. It was a circular-expansion error, so no
    working file depended on it. Circular and too-deep expansion can no longer
    happen: every reference reads a value already settled.
  • A forward bare $B (no braces) keeps the text $B, as any undefined bare
    reference does; it was the value from below. validate reports it as the new
    forward_reference warning. Compose reads it as empty.
  • validate's duplicate-key warning no longer advises removing an earlier
    assignment that a line in between reads.
  • Migrate: run evnx validate on each env file before upgrading; with 0.12.0
    every line that changes is already listed as expansion_order. Move each
    definition above the lines that use it. --ignore expansion_order is still
    accepted and does nothing.

⚠️ Keys may contain ., -, [, ], a leading digit and non-ASCII letters
(P1, D12). The parser now reads the names Docker Compose reads (measured, v5.7.0),
such as spring.datasource.url, my-key, 1FOO and a[0]; a file holding one
was refused outright. /, @, +, $, spaces, quotes and braces are still
refused, and the message says what a key may hold.

  • validate warns that a shell cannot export such a name (not_shell_name).
  • evnx run and evnx cloud run pass it to the process unchanged.
  • Each convert format and migrate destination that cannot hold a name refuses
    it by name, writing or sending nothing: shell, GitHub Actions, Vercel,
    Heroku, Doppler, Railway and Infisical take letters, digits and _;
    Kubernetes takes . and -; Terraform takes -; GCP and Azure take -.
    JSON, YAML, Docker Compose and AWS Secrets Manager take any of them.
    --exclude leaves a name out. Every name evnx read before still passes.
  • ${my.key} resolves (Compose itself refuses that template). A bare $my.key
    stops at the ., as in Compose, and ${my-key} is ${my} with the default
    key, as in Compose and the shell.
  • In .evnx.toml, a dotted name must be quoted: [vars."spring.datasource.url"].
    Unquoted, TOML reads nested tables, and validate now says so.
  • strict mode still requires uppercase: MY.KEY passes, my.key does not.
  • Library: ParseError::ForwardReference is new; parser::is_env_key is the
    parser's rule, and is_valid_key stays the shell rule. Document no longer has
    order_differences.

⚠️ evnx add exits 4 when you answer no (R1). Saying no to "Add these
variables to …?" (or pressing Esc there) wrote nothing and exited 0, the
same code as a write, so a script could not tell the two apart. It now exits
4, as restore, cloud pull and remove do for a declined confirmation.
Esc at an earlier question (picking an id, add custom's questions) still
exits 0. Migrate: a wrapper that treats any non-zero exit from an interactive
add as a failure should accept 4 as "cancelled".

⚠️ evnx scan: severity and confidence are now two things (C2, RM-49,
RM-50). A finding had one level, high/medium/low, which was confidence
(how sure evnx is), and --severity filtered on it. A Google Maps browser key
could not be described: its shape is certain, and it is meant to ship in a web
page. Every finding now has a severity (how bad it is if real: critical,
high, medium, low) and keeps its confidence.

  • --severity filters on severity. The new --confidence (and
    [scan] confidence) filters on certainty; both must pass.
    --severity high keeps almost exactly what it kept before, since the rules
    that were high-confidence are high- or critical-risk.
  • ⚠️ A short value under a secret-like name (API_TOKEN=abcd1234) was medium
    confidence and is now high severity, so a --severity high gate now fails
    on it. Add --confidence high for the old behaviour.
  • ⚠️ A [[scan.patterns]] rule with no severity is medium, so a
    --severity high gate no longer fails on it. Give the rule
    severity = "high" (or "critical") to keep the gate.
  • The JSON carries schema_version: 2, and each finding a rule_id and a
    severity; summary.severity counts by severity. confidence and the
    existing counts are unchanged. Migrate: JSON consumers that read
    confidence as severity should read severity.
  • ⚠️ SARIF ruleId is now the rule's stable id (aws-access-key, was
    secret/aws-access-key; stripe-live-secret-key, was
    secret/stripe-secret-key-live), and level comes from severity. GitHub
    code scanning will see existing alerts as new rules once. The terminal and
    --format github show severity.
  • The Google API key rule is now high confidence, low severity.

⚠️ evnx scan's entropy fallback is measured, and catches most random keys
(C4, RM-53). The fallback for secrets with no provider prefix reported a value of
32+ characters with entropy above 4.8. Measured over a corpus
(docs/scan-thresholds.md), that caught only 2–4% of random 32-character keys
and 40–48% of 40-character ones, since a random string's entropy is capped by
its length. It is now 4.3, applied only to values made of base64 or URL-safe
characters that are not npm sha512- integrity hashes: 95%+ of 32-character and
all 40+ character keys are reported, and no hash, SHA, checksum, UUID or source
token in the corpus is. On real repositories this lowers the count: evnx-web
went from 847 entropy findings (lockfile hashes) to 7. Values in a variable
named like a public key (PUBLIC_KEY) are not judged by entropy. Hex keys are
still never reported this way (their entropy is that of a SHA). The AWS
secret-key check uses the same 4.3 (was 4.5). Entropy is now computed per
character, not per byte, which raised it for non-ASCII text.

Added

  • evnx cloud run and evnx cloud pull take --vault more than once (RM-59, GitHub #128).
    evnx cloud run --vault acme/shared --vault acme/prod -- ./deploy.sh opens every vault with one
    master-password unlock and merges them left to right: the first vault's keys, then each later
    vault's new keys.
    • A key held by two or more of the vaults is an error (exit 2) before the command runs or a file is
      written: DATABASE_URL is in both acme/shared and acme/prod. --allow-override lets the later
      vault win instead; each overlap is named on stderr (key and winning vault, never a value).
    • --version selects a version of one vault, so it is refused with more than one --vault.
      --include/--exclude and --file/--env-name apply to the merged result; a merged pull
      writes .env unless told otherwise. One --vault, or none, behaves exactly as before.
  • Rule packs: evnx scan rules add | update | remove, and a lock file
    (C7; S2, S4, S6).
    • evnx scan rules add <name | url | path> [--format gitleaks] [--personal]
      writes .evnx/rules/<name>.toml and records its sha256 in
      .evnx/rules.lock; commit both. A name comes from the catalogue,
      evnx-rules (gitleaks, 221
      rules), and the download must match the sha256 its index lists.
      EVNX_RULES_CATALOGUE points at a mirror.
    • ⛔ A scan refuses a pack whose bytes no longer match the lock, or that is
      missing, and names update and remove. A scan never downloads
      anything. Hand-written rule files have no lock entry and are not checked.
    • update [<name>] [-y] fetches again, shows the rule counts and the ids
      added and removed, and asks before replacing. remove <name> deletes a
      pack and its lock entry, never a hand-written file.
    • --format gitleaks converts on import: ids get the pack name in front
      (gitleaks-…), Go's ASCII \w/\d/\s become explicit classes, and
      keywords, entropy, the secret group and allowlists (regexes and
      stopwords) carry over. Rules that cannot convert are listed with the
      reason, never dropped silently.
    • It also reads Betterleaks, the gitleaks fork (C13): confidence
      carries over, valueGroup is the secret group, rules marked skipReport
      (parts of a composite) are skipped and listed, and the leading
      entropy(finding["secret"]) < N clause of a CEL filter becomes the
      rule's entropy floor. The rest of a filter, and a composite's
      components, cannot be expressed; those rules are counted in the pack
      header, as lost allowlists are.
    • Downloads need the net feature (in every prebuilt binary) and are
      https only, or plain http to this machine.
  • Rule files gain keywords (the rule is tried only on text holding one, so
    hundreds of rules stay fast), secret_group (the part that is the secret:
    judged, reported and masked), and allow / allow_line (expressions that
    drop a match). evnx scan rules test summarises rules with no fixtures in
    one line.
  • evnx scan --staged and evnx scan hook (C9; S11, S12).
    • --staged scans what the next commit records, read from the git index
      with one git cat-file --batch, never from disk: a secret staged and then
      edited out on disk is still found, and an unstaged one is not. Paths limit
      it to staged files under them. Staged files are scanned whatever
      .gitignore says. Nothing staged exits 0 ("nothing staged, nothing
      scanned"); outside a repository exits 2. Findings carry "git": "staged",
      and the next steps say git restore --staged, never git filter-repo.
    • evnx scan hook install | uninstall | status adds a managed block that
      runs evnx scan --staged to the repository's pre-commit hook
      (core.hooksPath honoured). The hook's own lines are kept, a reinstall
      replaces the block, and uninstall removes only the block. A hook that
      pre-commit or prek generated is left alone, with the
      .pre-commit-config.yaml snippet to add instead. The commit is blocked
      when secrets are staged, when the scan cannot run, and ⚠️ when evnx is not
      on PATH. git config hooks.evnx-scan false turns it off;
      git commit --no-verify skips it once. No secret is printed in full.
    • .pre-commit-hooks.yaml gains evnx-scan-installed (language: system):
      the evnx on PATH, no first-run build. CI runs it under pre-commit and
      prek.
    • A folder literally named hook is now scanned as evnx scan ./hook.
  • Scan rule files you write, and evnx scan rules (C6; S3, S5). Rules in
    the same format as evnx's own load from .evnx/rules/*.toml (committed, so
    the team and CI share them), your personal ~/.config/evnx/rules/*.toml
    (or $EVNX_CONFIG_DIR/rules), and each --rules <file>, after evnx's own.
    ⛔ They only add: an id evnx or another file already uses is an error
    naming both, never an override. A scan always says when personal rules
    apply. Caps: 2 MiB and 5,000 rules per file. A broken personal folder is a
    warning; a broken project file stops the scan. [[scan.patterns]] keeps
    working.
    • evnx scan rules list [--json]: every rule, with its id, source,
      severity and confidence.
    • evnx scan rules new <id> [--personal]: a rule file to fill in.
    • evnx scan rules test [<file>]: each rule against its own positive and
      near_miss values, every failure reported; exit 1 on any.
    • A folder literally named rules is now scanned as evnx scan ./rules.
    • .evnx/rules and .evnx/baseline.json are found beside the .evnx.toml
      in force, so a scan from a subfolder uses the project's.
  • evnx commands --json gives each command subcommand_required: whether it
    needs a subcommand (evnx auth) or also runs alone (evnx scan).
  • evnx:allow markers and a baseline for evnx scan (C5, RM-54).
    • # evnx:allow <rule-id> — reason on a finding's line or the line above
      silences that rule there, in any comment style. A marker without a reason
      works and is warned about; a bare evnx:allow, or one naming another
      rule, allows nothing and says so.
    • --update-baseline writes this run's findings to .evnx/baseline.json
      (or --baseline <file>) and exits 0; from then on a matching finding is
      known. The fingerprint is BLAKE3 of the rule, the file and the variable
      or line text, so a line inserted above keeps it and a changed value is new.
      ⛔ The baseline holds no value or preview, so it is safe to commit.
    • Allowed and known findings do not count towards the exit code. They are
      in the JSON's allowed and known arrays, every finding carries a
      status (new, known, allowed) and a fingerprint, the summary
      counts them, and -v lists them. findings and summary.total remain
      exactly what fails the run.
  • evnx scan knows 23 more providers, and every rule is tested (C3,
    RM-51/52). New rules: Stripe restricted keys, Azure storage account keys
    and SAS tokens, Twilio, SendGrid, Mailgun, DigitalOcean, npm, PyPI, Docker
    Hub, Shopify, HashiCorp Vault, GitLab, Hugging Face, Heroku (2024 format),
    Sentry DSNs (low severity: they ship in client code) and auth tokens,
    Linear, Discord and Telegram bot tokens, Slack webhooks and Google OAuth
    client secrets. OpenSSH private keys are named as such, and OpenAI
    service-account and admin keys are recognised. 36 rules in all. A rule needs
    a documented fixed prefix, or a fixed length and charset ordinary values do
    not share: Postmark, Cloudflare and Datadog keys and Heroku's legacy UUID
    keys are left out on purpose (src/assets/rules.toml says why). Every rule
    has fixtures in tests/fixtures/rules/ that must match and near misses that
    must not, checked in .env and YAML; a rule without fixtures fails the
    suite. On evnx-web, evnx-server and evnx-app (9,315 files) the new rules
    report nothing.
  • PKCS#12 keystores (.p12, .pfx) are reported (C3), by their content,
    as pkcs12-keystore, critical. A folder walk used to skip them as binary.
  • evnx scan checks names in YAML, JSON and TOML (C8). A structured file
    was read as plain text, so only provider formats and the long-random-value
    fallback applied: password: <a real password> in config.yml scanned
    clean. Each string value is now checked by its key and its value, and
    reported with its line and key path (./config.yml:12 (db.password)), while
    the line rules still run, comments included. A value both paths find is one
    finding. A file that does not parse (a Helm template with {{- if }}) is read
    as text, never an error: -v says so, and the JSON files[] gives
    read_as: "text" with note: "did not parse as yaml". Parsed files report
    read_as: "structured" (additive under schema_version: 2). References
    (${VAR}) and non-strings are skipped, as in a .env, and a whole sentence
    or script is not judged by entropy: on a real repository's 633 structured
    files this added no findings except named secrets.
  • Rules as data (C2). The 13 built-in rules moved to
    src/assets/rules.toml, compiled into the binary, each with a stable id.
    [[scan.patterns]] rules take an optional id, severity and entropy
    (drop matches below that Shannon entropy). A rule that re-rates a built-in
    by name keeps its id and severity. [scan] disable accepts ids too.
  • evnx remove (alias rm): take a variable out safely (R1). Until now a
    variable could only be removed by hand, from up to four places, and a partial
    removal passed validate and spec check silently. evnx remove NAME
    removes it from the env file (--env-name, else [defaults] env_name, else
    .env) and then lists where it still is, with the flag that clears each
    place: --template, --contract (the [vars.NAME] entry in .evnx.toml,
    table or inline form) or --all (every environment file, the template and
    the contract). After --all, validate, spec check, sync --check and
    diff all agree.
    • Entries are found with evnx's own parser, so multiline values, export,
      duplicates (every one goes, each line reported), CRLF, a BOM and a missing
      final newline are handled. Every other byte stays as it was, and the
      one-line description add and init write above a variable goes with it;
      group headers and longer comment blocks stay.
    • Safe by default: the resolved file is printed with where its name came
      from; it asks first (--yes skips, and no terminal means exit 2, never a
      guess); --dry-run writes nothing; each env file is kept as .bak first
      (--no-backup needs --yes and is refused for a file git tracks). Every
      file is planned and checked before any is written, a file that changed
      while the command ran is not overwritten, and a failure part-way puts back
      the files already changed and names them.
    • A glob ('TEST_*') that matches every variable in a file needs --yes.
      An argument that is an existing file name is refused, as a shell-expanded
      glob.
    • No value is printed in any mode, including --json (needs --yes or
      --dry-run). Exit codes: 0 removed; 2 could not run, including a name that
      is not there (--ignore-missing makes that 0); 4 you answered no.
    • A run ends by saying that removal is not rotation: the value is still in
      git history, older vault versions and the .bak copy.

Changed

  • sync's "sync only adds" hint names evnx remove NAME --template instead
    of "by hand", and add's next steps mention evnx remove.
  • toml_edit is now always compiled in, not only with the cloud feature:
    remove --contract needs it. No crate is added to any build: toml already
    depends on it.
  • Scanner internals (C1, RM-45), no change in output. The detection
    engine has one entry point, core::secretscan::engine::scan_text; the
    built-in rules and heuristics moved from utils::patterns (deleted) to
    core::secretscan::rules and heuristic, leaving one Confidence type;
    file decoding moved from scan/runner.rs to scan/walk.rs. Every scan
    golden and the behaviour lock are unchanged. For anyone using evnx as a
    library: evnx::utils::patterns is gone.
  • The direct blake3 dependency is gone: the push hash is
    evnx_crypto::blob_hash, the same function vault rekey uses (Q1).

Fixed

  • evnx cloud audit says who was removed (RM-57, I-308). A revoke is logged
    as a rekey; its DETAIL now reads removed ex@acme.dev; re-wrapped for 2 members when the server resolves the member (evnx-server V0), and names the
    member's id when it does not. The reads a rekey makes to re-encrypt each
    version show as read for rekey instead of looking like someone pulling
    every version by hand (the CLI sends purpose=rekey; the server records it
    for an admin or the owner only). The WHO column grows to its longest address (up to 40
    characters, then …) instead of a fixed 26.
  • ⛔ evnx scan no longer hangs on a project with many gitignored files.
    To learn which walked files git ignores, scan wrote every path to
    git check-ignore before reading any answer. Once the ignored paths filled
    git's output pipe (about 64 KiB, a few thousand files: a .next/ build, a
    .venv, coverage output), git stopped reading and both processes waited
    forever, with only the header printed and no error. The paths are now
    written from a separate thread while the answers are read. A Next.js
    project that hung indefinitely now finishes in about 35 s.
  • ⚠️ restore --output - and backup --output - are refused (Q1). -
    means stdout in template and cloud pull; here it wrote a file named -,
    and restore then suggested evnx validate --env -, which reads stdin. Both
    now stop with exit 2 before anything is read or asked, until stdout output
    is built. A file literally named - is still ./-.
  • cloud pull checks the blob against the server's hash (Q1). The server
    sends the hash it stored at push; a blob that does not match it is refused
    as damaged ("the server's blob does not match its own hash"), before the
    password is asked for. It used to reach decryption and fail as a wrong
    password or tampering. cloud run, cloud export and cloud diff share
    the check.
  • init --from-source reads the template with the parser (Q1). It split
    lines on =, so export KEY= was a name "export KEY" and each line inside a
    multiline value was a name, showing up as phantom "missing" and "unused"
    variables.

Installation

Linux / macOS (shell script)

curl -sSL https://raw.githubusercontent.com/urwithajit9/evnx/main/scripts/install.sh | bash

Homebrew (macOS and Linux)

brew install urwithajit9/evnx/evnx

Scoop (Windows, user-local)

scoop bucket add evnx https://github.com/urwithajit9/scoop-evnx
scoop install evnx

Winget (Windows, system-wide)

winget install urwithajit9.evnx

npm / Node.js

npm install -g @evnx/cli

Python (pipx)

pipx install evnx

Cargo

cargo install evnx --all-features

cargo install compiles from source with default = [], so plain
cargo install evnx gives you a binary without the auth,
vault and cloud commands. Every other channel above ships them
already — the binaries are built with --all-features.

Checksums

SHA256 checksums are provided for each binary. Verify after download:

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

Provenance

Every archive has a signed build provenance attestation, which ties it
to the workflow run and commit that built it. Verify one with the
GitHub CLI (signed in with gh auth login):

gh attestation verify evnx-x86_64-unknown-linux-musl.tar.gz -R urwithajit9/evnx

What's Changed

  • v0.13.0 R1: evnx remove, and add exits 4 when declined by @urwithajit9 in #262
  • test(migrate): stop M11 depending on the wording of the system shell by @henriksvensson in #261
  • v0.13.0 Q1: small fixes and test portability by @urwithajit9 in #263
  • v0.13.0 C1: one entry point for the scan engine by @urwithajit9 in #264
  • fix(scan): stop git check-ignore deadlocking on many ignored files by @urwithajit9 in #265
  • v0.13.0 C2: rules as data, severity apart from confidence by @urwithajit9 in #266
  • v0.13.0 C8: scan checks names in YAML, JSON and TOML by @urwithajit9 in #267
  • v0.13.0 C3–C6: scanner rules, measured entropy, allow markers, baseline, rule files by @urwithajit9 in #268
  • v0.13.0 C9: evnx scan --staged and a pre-commit hook installer by @urwithajit9 in #269
  • v0.13.0 C7: rule packs, rules.lock, and the gitleaks importer by @urwithajit9 in #270
  • v0.13.0 P1: expand top to bottom (D10), read Compose's key names (D12) by @urwithajit9 in #271
  • v0.13.0 C3: second wave of scan rules, 36 to 58 by @urwithajit9 in #272
  • v0.13.0 extension: rule metadata, name-aware labels, new rules, GCP/Vercel fixes, multi-vault by @urwithajit9 in #273
  • v0.13.0 extension: typed cloud errors with exit codes, audit names removed members by @urwithajit9 in #274
  • chore(release): v0.13.0 by @urwithajit9 in #275
  • fix(cli): keep the rows of the cloud --help exit-code table by @urwithajit9 in #276

New Contributors

Full Changelog: v0.12.0...v0.13.0

npm / Node.js

npm install -g @evnx/cli          # global install
npx @evnx/cli --version           # zero-install usage
npm install --save-dev @evnx/cli  # project dev dependency