Repository navigation
Description
Is your feature request related to a problem? Please describe.
Part of #254. Reviewing the mise stack (#665 lockfile, #666 versions, #669 sources, #670 tasks) before it merges showed that the control, its codes and its config keys don't say clearly enough what they check. This issue lists the changes to make in the stack, plus the feedback Thomas gave on it.
Nothing here is released yet, so codes, keys and names can still change without a migration.
Describe the solution you'd like
1. Rename the control
packageManagersMustBeCompliant is too generic. Rename it to mise-en-place.
2. Codes: numbered in sequence, with a subject
- Codes stay
ISSUE-xxxxin the 10xx block, but each new code takes the next number, whatever check it belongs to. The 1001 / 1011 / 1021 / 1031 sub-blocks go away. - Each code gets a
subjectkey (lockfile,versions,sources,tasks) so the codes can be grouped and filtered by check. - Every title says it's about mise and states the defect plainly.
| Today | Subject | New meaning |
|---|---|---|
| ISSUE-1001 | lockfile | Tools are declared in a mise.toml and its lockfile is not committed |
| ISSUE-1002 | lockfile | Lockfiles are off for that project |
| ISSUE-1003 | lockfile | A tool is not locked |
| ISSUE-1004 | lockfile | A tool is locked without a checksum |
| ISSUE-1005 | lockfile | A tool is locked with an untrusted provenance |
| new | lockfile | A tool is locked without a provenance |
| ISSUE-1006 | lockfile | A required platform is not locked |
| ISSUE-1007 | lockfile | The lockfile format is older than expected |
| ISSUE-1008 | lockfile | A tool is declared in asdf's .tool-versions; migrating it to mise only is better |
| ISSUE-1009 | — | Removed, see point 3 |
| ISSUE-1011 | versions | A tool uses a forbidden version |
| new | versions | A tool uses a version that can't be read statically |
| ISSUE-1021 | sources | An untrusted tool is used (point 5) |
| ISSUE-1022 | sources | A tool comes from an untrusted registry (point 6) |
| ISSUE-1023 | sources | A tool comes from an untrusted replacement (point 7) |
| new | sources | A tool comes from an untrusted option (point 8) |
| ISSUE-1031 | tasks | Required tasks are missing (point 9) |
The final numbers are given in sequence once the list is settled.
3. An unreadable mise file is a CLI error, not a finding
A mise config or lockfile that can't be read or parsed stops the run with an error instead of raising ISSUE-1009. Plumber reads every mise file first, then fails once and lists every file that failed.
Today ISSUE-1009 also covers a symlink that leaves the repository or points at a device, and a file over 2 MiB. Those become CLI errors too.
4. .tool-versions only for ISSUE-1008
asdf's .tool-versions is read only to raise ISSUE-1008. Every other check ignores it (today the sources check judges its entries too).
5. trustedTools instead of authorizedSources
The list is matched against the tool's full mise name (aqua:jqlang/jq, github:my-org/*, core:*), so it's a list of trusted tools.
6. trustedRegistries instead of authorizedRegistries, checked on the lockfile
Rework the registry check around the url that mise.lock records for each platform, which is the URL mise install --locked downloads. This covers #668.
7. New key trustedReplacement
Check whether settings.url_replacements and/or MISE_URL_REPLACEMENTS are used, and whether each replacement value is in the trusted list.
Tested on mise 2026.11.16: the lockfile keeps the original https://github.com/... URL, and mise install --locked still sends the request to the replacement host first. So the lockfile alone doesn't show a replacement, and point 6 doesn't cover it.
8. New key trustedOptions
Check whether tools.* options are set with a URL, and whether each URL is in the trusted list.
9. Required tasks as a list
mise.tasks takes a plain list of required tasks.
Configuration in .plumber.yaml
A sketch with the names above. Defaults and the exact shape are decided during implementation.
mise:
enabled: true
lockfile:
enabled: true
requireChecksums: true
requireProvenance: ["aqua:*"]
versions:
enabled: true
forbiddenVersions: [latest, lts, ...]
sources:
enabled: true
trustedTools: ["core:*", "aqua:*", "github:my-org/*"]
trustedRegistries: ["https://github.com/*", "https://nodejs.org/*"]
trustedReplacement: []
trustedOptions: []
tasks:
enabled: true
required: [lint, test]
exemptPackages: []
exemptPaths: []Feedback from Thomas
- Check the download URL recorded in mise.lock (mise sources: the download URL locked in mise.lock is never checked #668). Today a change to
mise.lockalone can point a tool at any URL while the sources check stays green. This has to be in the current stack, otherwiseauthorizedSourcesis not a real allowlist. The lockfile is already parsed by feat(control): mise-en-place control: lockfile, versions, sources and tasks checks, local and remote (ISSUE-1001 to ISSUE-1019) #665. (Point 6 above.) - Required tasks must be run in the workflow.
mise.tasks.requiredonly checks that the tasks are declared in the mise project. Add an option that also checks the workflow actually runs them (mise run <task>). It should apply to the required tasks, not to every declared task, because repos usually declare dev-only tasks that CI never runs. - mise must be present. Add an option "mise must be present". Today a repo with no mise file is reported as not applicable, and with the option it becomes a finding.
Implementation Hints
- Codes 1001 to 1009 are consecutive today, but removing ISSUE-1009 and adding the new codes renumbers most of the list. Since every PR of the stack adds codes, each one changes, and the example repo's
issue-NNNN/directories are renamed to match. - Today ISSUE-1022 also reads
[plugins]URLs, the build repos (python.pyenv_repo,ruby.ruby_build_repo,ruby.ruby_install_repo), the mirror settings and the[env]index variables (GOPROXY,PIP_INDEX_URL,NPM_CONFIG_REGISTRY, ...). Point 6 moves the check to the lockfile URL. The[env]variables redirect backends (go, pipx, npm) whose lock entries record no per-platform URL, and plugins and build repos are git repositories mise clones (whether the lockfile records them is not checked yet). Decide whether they stay in a code or are dropped. - Related: mise lockfile: MISE_LOCKFILE=0 in the CI file turns locking off and is never checked #675 (
MISE_LOCKFILE=0in the CI file) and mise versions: a version set from the pipeline (MISE_<TOOL>_VERSION, mise use tool@latest) is never checked #676 (versions set from the pipeline).MISE_URL_REPLACEMENTSin point 7 is set the same way, in the CI file.
Why It's Valuable
The stack is about to merge. After a release, codes become durable keys on the platform and config keys become user-facing, so this is the last cheap moment to rename them, and #668 is the gap that keeps authorizedSources from being a real allowlist.
Activity
Exypte commentedon Dec 2, 2026
I'm working on this one, a PR is on the way.
Exypte commentedon Dec 2, 2026
The final code list. Each PR of the stack adds its codes in this order, so the numbers stay in sequence from #665 to #670.
mise.tomland its lockfile is not committed.tool-versionsToday's ISSUE-1009 (unreadable file) is removed. An unreadable or unparseable mise file, a symlink out of the repository or to a device, and a file over 2 MiB become a CLI error.
The sources check no longer reads
[plugins]URLs, the build repos (python.pyenv_repo,ruby.ruby_build_repo,ruby.ruby_install_repo), the mirror settings,aqua.registriesor the[env]index variables (GOPROXY,PIP_INDEX_URL,NPM_CONFIG_REGISTRY, ...). ISSUE-1014 checks the URL thatmise.lockrecords, which is whatmise install --lockeddownloads.Checking that the workflow runs the required tasks (
mise run <task>) moves to its own issue: #679.feat(mise): tasks.required is a plain list (ISSUE-1017)
Exypte commentedon Dec 2, 2026
The final code list, as implemented in the stack. It adds two codes to the list above: ISSUE-1018 and ISSUE-1019, both from the review of #665.
lockfile = false, also inherited from a parent config)requireChecksumstrustedProvenancerequireProvenancerequiredPlatformsminimumLockfileVersion.tool-versionsrequiredforbiddenVersionstrustedToolstrustedRegistriestrustedReplacementtrustedOptionsrequired(a list)requireChecksums*.local.toml) is committedChoices made during the work:
trustedProvenancedefaults to every kind mise records (slsa, github-attestations, cosign, minisign).trustedRegistriesleft out means the locked URLs aren't checked, and[]trusts none.trustedReplacementandtrustedOptionstrust nothing when absent or empty.required: trueis a top-levelmisekey. A.tool-versionsfile alone does not count as using mise.exemptPathsdoesn't stop it.mise.local.tomlis never reported.MISE_URL_REPLACEMENTSset in the CI file goes with mise lockfile: MISE_LOCKFILE=0 in the CI file turns locking off and is never checked #675. Checking that the workflow runs the required tasks is mise tasks: check that the workflow runs the required tasks (mise run <task>) #679.The example repo has one directory per code, grouped by subject, on
feature/678-by-subject. It goes tomainonce the stack merges.feat(mise): a version that can't be read statically is ISSUE-1012
feat(mise): tasks.required is a plain list (ISSUE-1017)
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]