Skip to main content

CI/CD provider

ISSUE-1015HighPackage Managers and Lockfiles

mise: a URL replacement is not trusted

Control:CTRL-1001mise-en-place

📋 What is this?

A mise config sets [settings] url_replacements, and a replacement URL matches no pattern of trustedReplacement.

⚠️ Impact

mise sends the download to the replacement first, while mise.lock keeps the original URL, so the lockfile alone does not show where tools come from.

🔧 How to fix

Remove the replacement, or add its URL to trustedReplacement once you operate or trust the host.

✗ Before`mise.lock` still shows `releases.hashicorp.com`.
# mise.toml: ❌ downloads silently redirected
[settings.url_replacements]
"https://releases.hashicorp.com/" = "https://mirror.example.com/"

💡 Tips

  • Absent or [], trustedReplacement trusts no replacement.
  • A replacement set from the pipeline (MISE_URL_REPLACEMENTS) is not read yet.

⚙️ Configure this control

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