Code-owner approval against Renovate automerge, and where secrets live #210
Notifications
Due Date
No due date set.
Blocks
Reference: Mortis/Kamino#210
Reference in new issue
Block a user
Part of #87
Question
Recommended repository settings and branch protection turns on "require approval from code owners". The code-owned files include the tool pins, their lock,
requirements.ymland the workflows that hold image pins. So nearly every pull request that Renovate automerge posture says merges with no approval would wait for the maintainer, and the pin pull request no longer follows an image build at once. Decide:CODEOWNERS,docs/CODEOWNERSand.gitea/CODEOWNERS. A pull request that adds a root file would match no rule and replace the gates. Where does the file live, or are all three paths owned?images/**(its build steps run next to the push credential), the lint configs, the sanity ignore files,tests/scripts,REUSE.toml,changelogs/config.yaml. Own them or record the risk?renovate/*andrelease/*branches are unprotected: any writer can push onto a bot pull request and ride its scheduled merge. Push allowlists on both?From the review
Evidence from the review of the map (2026-11-15). Gitea source is read at tag v28.0.0, the server's version.
Which bot pull requests still merge unattended
services/issue/pull.go: no bot exemption).requirements-dev.*), collections (requirements.yml), consumer image pins inlint.yml,build.yml,molecule.yml. All match owned patterns. Left unowned: DockerfileFROMdigests and, later, skills bumps. So "narrows" means automerge is close to off, and the pin pull request after an image build waits for a click. Nothing on the automerge decision records it, and Re-evaluate Renovate's never-automerge exceptions once the push trigger is live plans against the old posture.requirements-dev\.lockand the image pin lines unowned, since the bot-diff gate already limits what arenovate/branch may change; or amend the automerge decision.Where CODEOWNERS lives
var codeOwnerFiles = []string{"CODEOWNERS", "docs/CODEOWNERS", ".gitea/CODEOWNERS"}(services/issue/pull.goat v28.0.0), from the base branch.CODEOWNERSordocs/CODEOWNERS. A pull request adding an empty root file matches no rule, merges on green, and from then on replaces every gate silently.CODEOWNERS, or keep.gitea/CODEOWNERSand own the other two paths. Confidence high.Gate inputs not owned
images/**:image.yml:346-347: "The credential file stays in the job container for the whole build, where the Dockerfile's RUN steps run as root". Theciimage is the Lint and Build tool chain; its pin pull request shows only a digest..ansible-lint,.yamllint,ruff.toml,tests/sanity/ignore-*.txt,tests/scripts/**,REUSE.toml,changelogs/config.yaml(feeds the release version).images/makes Renovate's base-image bumps wait for the maintainer, or recordimages/as accepted risk instead. Confidence high.Organisation or repository secrets; least privilege
CLAUDE.mddescribes Renovate running "as a Kamino-only bot user".renovate.yml:4-6callsRENOVATE_BOT_TOKEN"the repository secret ... (not an org secret)", while Record current repository settings and branch protection recorded it as an organisation secret.RENOVATE_BOT_TOKENa repository secret; no cost.Unprotected
renovate/*andrelease/*scripts/check_bot_pr_diff.pydocstring).renovate/*for the Renovate bot,release/*for the release bot. Two settings.When write access is withdrawn
Resolution
Grilled with the session's driver on 2026-11-16. Each line is the rule, its reason, and how it is held.
.gitea/**stays code-owned: workflows are the gates. So Renovate's pin-follow pull request for our own images (PR 2 of the image loop) waits for one maintainer approval per image build. That is a named never-automerge exception added to Renovate automerge posture. The Python and collection pin files (requirements-dev.txt,requirements-dev.lock,requirements.yml) are not code-owned and keep automerging. A bot's change to them is limited by the bot-diff gate run frommain, and a human's change is read by the approver (friends) or trusted (trusted contributors). Held by: control (code-owner approval in branch protection; bot-diff gate).CODEOWNERS, which owns itself. Gitea reads the first ofCODEOWNERS,docs/CODEOWNERS,.gitea/CODEOWNERS, and nothing outranks the root path, so no pull request can shadow it with another file. Replaces.gitea/CODEOWNERSin the CODEOWNERS issue. Held by: control..ansible-lint,.yamllint,ruff.toml,tests/sanity/ignore-*.txt,tests/scripts/**,REUSE.toml,changelogs/config.yaml,images/**. A skip in a lint config is a cheaper way to turn a check green than a workflow edit, andimages/**runs as root next to the registry push credential. Consequence: Renovate's DockerfileFROMbumps also wait for the maintainer, so they are grouped into one weekly pull request. Held by: control.mortisorganisation (the public skills source, chore: publish the agent skills source in the organisation before opening to friends). Until then Kamino is the only repository, so organisation and repository scope are equivalent. A new secret (the release bot's token) starts as a repository secret. Fact found in this session: the repository holds no repository secrets today, soRENOVATE_BOT_TOKENis an organisation secret and the header of.gitea/workflows/renovate.ymlis wrong about it. Held by: review (a settings change by the maintainer).renovate/*for the Renovate bot and the maintainer,release/*for the release bot and the maintainer. Anyone else's change to a bot pull request goes in their own pull request. This replaces CLAUDE.md's "hand edits on a bot branch" note. Held by: control (branch protection).No new ADR, because each point amends an existing decision. No glossary change.
Backlog