How friends get code in says every push from a friend's fork runs only after a human approves it, and GLOSSARY.md defines a friend that way. A review found reasons to doubt the boundary. Given the facts the blocking ticket establishes, decide:
Is a server upgrade a precondition of the Open to friends milestone, and to which version?
If approval stops after a friend's first merged pull request: accept "approval until the first merge" in writing, keep per-push approval another way (for example Restricted accounts), or wait for ephemeral runners?
What does an approver read? The rule names workflow, script, hook and molecule changes, but an approved run also executes role tasks on the host executor, the requirements installs and the script tests.
Where is an approval recorded? The approver's checkbox sits in the pull request template, which the friend fills in.
The shared-runner risk was accepted for the image push credential only. A release token now runs there too, and runner capacity 2 lets a fork job run beside the image job. Is that accepted in writing, or does the release workflow going live trigger ephemeral runners?
From the review
Amends, depending on the answer: the friend rule, the glossary entry, the ADR 0001 issue (#143), the settings issue (#192), the fork-guard issue (#178), the contributor docs and template issues (#189, #191).
Part of #87
## Question
[How friends get code in](https://git.rkdr.net/Mortis/Kamino/issues/100) says every push from a friend's fork runs only after a human approves it, and `GLOSSARY.md` defines a friend that way. A review found reasons to doubt the boundary. Given the facts the blocking ticket establishes, decide:
- Is a server upgrade a precondition of the *Open to friends* milestone, and to which version?
- If approval stops after a friend's first merged pull request: accept "approval until the first merge" in writing, keep per-push approval another way (for example Restricted accounts), or wait for ephemeral runners?
- What does an approver read? The rule names workflow, script, hook and molecule changes, but an approved run also executes role tasks on the host executor, the requirements installs and the script tests.
- Where is an approval recorded? The approver's checkbox sits in the pull request template, which the friend fills in.
- The shared-runner risk was accepted for the image push credential only. A release token now runs there too, and runner capacity 2 lets a fork job run beside the image job. Is that accepted in writing, or does the release workflow going live trigger ephemeral runners?
## From the review
- Amends, depending on the answer: the friend rule, the glossary entry, the ADR 0001 issue (#143), the settings issue (#192), the fork-guard issue (#178), the contributor docs and template issues (#189, #191).
Established: the server runs 28.0.0. It lacks the fix for GHSA-32h8-5xqg-h466 (CVE-2026-118386, Gitea advisories): a workflow triggered by a pull request review is read from the commit the review names and runs as a non-fork run, so a read-only user gets the secrets and a write-capable token with no approval. Fixed in 28.3.0.
Established: 28.4.0 adds three more Actions-related fixes: GHSA-74jf-6hjp-549c (removing a team review request bypasses required approvals), GHSA-q3q9-39vr-q35j (a repository transfer keeps workflow trust and exposes secrets), GHSA-w87g-xmrp-86v2 (protected file patterns bypassed with quoted file names). 28.4.0 is the lowest version with every fix found.
Established: approval is skipped once the account has one merged pull request here, or has Actions write access (ifNeedApprovalWith in services/actions/notifier_helper.go at v28.0.0: "trust the user only after a merged PR"). Unchanged at v28.4.0.
Established: a Restricted account is always asked, even with a merged pull request or write access; that check runs first.
GLOSSARY.md:28 says the opposite of the first point: "each push runs only after the maintainer or a trusted contributor approves it". Test what a fork pull request can do on this Gitea listed it as not tested.
Not established: what a Restricted account can see and do. Gitea's FAQ and source disagree on public repositories; the source shows no restriction on forking, issues or pull requests. Test before choosing it.
Established, related: a push does not cancel a scheduled merge, whoever pushes; the new head merges as the scheduler once its checks pass.
Options seen: accept "approval until the first merge" in writing; Restricted friend accounts; a trusted contributor merges a friend's work under their own pull request (loses "opener is author"); ephemeral runners (act_runner register --ephemeral, needs a host per job). The review's position: do not keep the per-push routine and the false claim together. Ephemeral runners are the one fix that also closes the runner risk below.
What an approver reads
How friends get code in lists .gitea/, scripts/, the hook config and molecule/. Other paths also run on the runner: lint.yml:124 runs python3 -m unittest discover -s tests/scripts; Lint installs the pinned tools and collections when requirements-dev.* or requirements.yml differ from the image; Molecule runs role tasks on the host executor (molecule.yml:7-9, "root-equivalent"), so delegate_to: localhost in roles/*/tasks/ runs on the host.
Recommendation (two findings agree): read the whole diff of each push, because any file may run on the runner.
Where an approval is recorded
The pull request template box is filled in by the friend or the friend's agent, while approval is per push and by someone else. Contributor doc set itself says "an unchecked box is the one agents tick blindly".
Options: drop the box and keep the rule in reviewing.md (held by review), or the approver posts a pull request comment for each approval.
A root job can plant code in the molecule virtualenv and collection cache that later jobs reuse (molecule.yml:20-23).
Capacity 2 (CI image pipeline: keep, simplify or replace) lets an approved fork job run beside image.yml, whose credential file stays in the job container during the build (image.yml:346-347). Exposure moves from tampering later to reading it live.
Options: name the release and Renovate tokens in the accepted risk; make the release workflow going live a trigger for ephemeral runners; keep image.yml and fork-reachable jobs mutually exclusive. Confidence high on the path.
Evidence from the review of the map (2026-11-15).
"Established" marks a fact from [Establish how fork approval behaves on this server's Gitea version](https://git.rkdr.net/Mortis/Kamino/issues/204) (release notes, advisories, source at the tag; no live test).
### Server upgrade as a precondition
- Established: the server runs 28.0.0. It lacks the fix for GHSA-32h8-5xqg-h466 (CVE-2026-118386, [Gitea advisories](https://github.com/go-gitea/gitea/security/advisories)): a workflow triggered by a pull request review is read from the commit the review names and runs as a non-fork run, so a read-only user gets the secrets and a write-capable token with no approval. Fixed in 28.3.0.
- Established: 28.4.0 adds three more Actions-related fixes: GHSA-74jf-6hjp-549c (removing a team review request bypasses required approvals), GHSA-q3q9-39vr-q35j (a repository transfer keeps workflow trust and exposes secrets), GHSA-w87g-xmrp-86v2 (protected file patterns bypassed with quoted file names). 28.4.0 is the lowest version with every fix found.
- Recommendation: make the upgrade a precondition of *Open to friends*, as a Ready for Human issue in that milestone and step 0 of [chore: apply the recommended repository settings, account permissions and branch protection](https://git.rkdr.net/Mortis/Kamino/issues/192). Confidence high that the upgrade is owed.
### Approval until the first merge
- Established: approval is skipped once the account has one merged pull request here, or has Actions write access (`ifNeedApprovalWith` in [`services/actions/notifier_helper.go` at v28.0.0](https://raw.githubusercontent.com/go-gitea/gitea/v28.0.0/services/actions/notifier_helper.go): "trust the user only after a merged PR"). Unchanged at v28.4.0.
- Established: a Restricted account is always asked, even with a merged pull request or write access; that check runs first.
- `GLOSSARY.md:28` says the opposite of the first point: "each push runs only after the maintainer or a trusted contributor approves it". [Test what a fork pull request can do on this Gitea](https://git.rkdr.net/Mortis/Kamino/issues/89) listed it as not tested.
- Not established: what a Restricted account can see and do. Gitea's FAQ and source disagree on public repositories; the source shows no restriction on forking, issues or pull requests. Test before choosing it.
- Established, related: a push does not cancel a scheduled merge, whoever pushes; the new head merges as the scheduler once its checks pass.
- Options seen: accept "approval until the first merge" in writing; Restricted friend accounts; a trusted contributor merges a friend's work under their own pull request (loses "opener is author"); ephemeral runners (`act_runner register --ephemeral`, needs a host per job). The review's position: do not keep the per-push routine and the false claim together. Ephemeral runners are the one fix that also closes the runner risk below.
### What an approver reads
- [How friends get code in](https://git.rkdr.net/Mortis/Kamino/issues/100) lists `.gitea/`, `scripts/`, the hook config and `molecule/`. Other paths also run on the runner: `lint.yml:124` runs `python3 -m unittest discover -s tests/scripts`; Lint installs the pinned tools and collections when `requirements-dev.*` or `requirements.yml` differ from the image; Molecule runs role tasks on the host executor (`molecule.yml:7-9`, "root-equivalent"), so `delegate_to: localhost` in `roles/*/tasks/` runs on the host.
- Recommendation (two findings agree): read the whole diff of each push, because any file may run on the runner.
### Where an approval is recorded
- The pull request template box is filled in by the friend or the friend's agent, while approval is per push and by someone else. [Contributor doc set](https://git.rkdr.net/Mortis/Kamino/issues/103) itself says "an unchecked box is the one agents tick blindly".
- Options: drop the box and keep the rule in `reviewing.md` (held by review), or the approver posts a pull request comment for each approval.
### The shared runner and the release token
- [Threat model: what we defend against and what we accept](https://git.rkdr.net/Mortis/Kamino/issues/99) accepts one host running "molecule as root, approved fork runs and the image build that holds the push credential". [Release automation](https://git.rkdr.net/Mortis/Kamino/issues/98) later added a tag-capable token on the same runner; the Renovate token runs there too.
- A root job can plant code in the molecule virtualenv and collection cache that later jobs reuse (`molecule.yml:20-23`).
- Capacity 2 ([CI image pipeline: keep, simplify or replace](https://git.rkdr.net/Mortis/Kamino/issues/96)) lets an approved fork job run beside `image.yml`, whose credential file stays in the job container during the build (`image.yml:346-347`). Exposure moves from tampering later to reading it live.
- Options: name the release and Renovate tokens in the accepted risk; make the release workflow going live a trigger for ephemeral runners; keep `image.yml` and fork-reachable jobs mutually exclusive. Confidence high on the path.
Server upgrade. Gitea ≥ 28.4.0 (the latest 28.x patch at the time, never below 28.4.0) is a precondition of Open to friends: 28.4.0 is the lowest version with the review-triggered bypass fix and the three later Actions fixes. A Ready for Human issue in that milestone, step 0 of the settings issue (#192), which it blocks.
Approval until the first merge. Accepted in writing: a friend's pushes run only after the maintainer or a trusted contributor approves them, until the friend's first pull request is merged here; after that Gitea runs them unapproved. Reason: the threat model defends against mistakes first, fork runs get no secrets and a read-only token, and per-push approval forever works against continuous delivery. Not chosen: Restricted friend accounts (untested, permanent toil), waiting for ephemeral runners (out of scope).
What an approver reads. The whole diff of each push they approve, because any file may run on the runner (script tests, pinned installs, role tasks on the host executor). No path list.
Where an approval is recorded. Nowhere beyond what Gitea shows on the run. The approver checkbox leaves the pull request template; the rule lives in docs/contributing/reviewing.md, held by review.
Shared runner. Accepted for now in writing: the accepted risk in ADR 0001 names the image push credential, the release bot's token and Renovate's token, and both paths: reading a credential live beside a fork job (capacity 2) and planting code in the cached molecule virtualenv and collection cache. Ephemeral runners stay the named fix. Not chosen: a concurrency group shared with fork-reachable jobs (Gitea replaces an older pending run with a newer one, so pull request runs could be dropped).
Glossary. Friend becomes: "A person the maintainer trusts not to act in bad faith but has not given write access; contributes from a fork, and its pushes run only after the maintainer or a trusted contributor approves them, until its first pull request is merged. The maintainer may make a friend a trusted contributor." Positions stay distinct; promotion is the path between them.
ADR. None of its own: one line in ADR 0001 (#143). Reversing it costs a glossary line and a setting.
Scope added by comment to #143 (ADR 0001), #178 (fork claims), #189 (reviewing doc), #191 (template), #192 (settings), #215 (glossary).
## Resolution
Decided with the maintainer, on the facts from [Establish how fork approval behaves on this server's Gitea version](https://git.rkdr.net/Mortis/Kamino/issues/204).
1. **Server upgrade.** Gitea ≥ 28.4.0 (the latest 28.x patch at the time, never below 28.4.0) is a precondition of *Open to friends*: 28.4.0 is the lowest version with the review-triggered bypass fix and the three later Actions fixes. A Ready for Human issue in that milestone, step 0 of the settings issue (#192), which it blocks.
2. **Approval until the first merge.** Accepted in writing: a friend's pushes run only after the maintainer or a trusted contributor approves them, until the friend's first pull request is merged here; after that Gitea runs them unapproved. Reason: the threat model defends against mistakes first, fork runs get no secrets and a read-only token, and per-push approval forever works against continuous delivery. Not chosen: Restricted friend accounts (untested, permanent toil), waiting for ephemeral runners (out of scope).
3. **What an approver reads.** The whole diff of each push they approve, because any file may run on the runner (script tests, pinned installs, role tasks on the host executor). No path list.
4. **Where an approval is recorded.** Nowhere beyond what Gitea shows on the run. The approver checkbox leaves the pull request template; the rule lives in `docs/contributing/reviewing.md`, held by review.
5. **Shared runner.** Accepted for now in writing: the accepted risk in ADR 0001 names the image push credential, the release bot's token and Renovate's token, and both paths: reading a credential live beside a fork job (capacity 2) and planting code in the cached molecule virtualenv and collection cache. Ephemeral runners stay the named fix. Not chosen: a concurrency group shared with fork-reachable jobs (Gitea replaces an older pending run with a newer one, so pull request runs could be dropped).
6. **Glossary.** Friend becomes: "A person the maintainer trusts not to act in bad faith but has not given write access; contributes from a fork, and its pushes run only after the maintainer or a trusted contributor approves them, until its first pull request is merged. The maintainer may make a friend a trusted contributor." Positions stay distinct; promotion is the path between them.
7. **ADR.** None of its own: one line in ADR 0001 (#143). Reversing it costs a glossary line and a setting.
### Backlog
- New: [chore: upgrade the Gitea server to 28.4.0 or later before opening to friends](https://git.rkdr.net/Mortis/Kamino/issues/223), blocking #192.
- Scope added by comment to #143 (ADR 0001), #178 (fork claims), #189 (reviewing doc), #191 (template), #192 (settings), #215 (glossary).
Point 2, approval until the first merge accepted: the friend position is removed, and fork runs are never approved, so this accepted risk goes from ADR 0001 and the register.
Point 3, the approver reads the whole diff: there is no approver. Instead, a trusted contributor may carry an outsider's change into a pull request of their own after reading every line, and is its author of record.
Point 4, the approval rule in reviewing.md and the approver checkbox:reviewing.md holds "a fork or AGit pull request always comes from an outsider; a human closes it without approving its runs and points to an issue; never approve a fork run, never merge a fork pull request", held by aspirational. The checkbox stays out of the template.
Point 6, the Friend glossary entry: dropped. Outsider becomes "anyone without write access to this repository, who contributes through issues".
Still holds: point 1, Gitea ≥ 28.4.0 as a precondition of opening the repository, now for the approval gate that keeps outsiders' forks from running. Point 5's shared-runner risk stays accepted, but in the new "Accepted risks" section of SECURITY.md, and its fork-job path no longer applies since fork runs are never approved.
## Superseded in part by [Where the maintainer's own procedures live, and what "held by review" means for them](https://git.rkdr.net/Mortis/Kamino/issues/250) (2026-11-20)
No longer holds:
- **Point 2, approval until the first merge accepted:** the friend position is removed, and fork runs are never approved, so this accepted risk goes from ADR 0001 and the register.
- **Point 3, the approver reads the whole diff:** there is no approver. Instead, a trusted contributor may carry an outsider's change into a pull request of their own after reading every line, and is its author of record.
- **Point 4, the approval rule in `reviewing.md` and the approver checkbox:** `reviewing.md` holds "a fork or AGit pull request always comes from an outsider; a human closes it without approving its runs and points to an issue; never approve a fork run, never merge a fork pull request", held by aspirational. The checkbox stays out of the template.
- **Point 6, the Friend glossary entry:** dropped. Outsider becomes "anyone without write access to this repository, who contributes through issues".
Still holds: point 1, Gitea ≥ 28.4.0 as a precondition of opening the repository, now for the approval gate that keeps outsiders' forks from running. Point 5's shared-runner risk stays accepted, but in the new "Accepted risks" section of `SECURITY.md`, and its fork-job path no longer applies since fork runs are never approved.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #87
Question
How friends get code in says every push from a friend's fork runs only after a human approves it, and
GLOSSARY.mddefines a friend that way. A review found reasons to doubt the boundary. Given the facts the blocking ticket establishes, decide:From the review
Evidence from the review of the map (2026-11-15).
"Established" marks a fact from Establish how fork approval behaves on this server's Gitea version (release notes, advisories, source at the tag; no live test).
Server upgrade as a precondition
Approval until the first merge
ifNeedApprovalWithinservices/actions/notifier_helper.goat v28.0.0: "trust the user only after a merged PR"). Unchanged at v28.4.0.GLOSSARY.md:28says the opposite of the first point: "each push runs only after the maintainer or a trusted contributor approves it". Test what a fork pull request can do on this Gitea listed it as not tested.act_runner register --ephemeral, needs a host per job). The review's position: do not keep the per-push routine and the false claim together. Ephemeral runners are the one fix that also closes the runner risk below.What an approver reads
.gitea/,scripts/, the hook config andmolecule/. Other paths also run on the runner:lint.yml:124runspython3 -m unittest discover -s tests/scripts; Lint installs the pinned tools and collections whenrequirements-dev.*orrequirements.ymldiffer from the image; Molecule runs role tasks on the host executor (molecule.yml:7-9, "root-equivalent"), sodelegate_to: localhostinroles/*/tasks/runs on the host.Where an approval is recorded
reviewing.md(held by review), or the approver posts a pull request comment for each approval.The shared runner and the release token
molecule.yml:20-23).image.yml, whose credential file stays in the job container during the build (image.yml:346-347). Exposure moves from tampering later to reading it live.image.ymland fork-reachable jobs mutually exclusive. Confidence high on the path.Resolution
Decided with the maintainer, on the facts from Establish how fork approval behaves on this server's Gitea version.
docs/contributing/reviewing.md, held by review.Backlog
Superseded in part by Where the maintainer's own procedures live, and what "held by review" means for them (2026-11-20)
No longer holds:
reviewing.mdand the approver checkbox:reviewing.mdholds "a fork or AGit pull request always comes from an outsider; a human closes it without approving its runs and points to an issue; never approve a fork run, never merge a fork pull request", held by aspirational. The checkbox stays out of the template.Still holds: point 1, Gitea ≥ 28.4.0 as a precondition of opening the repository, now for the approval gate that keeps outsiders' forks from running. Point 5's shared-runner risk stays accepted, but in the new "Accepted risks" section of
SECURITY.md, and its fork-job path no longer applies since fork runs are never approved.