Skip to content

build(renovate): let self-hosted Renovate refresh mise.lock #6402

Closed as not planned

Description

@dan-petty

Problem

The devtools image (dan-petty/devtools#1) pins the tools that Debian sid lacks in mise.toml and mise.lock. Renovate's built-in mise manager writes mise.lock again only when it can run mise. The self-hosted Renovate runs no command today (#6022 set allowedCommands to empty). So it bumps mise.toml with a stale mise.lock, and mise install --locked then fails in the devtools CI. The self-hosted Renovate must also find the repository dan-petty/devtools.

Change

Owner decision of 2026-11-19: the self-hosted Renovate may run mise (allowedUnsafeExecutions: ["mise"]) to refresh mise.lock.

  • Add "allowedUnsafeExecutions": ["mise"] to config.json in k8s/devops/renovate/configmap.yaml. Confirm the exact option name and value in the docs of the Renovate release that the CronJob runs.
  • Record the reason in the ConfigMap comment and in ADR 0027 section 4: the exception covers one binary, mise, and only to write mise.lock.
  • Check that binarySource: install (configmap.yaml:55) supplies mise through containerbase.
  • The NetworkPolicy already allows public 443 egress (networkpolicy.yaml:46-58), so it does not change. autodiscover (configmap.yaml:49) and requireConfig: required pick up dan-petty/devtools when it has a renovate.json.
  • Person step: install the App dan-petty-renovate on dan-petty/devtools.
  • The change goes live through git and Argo CD, never through kubectl patch. The setting is additive, so the live ConfigMap needs no earlier step.

Renovate. Global self-hosted config only. No repository rule changes.

Risk. Low to medium. Renovate then runs mise in its pod, which is an unsafe execution by Renovate's own terms. The owner approved it for mise only. Without it, devtools needs another way to refresh its lock.

Proof

  • The ConfigMap JSON passes renovate-config-validator.
  • After the Argo CD sync, the Renovate job log shows dan-petty/devtools with the mise manager, and /report/renovate-report.json has no 'unsafe execution' warning.
  • The first mise update PR in dan-petty/devtools changes mise.toml and mise.lock together.

Depends on: none

Alternatives check of 2026-11-19: in-use.
The repository already uses this tool.
Tool: renovatebot/renovate (https://github.com/renovatebot/renovate), AGPL-3.0, last activity 2026-11-19, maintained.
Reason: Searches found Renovate, whose built-in mise manager plus the allowedUnsafeExecutions option and autodiscover cover the whole need; the issue already names the self-hosted Renovate, so only the config edit remains.

Covers:

  • Built-in mise manager rewrites mise.toml and mise.lock together
  • allowedUnsafeExecutions lets the self-hosted instance run mise
  • autodiscover with requireConfig: required finds dan-petty/devtools
  • binarySource: install supplies mise through containerbase

Lacks:

  • Needs an explicit unsafe-execution opt-in for mise
  • Needs the dan-petty-renovate App installed on dan-petty/devtools
  • Cannot refresh the lock without running the mise binary

Proposed design

Problem statement

The self-hosted Renovate updates mise.toml without mise.lock because it cannot run mise. The devtools CI then fails with mise install --locked. The global Renovate config must permit the mise manager to run mise, and the repository must record why.

Acceptance criteria

Requirement: Mise unsafe execution allowed

The self-hosted Renovate global config SHALL set allowedUnsafeExecutions to ["mise"] and keep binarySource at install so the mise manager can write mise.lock.

Scenario: Pinned Renovate validates the config

  • WHEN the Renovate image in k8s/devops/renovate/cronjob.yaml runs renovate-config-validator on the config.json in k8s/devops/renovate/configmap.yaml
  • THEN the command exits 0 and reports no unknown option for allowedUnsafeExecutions.

Requirement: Post-upgrade commands stay disabled

The global config SHALL keep allowedCommands empty and allowShellExecutorForPostUpgradeCommands false.

Scenario: Kubernetes CI validates the ConfigMap

  • WHEN uv run devops ci --check --only k8s runs on the change
  • THEN the check passes with "allowedCommands": [] and "allowShellExecutorForPostUpgradeCommands": false in the ConfigMap.

Requirement: Reason recorded

The ConfigMap comment and ADR 0027 section 4 SHALL state that the exception covers mise only and only to write mise.lock.

Scenario: Documentation check validates the reason

  • WHEN uv run devops ci --check --only docs runs on the change
  • THEN the check passes and both the ConfigMap comment and ADR 0027 section 4 contain the stated reason.

Existing Tool Considered

renovatebot/renovate (https://github.com/renovatebot/renovate), verdict in-use: the repository already uses it. See the alternatives check in the issue body for what the tool covers and lacks. This change supplies the explicit mise opt-in with allowedUnsafeExecutions: ["mise"]; it builds no tool.

Key questions

  • Which Renovate option lets the self-hosted instance run mise to refresh mise.lock?: Set allowedUnsafeExecutions to ["mise"]. Keep allowedCommands empty. This is the owner decision of 2026-11-19 and the option that the alternatives block records. (best practice) [sources: k8s/devops/renovate/configmap.yaml:61, docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:52]
    • Chosen: allowedUnsafeExecutions: ["mise"]. The owner decision names this option and value; it permits one binary, mise, and no shell.
    • Rejected: A regex in allowedCommands. allowedCommands governs post-upgrade tasks, not the mise manager's lock refresh, and chore(k8s): Let Renovate open update PRs with no upgrade tasks #6022 keeps it empty.
    • Rejected: A custom lock refresh script. Renovate's built-in mise manager already covers the lock refresh, so no custom code is needed.
  • Does binarySource: install supply mise through containerbase?: Yes. Renovate installs tool binaries in containerbaseDir when binarySource is install, so the mise manager can run mise. [sources: k8s/devops/renovate/configmap.yaml:55]
  • Does the NetworkPolicy need a change to let Renovate download mise?: No. The existing NetworkPolicy already allows public 443 egress, so the change leaves it as it is. [sources: k8s/devops/renovate/networkpolicy.yaml:46]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Moved to new items

#6430

Activity

  1. added
    type/infra
    source/agent
    status/new
    value/medium
    effort/low
    on Nov 19, 2026
  2. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor
    • Scope: none. The title has the scope renovate, and .github/labels.yml declares no scope/renovate label. Add the label to the file to give the scope to this item.
    • Related: feat(k8s): run self-hosted Renovate as a CronJob in devops #4905, which asks for a different change. Both modify the self-hosted Renovate ConfigMap, but #4905 sets up the CronJob while this adds allowedUnsafeExecutions for mise.
  3. added
    priority/p2-medium
    on Nov 19, 2026
  4. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  5. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (10)

    Tools considered:

    Searches run:

    • renovate mise manager update mise.lock, results: 5
    • renovate allowedUnsafeExecutions mise, results: 5
    • renovate bot mise manager docs, results: 5
    • renovate docs allowedUnsafeExecutions configuration option, results: 5
    • "allowedUnsafeExecutions" renovate, results: 5
    • github renovatebot renovate mise lockfile manager, results: 5
    • renovate configuration options allowedUnsafeExecutions mise binarySource install, results: 5
    • docs.renovatebot.com mise manager, results: 5
    • renovate postUpgradeTasks allowedCommands allowedUnsafeExecutions unsafe execution, results: 5
    • renovate mise.lock lockfile update pull request, results: 5

    Sources:

  6. added
    status/ready
    and removed
    status/new
    on Nov 19, 2026
  7. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.

  8. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor

    Returned: the premise is false for Renovate 44.239.2

    The CronJob runs ghcr.io/renovatebot/renovate:44.239.2 (k8s/devops/renovate/cronjob.yaml:85 and :149). In that release, the mise manager refreshes mise.lock with no allowedUnsafeExecutions entry. The change of this item turns off the safe path. Thus I did not build it, and I wrote no code.

    Evidence

    1. Option name and value. allowedUnsafeExecutions is a valid global option in 44.239.2. Its default is [], and mise is an allowed value (lib/config/options/index.ts and docs/usage/self-hosted-configuration.md at tag 44.239.2).
    2. Safe mode. lib/modules/manager/mise/artifacts.ts at tag 44.239.2 runs mise version first. If mise is 2026.7.12 or later and mise is not in allowedUnsafeExecutions, Renovate runs mise lock <tools> with MISE_SAFE=1. Renovate skips the lock refresh only when mise is older or the version probe fails. The readme of the manager says the same (section "Trust model for lock file updates").
    3. The allowlist turns safe mode off. The source has safeMode = !miseAllowlisted && miseSupportsSafeFeatures. With mise in the list, Renovate runs mise trust mise.toml and then mise lock without MISE_SAFE. The project config can then run code in the Renovate pod (template exec(), hooks, [env]). Renovate gives mise the App installation token as GITHUB_TOKEN, and that token can write to each repository of the installation.
    4. The mise version that runs. No constraints.mise is set (devtools .github/renovate.json, .github/renovate/base of this repository, devtools mise.toml). Then Renovate installs the newest stable jdx/mise release (resolveConstraint in lib/util/exec/containerbase.ts). On 2026-11-19 that release is v2026.11.10 (2026-11-18), which is later than 2026.7.12.
    5. binarySource: install supplies mise. The image is built on renovatebot/base-image 13.166.4, which uses containerbase 14.66.25. At that tag, containerbase has src/cli/tools/mise.ts: it downloads mise from the jdx/mise GitHub releases and checks the SHA-256 sum. The NetworkPolicy allows public 443 egress, so it needs no change.
    6. Backends. The devtools mise.lock has 23 aqua tools and 4 github tools. The mise setting safe (settings.toml at v2026.11.10) says: "Version resolution and mise.lock updates keep working for backends that query HTTP APIs, such as core tools, aqua:, github:, pypi: and npm:."
    7. Live system. The Renovate run of 2026-11-19 at 16:19 UTC found dan-petty/devtools with the mise manager (1 file, 27 dependencies) and logged no warning (no line at level 40 or higher). It made only the Dependency Dashboard (Dependency Dashboard devtools#7). The mise updates wait for their schedule (branch renovate/tools, which includes vale). Thus mise lock did not run yet.

    Recommendation

    Close this item as not planned, and keep allowedUnsafeExecutions at its default [].

    To get the proof now, a person can tick the renovate/tools box in dan-petty/devtools#7. The next run then opens the tools pull request.

    • If that pull request changes mise.toml and mise.lock together, safe mode works, and this item has no work.
    • If Renovate logs "mise lock requires either mise in allowedUnsafeExecutions, or a mise version that supports safe mode", or the pull request shows an artifact error, refine this item again with that log line.

    The split item #6430 (install the App on dan-petty/devtools) is also done: the same run shows dan-petty/devtools as onboarded.

  9. added
    status/new
    and removed
    status/ready
    on Nov 19, 2026
  10. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor

    Closed as not planned. The proof from the Renovate run: dan-petty/devtools#8 (renovate/tools) changes mise.toml and mise.lock together (vale 3.27.0 to 3.28.1, with new checksums for linux-x64 and linux-arm64), and Renovate posted no artifact error. Renovate 44.239.2 runs MISE_SAFE=1 mise lock when mise is not in allowedUnsafeExecutions (lib/modules/manager/mise/artifacts.ts:189). So allowedUnsafeExecutions stays [], and Renovate keeps safe mode.

  11. removed
    status/new
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumsource/agenttype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions