- Issues
- ISSUE-1014
CI/CD provider
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.
# 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
trustedRegistriesout 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_mirrorornode.mirror_urlare 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.
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.
# 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
trustedRegistriesout 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_mirrorornode.mirror_urlare 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.