Repository navigation
Description
Scope update (2026-11-27, @thomasboni): this issue now starts the broader "package manager and lockfile" capability, and its first step is mise (
mise.toml+mise.lock). The original request (checksums in lockfiles) is kept below and becomes one of the mise checks. It is designed as one global package manager control from day one (packageManagersMustBeCompliant, one key per package manager, one block per check); only mise is implemented now. Other package managers (npm, uv, Cargo, ...) come after, in their own issues, as new collectors behind the same control.
Why mise first
More and more teams use mise to pin the tools their CI runs (terraform, linters, scanners, language runtimes) and to define the tasks the pipeline calls. The workflow often shrinks to mise install then mise run <task>, so the pipeline's real supply chain and its real steps move out of the workflow file and into mise.toml / mise.lock, where Plumber does not look today.
What we keep hearing from teams that adopted it:
- developers write
latest(or a bare major) inmise.toml, so what gets installed is decided at lock or install time, not in review; - tools are pulled straight from a GitHub release or a URL instead of a curated registry (e.g. aqua, which ships checksums and provenance such as SLSA, cosign, GitHub attestations);
mise.lockis not always committed, or is stale, so CI resolves versions on the fly;- nothing checks that a repository declares the tasks the organization expects (lint, test, scan, ...).
They want this as a real gate that can fail the pipeline, with an allowlist for intentional exceptions.
The control (first step)
One control, packageManagersMustBeCompliant, keyed by package manager. Under each package manager, every check is a block with its own enabled and its own settings, and produces its own issue codes (listed below), so severity, scoring, dismissals and docs stay per check. Only mise is accepted for now; npm, uv, Cargo, ... later plug in as new keys with their own collector, behind the same control. Names are proposals, to align at implementation.
packageManagersMustBeCompliant:
enabled: true
packageManagers:
mise:
lockfile:
enabled: true
requireChecksums: true # the original request of this issue
# requireProvenance: [aqua] # optional, per source
# requiredPlatforms: [linux-x64, linux-arm64]
# minimumLockfileVersion: 1
versions:
enabled: true
forbiddenVersions: [latest, lts, "ref:*", "branch:*", "path:*", system, "sub-*", "prefix:*"]
# or, instead of forbiddenVersions:
# allowedVersionPattern: '^\d+\.\d+\.\d+$' # exact versions only, also rejects bare majors like "24"
sources:
enabled: true
authorizedSources: # mise backends, globs allowed
- core:*
- aqua:*
- github:my-org/*
# tasks: # mise-specific check; absent = disabled
# required: lint AND test AND (scan OR security-scan)
exemptPackages: [] # intentional exceptions, for every check of this package managerRules:
- A check whose block is absent is disabled. Only the checks written under a package manager run: leaving out
tasks(or any other block) meansenabled: falsefor it. A block that is present is enabled unless it saysenabled: false. packageManagerskeys are validated: an unknown key is a config error, a known but not yet supported one is reported as such (never a silent pass).- A sub-check block that a package manager does not support (e.g.
tasksfor npm later) is a config error. - Exempted packages are listed under "Exempted by configuration" in the report, like the other allowlist controls.
- Findings name the package manager, the manifest and the lockfile, so one report can mix ecosystems later.
- Overlays (
extends: plumber:default) merge per key, so an org can changemise.versionsalone. - Docs and report: a new category, "Package Managers and Lockfiles". Providers: GitHub and GitLab (the files live in the repository).
Planned follow-up (not in this first step): a default block next to the package manager keys, for settings applied to every package manager (e.g. lockfile.enabled: true, requireChecksums: true), each package manager key overriding it.
Lockfile: present and up to date
Generic meaning: every manifest has its lockfile committed, every declared dependency has a matching lock entry, and every locked artifact carries a checksum.
For mise:
mise.lockexists next to every committed mise config that declares tools (mise.toml->mise.lock,mise.<env>.toml->mise.<env>.lock;mise.local.*is personal and skipped; a monorepo with[monorepo] lockfile = trueuses the root lockfile).- Every tool request in
[tools]has a lock entry whosespecifierscontain that request (format version >= 1 recordsspecifiers, e.g.node = "24"binds toversion = "24.21.0"). - Every platform entry of a backend that records URLs has a
urland achecksum. Optional: requireprovenancefor some backends, and a list of platforms that must be locked. - Finding when the project sets
lockfile = falsein[settings], and for tools declared only in.tool-versions(mise never locks that file).
Versions: no forbidden pattern, or match an allowed pattern
Same idea as includesMustNotUseForbiddenVersions / containerImageMustNotUseForbiddenTags. Generic meaning: the version request written in the manifest (what people review) must be precise enough. It reads the manifest, not only the lockfile.
For mise: with a lockfile, latest is still locked to a concrete version (specifiers = ["latest"], version = "2.5.0"), but the next mise lock --bump, mise upgrade or a regenerated lockfile moves it with no change in mise.toml, so the version is never reviewed where people review.
Sources: packages come from authorized sources
Same idea as githubActionMustComeFromAuthorizedSources. Generic meaning: where each dependency is fetched from (backend, registry, URL) is on an allowlist, and settings that redirect fetching elsewhere are reported. For npm later, authorizedSources would hold registry URLs.
For mise, things the research showed we must handle:
- A shorthand like
terraform = "1.9.8"has no backend inmise.toml. mise resolves it through its registry (registry/terraform.toml->backends = ["aqua:hashicorp/terraform", "vfox:jdx/vfox-terraform"], first allowed one wins). Thebackendfield of the lock entry is the reliable source (and mise keeps the locked backend even when the registry later moves the tool). Without a lock entry, a shorthand is reported as not evaluable (or we embed a snapshot of the registry, which drifts). - An explicit prefix (
github:owner/repo,http:,ubi:,npm:,cargo:,go:,pipx:/pypi:,asdf:,vfox:, ...) is read from the tool key directly. aqua:alone is not enough: a project can point the aqua backend at another registry with[settings] aqua.registries(or the deprecatedaqua.registry_url), and rewrite downloads withurl_replacements. These settings are reported unless allowlisted.- Tool options that change where bytes come from (e.g.
url,asset_pattern,api_url) on an otherwise allowed backend are reported too.
Tasks (mise only): required tasks are declared
Reuse the expression syntax of pipelineMustIncludeComponent / workflowMustIncludeRequiredActions (required: or requiredGroups:), e.g. required: lint AND test AND (scan OR security-scan).
Tasks come from [tasks.<name>] in the config files and from file tasks in the default directories (mise-tasks/, .mise-tasks/, .mise/tasks/) or the local paths listed in task_config.includes. Remote includes (git::, oci::, zip::) cannot be read statically: the check is reported as not evaluable for those rather than guessing.
Issue codes this control produces
Codes are immutable once shipped (#458), so the numbers below are placeholders in a new 10xx block, to confirm at implementation. Wording and severities are generic so they stay valid for the next package managers; severities are proposals.
| Code | Check | Finding | Severity |
|---|---|---|---|
| ISSUE-1001 | lockfile | A manifest declares dependencies but no lockfile is committed | high |
| ISSUE-1002 | lockfile | The project disables the lockfile (mise: lockfile = false) |
high |
| ISSUE-1003 | lockfile | A declared dependency has no matching lock entry (lockfile stale or incomplete) | high |
| ISSUE-1004 | lockfile | A locked artifact has no checksum | high |
| ISSUE-1005 | lockfile | A locked artifact has no provenance where requireProvenance asks for it (opt-in) |
medium |
| ISSUE-1006 | lockfile | A platform listed in requiredPlatforms is not locked (opt-in) |
low |
| ISSUE-1007 | lockfile | The lockfile format is older than minimumLockfileVersion (opt-in) |
low |
| ISSUE-1008 | lockfile | Dependencies are declared in a file the package manager never locks (mise: .tool-versions) |
medium |
| ISSUE-1011 | versions | A version request uses a forbidden pattern (latest, lts, ref:, ...) |
high |
| ISSUE-1012 | versions | A version request does not match allowedVersionPattern |
medium |
| ISSUE-1021 | sources | A package comes from a source that is not authorized | high |
| ISSUE-1022 | sources | A setting redirects where packages are fetched from (mise: aqua.registries, aqua.registry_url, url_replacements) |
high |
| ISSUE-1023 | sources | A package option overrides its download location on an authorized source (mise: url, asset_pattern, api_url) |
medium |
| ISSUE-1031 | tasks (mise) | Required tasks are missing (one finding per unmet group of the expression) | medium |
Not evaluable (no code, no fake verdict, shown in the report): a shorthand tool with no lock entry for the sources check, values built from templates or environment variables, tasks from remote includes.
Generic data model (what makes the next package managers cheap)
One IR shape fed by one collector per package manager, and Rego rules written against the shape, not against mise:
packageManifests[]:
manager "mise"
path "mise.toml"
lockfile { path: "mise.lock", present: true, format: "4" }
settings manager settings that matter to the rules (e.g. source redirections, lockfile disabled)
tasks[] mise only
packages[]:
name "terraform"
request "1.9.8" # as written in the manifest
source "aqua:hashicorp/terraform" | null when only resolvable from the lock
exempt bool
locked { version, source, artifacts[]: { platform, url, checksum, provenance } } | null
evaluable false + reason when templates, remote includes, ... prevent a static answer
Adding npm later means writing an npm collector that fills the same fields (package.json + package-lock.json, source = resolved registry URL) and adding npm to the supported keys; the lockfile, versions and sources rules stay the same.
Feasibility: static parsing vs mise itself vs reusing mise code
Reusing mise code: not possible directly. mise is written in Rust (Cargo workspace, jdx/mise), not Go, so there is no Go module to import. Plumber is Go (rules in Rego over an IR built by Go collectors), so embedding mise would mean cgo/FFI or shipping a second binary, which is not worth it for reading two TOML files.
What mise publishes that we can reuse:
- JSON schemas:
https://mise.jdx.dev/schema/mise.json(config),mise-task.json(task files),mise-settings.json. Useful as the reference for field names and to build test fixtures; Plumber does not need to validate the whole file. - The format of
mise.lockis documented and versioned (lockfile_version0 to 4; fieldsversion,backend,specifiers,options,platforms.<os-arch>withurl,checksum,provenance, ...): https://mise.jdx.dev/dev-tools/mise-lock-reference.html - The registry is a directory of TOML files (
registry/<tool>.toml, ~1000 tools) with the orderedbackendsper short name.
What the mise CLI offers (needs mise installed and a checkout):
mise lock --check(--json): exactly "is the lockfile up to date". Offline, writes nothing, fails when a request has no locked version, when a platform entry has no URL or checksum, or when a dependency graph sidecar is missing. Each platform entry also reports its provenance (minisign,cosign,slsa,github-attestations,checksum only,none).mise install --locked/MISE_LOCKED=1/[settings] locked = true/[tool_config] locked = true: refuse to install anything not in the lockfile, with a checksum.enable_backends/disable_backendssettings: mise's own backend allowlist.paranoidmode (re-verify provenance on every install, refuse unregistered plugins),minimum_release_age.mise ls --current --json,mise tasks ls --json,mise config ls --json,mise registry --jsonfor the resolved view.
Why Plumber should still parse statically, and use the mise options as signals rather than as the engine:
- Plumber analyzes remote repositories without a clone (GitHub / GitLab API) and runs where mise is not installed. Static parsing of two TOML files works in every mode; a
misesubprocess does not. - mise's own guards are configured by the repository itself (
[settings],[tool_config]), so they are not an independent gate: whoever writeslatestcan also removeenable_backends. Plumber's value is to hold the policy outside the repo. - mise config trust does not help in CI: when
CIis set, mise treats every config as trusted. - Running mise on an unreviewed config can execute code (templates
exec(), hooks, plugins);MISE_SAFE=1exists for that, but static reading avoids the question.
So: implement a Go collector that parses the mise files into the generic packageManifests IR above, and Rego rules on top, like dockerfilesMustPinBaseImageByDigest (collector in github/github_repo_artifacts.go, IR in internal/ir, rule in policies/, entry in configuration/registry.go and control/codes.go). Two optional positive signals we can add later: the pipeline runs mise install --locked (or jdx/mise-action, which adds --locked when a mise.lock exists), and the project sets locked = true.
Implementation notes
- New Go dependency for TOML (none today), e.g.
github.com/BurntSushi/tomlorgithub.com/pelletier/go-toml/v2. - Config file names to read (from the mise docs):
mise.toml,.mise.toml,mise/config.toml,.mise/config.toml,.config/mise.toml,.config/mise/config.toml,.config/mise/mise.toml, theconf.d/*.tomlfragments,mise.<env>.toml; skip*.local.toml..tool-versionsis not locked by mise at all: report tools declared only there. [tools]values can be a string, an array of strings, or a table withversionand options; tool keys can carry options ("tool[opt=value]").- Values with templates (
{{ ... }}) or env-driven versions cannot be evaluated statically: not evaluable, never a fake pass. - Monorepos: several config roots, possibly one root lockfile.
- Provider-agnostic: the files live in the repository, so both GitHub and GitLab (today the repo-file collectors are GitHub only).
Out of scope for this first step
Implementing other package managers and their lockfiles (npm/pnpm/yarn, uv/poetry, Cargo, Go modules, ...); the control is ready for them but only accepts mise for now. The default block for settings shared by every package manager is a planned follow-up too. Also the auto-detection of every package manager used in a repository (comment of 2026-11-04 below). They follow once the mise shape is validated.
Original request (@JulesClaussen, 2026-06-15)
Describe the solution you'd like
I would like a check that detects lockfiles that misses checksum for some packages.
I have mise in mind, but I assume other package managers have this version checksum pinning in lockfiles, so this should be generic
Configuration in .plumber.yaml
controls:
packageManagerLockfileMissingChecksum:
enabled: true
packageManagers:
- mise
- ...
excludes:
- specific-package-allow-listedWhy It's Valuable
That forces to resolve to the same package, and strongly reduces the 3rd party attacks where attackers could overwrite a non-immutable release.
Activity
Joseph94m commentedon Jun 15, 2026
Hi, Thanks for the Issue. We'll have a look asap.
thomasboni commentedon Jun 15, 2026
Hi @JulesClaussen, this issue makes a lot of sense.
Our current focus of control is on these 2 scopes:
So we don't cover now the applicative dependencies, it's outside our current scope for now
But your point is a real pain, and I don't know any generic solution to check any lockfile (npm/yarn and other do it more or less, but each scoped to their own technology). It could be a first step to expand our coverage.
Let me think about it, I like the idea.
JulesClaussen commentedon Jun 16, 2026
Hello @thomasboni,
Thanks for quick feedback!
The rationale for mise specifically is that it's a bit more than a simple package manager. It's extremely useful to manage dependencies, and their versions for tools and CLI. We currently use it to install the tools that run in our CI, like terraform, terragrunt, prek, tflint, trivy etc.). So in this manner, it's a bit different than pip, npm, yarn etc.
To reduce third party attack risk, we want to allow only tools with checksums / slsa verification, and currently have a bash linter to validate this.
Thanks!
thomasboni commentedon Nov 4, 2026
@Exypte this new control is moving the product in the right direction: zero-trust in the repo, including the application dependencies.
I see two kind of verification:
For the point 1: Plumber should be able to identify automatically all package managers used in the repo. So users don't have to write explicitly all the lock files expected in the conf.
@yodamad asked for the exact same feature today
[-][FEAT] Detect missing checksums in package manager lockfiles[/-][+][FEAT] Package manager and lockfile checks, step 1: mise (mise.toml + mise.lock)[/+]thomasboni commentedon Nov 27, 2026
Refocused this issue as the first step of package manager and lockfile checking: mise (
mise.toml+mise.lock). The description now lists four checks (lockfile present and up to date, including the missing checksums originally asked here; forbidden or allowed version patterns; required tasks; authorized backends and registries) and the feasibility notes. The original request is kept verbatim at the bottom of the description, and the title was updated to match.Generated by Claude Code
Exypte commentedon Nov 30, 2026
Starting on this. Here is what I'm doing for the first step, and where it differs from the description above.
Scope of the first PR: the control frame, a mise collector and the
lockfilecheck (ISSUE-1001 to 1008).versions,sourcesandtasksfollow in separate PRs, in that order. Each PR adds its block toplumber:defaultwhen it lands. The default ends up withmise.lockfile(withrequireChecksums: true) andmise.versions, whilesourcesandtasksstay off.Changes from the description:
packageManifestsIR. Each package manager gets its own model, its own Rego rules and its own issue codes. mise owns the 10xx block, and npm or the next one will get its own block under the samepackageManagersMustBeCompliantcontrol. The category "Package Managers and Lockfiles" is shared.packageManagersonly acceptsmise. Any other key is a config error.--project, or GitLab without a local repo) reports the control as not evaluated, never as passed. Remote reading comes right after the local version: this step is about reading the mise files correctly, not about optimizing remote fetching..git,node_modules,vendorand unrelated hidden directories are skipped, and so are*.local.tomlfiles). Each config pairs with the lockfile next to it, or with the root lockfile when the root config sets[monorepo] lockfile = true.lockfile_version0, and later a shorthand tool with no lock entry in the sources check (ISSUE-1021). The message says why, andexemptPackages(tool keys, globs allowed) handles intentional cases.mise.lockformats 1 to 4 are supported. A repository with no mise files is not applicable.feat(control): mise lockfile check (packageManagersMustBeCompliant, I…
feat(mise): tasks check (mise-en-place, ISSUE-1031)
feat(mise): tasks check (mise-en-place, ISSUE-1031)
feat(mise): tasks check (mise-en-place, ISSUE-1031)
feat(mise): versions check (mise-en-place, ISSUE-1011)
feat(mise): tasks check (mise-en-place, ISSUE-1031)
feat(mise): read the mise files of a remote repository (#254)
feat(mise): read the mise files of a remote repository (#254)
feat(control): mise-en-place control: lockfile, versions, sources and…
feat(control): mise-en-place control: lockfile, versions, sources and…
chore(release): 0.7.27 [skip ci]
fix(control): ship mise-en-place disabled in the default config (#685)
chore(release): 0.7.28 [skip ci]