docs(renovate): correct the kaniko and image-input claims
Remove the image-input packageRule that set no option. Add a dockerfile rule that states, and pins, that base-image tag and digest bumps may automerge (Kamino is the untrusted side, the pin PR's CI exercises the image); the ubuntu job container stays at automerge false. Say kaniko is pinned by layer digests that no manager reads and is updated by hand. List what is not enabled or verified (GITHUB_COM_TOKEN for the pre-commit manager, main's required checks, github.head_ref) and that a hand edit on a renovate/ branch stops Renovate's rebases. renovate-config-validator --strict (renovate 44.161.0) passes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
8e9a8c5df0
commit
b7b14b7277
2 files changed
+26
-14
No files matched your search
@@ -66,8 +66,11 @@ list. Nothing below runs yet unless it says so.
|
||||
|
||||
- **Policy:** minor and patch bumps automerge, majors are manual. `ansible-core` minor and major
|
||||
are manual too (a new minor needs a `tests/sanity/ignore-2.NN.txt`), and `ansible-core` and
|
||||
`ansible-lint` bump in one group. The `ubuntu` job container of `image.yml` and anything
|
||||
naming kaniko never automerge: that job holds the registry push credential.
|
||||
`ansible-lint` bump in one group. Dockerfile base-image tag and digest bumps (`images/*/Dockerfile`)
|
||||
stay automergeable: Kamino is the untrusted side and the pin PR's CI exercises the new image. The
|
||||
`ubuntu` job container of `image.yml` never automerges: that job holds the registry push credential.
|
||||
kaniko is pinned by layer digests in `image.yml`; no Renovate manager reads them, so it is updated by
|
||||
hand (the `/kaniko/` rule in `renovate.json` is only a safety net).
|
||||
- **Two-PR loop for an image input** (`requirements-dev.txt`, `.pre-commit-config.yaml`,
|
||||
`images/**`): PR 1 carries the input change plus the PATCH bump of the image `version:` in
|
||||
`image.yml` (`scripts/bump_image_versions.py [<base-ref>]`, idempotent, edits only the
|
||||
@@ -82,6 +85,8 @@ list. Nothing below runs yet unless it says so.
|
||||
lines in `.pre-commit-config.yaml`, FROM tags/digests and the `uv==` pin in `images/*/Dockerfile`,
|
||||
the matrix `version:` lines and the ubuntu job container pin in `image.yml`, and the image
|
||||
pins in `lint.yml`, `build.yml` and `molecule.yml`. Anything else fails, `renovate.json` included.
|
||||
Tags are `[A-Za-z0-9._-]` only, FROM and ubuntu lines must keep their digest, matrix versions must stay in
|
||||
place and rise, and a binary or one-sided change fails.
|
||||
The branch name is attacker-controlled, so this only constrains the bot's own pull requests; its
|
||||
purpose is that automerging them cannot alter workflow logic or reach the org secrets.
|
||||
- **No Collection release from tooling bumps:** everything involved is in `galaxy.yml`
|
||||
@@ -91,7 +96,16 @@ list. Nothing below runs yet unless it says so.
|
||||
`.gitea/workflows` mentions `git.rkdr.net/defame1297/`.
|
||||
- **Not enabled yet:** the Renovate run itself, `postUpgradeTasks`, credentials for the
|
||||
`git.rkdr.net` registry (`hostRules`), pin-follow, and a validated `renovate.json` on the
|
||||
instance's Renovate version. The `pre-commit` manager is beta; the hooks come from github.com.
|
||||
instance's Renovate version. The `pre-commit` manager is beta; the hooks come from github.com, so it
|
||||
needs `GITHUB_COM_TOKEN` on the Renovate instance. Unverified: that bot PRs are held by `main`'s
|
||||
required status checks (check the branch protection before enabling automerge), and that
|
||||
`github.head_ref` is populated on this Gitea (the gate fails closed on an empty one, via
|
||||
`EVENT_NAME`).
|
||||
- **Hand edits on a bot branch:** a commit pushed by hand to a `renovate/` branch makes Renovate treat
|
||||
the branch as modified: it stops rebasing it, so merge that pull request by hand.
|
||||
- **The guard runs from `main`:** the lint step extracts `scripts/` from `origin/main` and runs the
|
||||
guard from there, so a pull request cannot weaken its own gate (the PR copy runs only while `main`
|
||||
has no guard). A change to the guard takes effect for other PRs after it merges.
|
||||
- A pin-only pull request (only `lint.yml`, `build.yml`, `molecule.yml`) does not match any
|
||||
`image.yml` push path (`images/**`, `requirements-dev.txt`, `.pre-commit-config.yaml`,
|
||||
`.gitea/workflows/image.yml`), so it rebuilds nothing.
|
||||
+9
-11
@@ -69,6 +69,13 @@
|
||||
}
|
||||
],
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "Dockerfile base-image tag and digest bumps (images/*/Dockerfile) MAY automerge. Kamino is the untrusted side and the bump pull request's own CI exercises the new image before the merge. Placed first so the major-version rule below still turns automerge off. The image version bump in image.yml (scripts/bump_image_versions.py via postUpgradeTasks) is not enabled yet; until then the pull request fails the version check and a human adds it.",
|
||||
"matchManagers": [
|
||||
"dockerfile"
|
||||
],
|
||||
"automerge": true
|
||||
},
|
||||
{
|
||||
"description": "Majors are reviewed by hand.",
|
||||
"matchUpdateTypes": [
|
||||
@@ -105,16 +112,7 @@
|
||||
"automerge": false
|
||||
},
|
||||
{
|
||||
"description": "The image-input classes (requirements-dev.txt, .pre-commit-config.yaml, images/**): a bump of one is an input change of the ci or molecule image. The version bump in image.yml comes from scripts/bump_image_versions.py via postUpgradeTasks (enabled in Phase 2/3, not yet: until then the pull request fails the version check and a human adds the bump). The pin follow-up pull request comes from the docker datasource after the build on main (Phase 4).",
|
||||
"matchManagers": [
|
||||
"pip_requirements",
|
||||
"pre-commit",
|
||||
"dockerfile",
|
||||
"custom.regex"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "The job container of image.yml (ubuntu by digest) runs the kaniko push with the org registry credential: never automerged, and kept in its own branch so the Dockerfile base-image bumps are not held back with it.",
|
||||
"description": "The job container of image.yml (ubuntu by digest) holds the org registry push credential while the image job runs: never automerged, and kept in its own branch so the Dockerfile base-image bumps are not held back with it.",
|
||||
"matchFileNames": [
|
||||
".gitea/workflows/image.yml"
|
||||
],
|
||||
@@ -122,7 +120,7 @@
|
||||
"additionalBranchPrefix": "job-container-"
|
||||
},
|
||||
{
|
||||
"description": "Anything that names the kaniko tooling: the image job that runs it holds the registry push credential, so it is reviewed.",
|
||||
"description": "Safety net only: kaniko is pinned by layer digests in image.yml and no Renovate manager reads them, so it is updated by hand. If a manager ever starts to read it, its bumps are not automerged.",
|
||||
"matchPackageNames": [
|
||||
"/kaniko/"
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user