3 Home
liquibyte edited this page 2026-11-25 23:04:47 -06:00

Folio

Folio turns projects that live on a forge into installable packages. A forge is a website that hosts git repositories, such as a Forgejo.

  • Your projects stay where they are: in git repositories on the forge.
  • A Folio site is pointed at them. It imports the source as it is, works out how to build and package it, and builds every new commit.
  • The building is done by build nodes: other computers that ask the site for work, build in a throwaway system and hand the packages back.
  • The site offers the result as a signed apt archive, which Devuan's package tool installs from, and as a website made only of files.
  • It can write everything back to the forge: its record, its pages and the packages, as git repositories with a commit for every change, and the packages into the forge's own package list.

A Folio site hosts no git repositories, has no web logins and no passwords. Whatever changes on it goes through SSH with a key, as a request signed with the GPG key of the account that asks, and is kept as a signed commit, with that request in it, that anyone can look at and check. Build nodes sign what they hand in, and what the site does by itself names what authorised it: the signed request that set it up, or the earlier record line that published a new signing key. folio-audit checks all of it from a copy of the record, with public keys alone.

Setting up a site for the first time

Start with Quick Start. It goes from nothing to a working site, a build node and a first built project. The Owner Install Guide then explains each step in full, and Forge Setup connects the site and the forge in both directions.

Which page is for you

You are Read
Someone who wants to install software from a site Public Guide
Someone with projects to offer through a site Member Guide
Wanting to know how it all works How It Works
Setting a site up Quick Start, then Owner Install Guide and Forge Setup
Running a site day to day Owner and Administrator Guide
Keeping a site safe Backup and Restore
Checking a site's whole history yourself, trusting nothing but its public key Auditing a Site
Lending a computer that builds packages Build Node Guide
Looking something up Command Reference, Settings Reference
Stuck Troubleshooting
Using buttons rather than commands Desktop Program

The addresses used in these pages

These pages use made-up addresses. Wherever you see one, write your own.

In these pages Means
https://dur.example.org your Folio site's web address (and web= in ~/.config/folio/sites/NAME)
folio@dur.example.org what people give to ssh (and ssh= in ~/.config/folio/sites/NAME) to reach your site
https://forge.example.org your forge's web address
https://forge.example.org/you your account (or organisation) on the forge
ssh://git@forge.example.org/you the same place, as git writes to it over SSH
/srv/folio the folder on the server where the site lives

If your site's SSH is not on port 22, every ssh command needs -p PORT right after ssh, for example ssh -p 2222 folio@dur.example.org help. Your site's own pages show the commands with the right port already in them.

Commands that only look work with plain ssh. Commands that change something are shown as folio COMMAND: the folio command (package folio-client) signs each change with your GPG key, and the site takes no change without that signature. It finds the site, port included, in ~/.config/folio/sites/NAME, one file for each site you use (see the Member Guide).

Who can do what

Everyone who takes part has an account on the site: a name, one or more SSH keys, one GPG key, and a role. The SSH key lets the person in; the GPG key signs each change they ask for. An account without a GPG key can only look. Someone already there vouches for each new account (an administrator, the owner, or an account an administrator has let vouch), with the new person's SSH key and GPG key.

Role Can
Anyone (no account) browse the site, install packages, download them
member all of that, plus: add their own projects, vote, comment, flag, ask for a package to be freed or removed
maintainer all of that, plus: decide requests, let in projects found on a watched forge. Their new packages start in the reviewed part, where each upload waits for an administrator or the owner to approve it
administrator nearly anything, on any account and package, including approving uploads for the reviewed part (their own too). Not: the owner's account, and not importing into, approving, building again, moving or deciding about the owner's packages, nor approving what the owner uploaded
owner anything. There is exactly one. Only the owner can hand the site over, erase something from its history or accept changes admin verify doubts, and only the owner approves the owner's work

The two parts of the archive

The apt archive has two parts, so that people can choose how much they trust what is in it.

Part What is in it When a build is published
main (reviewed) packages an administrator or the owner has looked at. A maintainer's, an administrator's and the owner's new packages start here once an administrator or the owner approves that upload (each new commit waits again; on the owner's packages, only the owner's approval counts); at once if the owner imported it, or an administrator did to a package that is not the owner's
unsafe (unreviewed) everything else. A member's new package starts here, and so does every project let in from a watched forge as soon as it is built

Someone installing from a site chooses which parts to use. The default is main only. An administrator can move a package from one part to the other (admin move).

On a site that requires verified builds (the setting verify = required), nothing in either part is published until a second build node has built the very same files.

How It Works explains all of this step by step.