openAWbetaOpen openAW

Distributed Computing Application: Marshal resources to support ForgeJO runners

RFC by David ·

Synced from #suggestion-board (OccupySaas Development) · 3 messages on Discord.

- Discord Thread: https://discord.com/channels/1561399233846972457/1574305271126302740
- Reference Link: https://codeberg.org/doikayt/typescript-build-config/src/branch/main/CODEBERG_HOW_TO_ARTICLE/from-repo-event-to-ci-and-chat.md

### Opening Context
[2026-11-23] I've seen discussion (mostly from @waizns, sorry if I'm leaving anyone else out)
about harnessing idle compute for things like bitcoin mining.

I'd like to propose a different use for the same idle
machines: running CI jobs for Forgejo-hosted projects.

From chat

chris bedford: [2026-11-23] I've seen discussion (mostly from @waizns, sorry if I'm leaving anyone else out) about harnessing idle compute for things like bitcoin mining. I'd like to propose a different use for the same idle machines: running CI jobs for Forgejo-hosted projects.

chris bedford: [2026-11-23] ## What the jobs are Forgejo Actions (like GitHub Actions) runs automated jobs when something happens in a repository: a push, a pull request, a tag, a schedule. The usual jobs are CI validation (tests, documentation checks), linting, security scans, publishing packages to registries, and deployments. Forgejo's version is described in [from-repo-event-to-ci-and-chat.md](https://codeberg.org/doikayt/typescript-build-config/src/branch/main/CODEBERG_HOW_TO_ARTICLE/from-repo-event-to-ci-and-chat.md), which I wrote up while moving my own repositories off GitHub.

chris bedford: [2026-11-23] ## The problem: CI jobs are arbitrary code, and someone has to pay for them A CI job is whatever the repository's author wrote, so a hosted Forgejo instance has to manage who gets to run what on its hardware. The same property that makes Actions useful makes it easy to abuse: a free runner is also a free place to mine crypto or send spam. Codeberg [https://codeberg.org/] is a good example of how one team solved this. This organization is a nonprofit running on donated hardware and volunteer time, so it vets CI access. Hosted Woodpecker CI there needs a manual access request, and a volunteer checks that the project is public, freely licensed and has reasonable resource needs before granting access. That keeps the abuse out. The cost is a human in the loop: someone has to open a request, someone has to review it, and the review is only as fast as the volunteers' free time. The other route is to run your own runner, which is what I did. Setting one up is the easy part, and it is mechanical enough to script. The hard part is finding a computer to put it on. My runner lives on my laptop as a stopgap, which makes it a single point of failure that also holds the secrets of

chris bedford: [2026-11-23] ## The idea A pool of volunteered machines that Forgejo hubs can send jobs to. Finding the compute is the hard problem, and the rest can be automated: the Forgejo runner polls the server over outbound connections only, so a volunteer's laptop or home server behind NAT can join without opening any ports, and registering a machine as a runner can be a single script. The vetting that Codeberg does by hand would be done by rules and isolation instead. ## What would have to be solved - Isolation: jobs are other people's code, so each one needs a throwaway container or VM. - Secrets: untrusted jobs (pull requests from forks) never see secrets, and release jobs that need them run only on runners the project trusts. - Abuse without a human gate: Codeberg's manual review stops miners, but doesn't scale. What automated limits (quotas, isolation, reputation) could replace it, and what do we still want a person to approve? - Matching: which hub's jobs go to which volunteer's machine, and who decides. ## Ask Is anyone interested in this as an alternative to the mining idea? A first step could be a small spike: one Forgejo hub, a handful of volunteer runners, public-repo

Discussion (0)

No replies yet.

Join the discussion