Repository navigation
Description
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"]toconfig.jsonink8s/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) andrequireConfig: requiredpick up dan-petty/devtools when it has arenovate.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.jsonhas no 'unsafe execution' warning. - The first mise update PR in dan-petty/devtools changes
mise.tomlandmise.locktogether.
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.yamlrunsrenovate-config-validatoron theconfig.jsonink8s/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 k8sruns on the change - THEN the check passes with
"allowedCommands": []and"allowShellExecutorForPostUpgradeCommands": falsein 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 docsruns 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?: SetallowedUnsafeExecutionsto["mise"]. KeepallowedCommandsempty. 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: installsupply mise through containerbase?: Yes. Renovate installs tool binaries incontainerbaseDirwhenbinarySourceisinstall, 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.
Activity
dan-petty commentedon Nov 19, 2026
renovate, and .github/labels.yml declares no scope/renovate label. Add the label to the file to give the scope to this item.Both modify the self-hosted Renovate ConfigMap, but #4905 sets up the CronJob while this adds allowedUnsafeExecutions for mise.devops-cli-service commentedon Nov 19, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 19, 2026
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:
Sources:
devops-cli-service commentedon Nov 19, 2026
Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.
dan-petty commentedon Nov 19, 2026
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 refreshesmise.lockwith noallowedUnsafeExecutionsentry. The change of this item turns off the safe path. Thus I did not build it, and I wrote no code.Evidence
allowedUnsafeExecutionsis a valid global option in 44.239.2. Its default is[], andmiseis an allowed value (lib/config/options/index.ts and docs/usage/self-hosted-configuration.md at tag 44.239.2).mise versionfirst. If mise is 2026.7.12 or later andmiseis not inallowedUnsafeExecutions, Renovate runsmise lock <tools>withMISE_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").safeMode = !miseAllowlisted && miseSupportsSafeFeatures. Withmisein the list, Renovate runsmise trust mise.tomland thenmise lockwithoutMISE_SAFE. The project config can then run code in the Renovate pod (templateexec(), hooks,[env]). Renovate gives mise the App installation token asGITHUB_TOKEN, and that token can write to each repository of the installation.constraints.miseis set (devtools.github/renovate.json,.github/renovate/baseof this repository, devtoolsmise.toml). Then Renovate installs the newest stable jdx/mise release (resolveConstraintin 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.binarySource: installsupplies mise. The image is built on renovatebot/base-image 13.166.4, which uses containerbase 14.66.25. At that tag, containerbase hassrc/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.mise.lockhas 23aquatools and 4githubtools. The mise settingsafe(settings.toml at v2026.11.10) says: "Version resolution andmise.lockupdates keep working for backends that query HTTP APIs, such as core tools,aqua:,github:,pypi:andnpm:."renovate/tools, which includes vale). Thusmise lockdid not run yet.Recommendation
Close this item as not planned, and keep
allowedUnsafeExecutionsat its default[].To get the proof now, a person can tick the
renovate/toolsbox in dan-petty/devtools#7. The next run then opens the tools pull request.mise.tomlandmise.locktogether, safe mode works, and this item has no work.mise lockrequires eithermiseinallowedUnsafeExecutions, 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.dan-petty commentedon Nov 19, 2026
Closed as not planned. The proof from the Renovate run: dan-petty/devtools#8 (
renovate/tools) changesmise.tomlandmise.locktogether (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 runsMISE_SAFE=1 mise lockwhen mise is not inallowedUnsafeExecutions(lib/modules/manager/mise/artifacts.ts:189). SoallowedUnsafeExecutionsstays[], and Renovate keeps safe mode.