Skip to main content

CI/CD provider

ISSUE-1014HighPackage Managers and Lockfiles

mise: a locked download URL is not a trusted registry

Control:CTRL-1001mise-en-place

📋 What is this?

A platform entry of mise.lock records a download url that matches no pattern of trustedRegistries. Checked only when trustedRegistries is set.

⚠️ Impact

That is the URL mise install --locked downloads, so a change to mise.lock alone can point a trusted tool at any host.

🔧 How to fix

Run mise lock from a trusted source so the lockfile records its URL, or add the registry to trustedRegistries once you operate or trust it.

✗ BeforeWith `trustedRegistries: ["https://releases.hashicorp.com/*"]`, this URL is reported.
# mise.lock: ❌ a trusted tool downloaded from another host
[tools.terraform.platforms.linux-x64]
url = "https://downloads.example.net/terraform_1.9.8_linux_amd64.zip"
checksum = "sha256:…"

💡 Tips

  • Leave trustedRegistries out and locked URLs are not checked; [] trusts none.
  • Only binary backends (aqua, github, gitlab, ubi, http) lock a URL: a go, npm, cargo or pip tool records none, so this code does not see its source.
  • Mirror settings such as go.download_mirror or node.mirror_url are not read.

⚙️ Configure this control

With the CLI alone: set it in your configuration file. Every field and default is in the controls index, CTRL-1001.