Table of Contents
- Member Guide
- 1. Getting your keys
- 2. Getting in
- Setting up the folio command
- Using more than one site
- A site with its own certificate authority
- Checking the site's key
- 3. Offering your projects
- What a project needs
- Point the site at your forge account
- Follow one repository
- Projects found on the whole forge
- What the site works out, and from what
- Versions
- When the site cannot know something
- A project with its own debian/ folder
- What happens after an import
- Looking after your packages
- 4. Taking part
- 5. Your account
- 6. Mail
- If you become a maintainer
Member Guide
For people with an account on a Folio site, or about to get one: getting your keys, getting in, offering your projects, and taking part.
A site (here dur.example.org) is a package repository. It takes
projects from the git repositories they live in on a forge (here
forge.example.org, a Forgejo for example), builds them into packages,
and offers them to anyone through apt.
There is no login page and no password. Everything you do is one command sent over SSH. A command that only looks can go with plain ssh:
ssh folio@dur.example.org comments xtk
A command that changes something goes with the folio command, which
signs it with your GPG key:
folio vote xtk
The site knows which account you are by the SSH key your computer uses.
It takes a change only as a request signed with that account's GPG key,
so a stolen SSH key alone changes nothing. Plain ssh cannot change
anything: the site answers
that changes something, so it must come as a request signed with your GPG key: run it with the folio command (folio vote xtk), or from the desktop program. Plain ssh can only look.
The folio command comes with the package folio-client; setting it up
once is in section 2. If you would
rather click than type, the Desktop Program has a
button for every command on this page. Your site's own pages (Help,
Guides) show these same commands with your site's address filled in. For
the shortest path through everything, see the Quick Start.
Words used on this page:
| Word | Means |
|---|---|
| account | your name on the site, tied to one or more SSH keys and one GPG key |
| role | what an account may do: member, maintainer, administrator or owner. A new account is a member |
| package | a project as the site offers it. A project becomes one package, named after its repository |
| maintainer of a package | the account that answers for it: usually whoever brought it in. Not to be confused with the role maintainer |
| co-maintainers | other accounts the maintainer lets look after the package |
main |
the reviewed part of the site's archive: a member's or maintainer's new upload is published there only after an administrator or the owner approves it (on the owner's package, only the owner). The owner's own upload is published at once, and so is an administrator's to a package that is not the owner's |
unsafe |
the unreviewed part: whatever builds is published at once |
| vouch | let a new person in. The owner and administrators may, by their role; a member or maintainer only in the vouching group, which an administrator opens to them (admin voucher NAME on). whoami says whether you may, and why: may vouch: yes (in the vouching group), for example, or may vouch: no |
1. Getting your keys
You need two keys:
- an SSH key. It lets you in, and tells the site which account came in.
- a GPG key (also called a PGP key; GnuPG makes it). It signs every change you ask the site for, so that the site knows you asked for exactly that. Without one, your account can only look. It also signs your commits, so that the site can show that your work is yours. A site made with Folio imports only signed commits unless its administrators turned that off (section 5, "Signing your commits").
The site needs both for a change: someone who steals only your SSH key can look, but change nothing, and someone who has only your GPG key cannot get in.
Each key has two halves. The private half stays on your computer and is never sent anywhere. The public half is what you hand out.
Making them with folio-mykeys
folio-mykeys comes with the folio-client package (the desktop
program's package, folio-desktop, brings it along). Install it on your
own computer:
sudo apt install folio-client
folio-mykeys talks to no site; it only looks at and makes keys on your own computer. It never
replaces a key you have.
-
On your own computer, as yourself, run:
folio-mykeys -
For each key you do not have, it asks
You have no SSH key. Make one? [Y/n]orYou have no PGP key. Make one? [Y/n]. Press Enter for yes. -
For a PGP key it asks
Your name, as others should see it:andYour e-mail address:. These are written into the key, for others to see. -
Before it makes the first new key, it asks for a passphrase, at
Passphrase:and again atThe same again:. It asks once: if it makes both keys, the same passphrase locks both. The passphrase locks the new keys, so that a copy of the files is of no use to anyone else. Pressing Enter leaves them unlocked: then whoever gets the files can act as you. -
It shows what you now have, starting with
SSH key (it lets you in):and the file's name, thenPGP key (it signs every change you ask for, and your uploads):and its fingerprint (a long code that names the key).
| Key | Where it is |
|---|---|
| SSH, private | ~/.ssh/id_ed25519 (never give it to anyone) |
| SSH, public | ~/.ssh/id_ed25519.pub (the one you send) |
| PGP | in your GnuPG keyring, ~/.gnupg. Its fingerprint is noted in ~/.config/folio/pgp (a site may name another, kept in a GnuPG home folder of its own: see Using more than one site) |
Other things folio-mykeys does:
| Command | Does |
|---|---|
folio-mykeys show |
only shows your keys, and what to do with them |
folio-mykeys ssh |
makes the SSH key only |
folio-mykeys pgp |
makes the PGP key only |
folio-mykeys export |
prints your PGP public key, to send to a site |
folio-mykeys use FINGERPRINT |
if you have several PGP keys, chooses which one is yours for Folio: the one folio and the desktop program sign with |
Without folio-mykeys, ssh-keygen -t ed25519 makes the same SSH key.
Unlocking a key that has a passphrase
ssh asks for the passphrase each time it uses the key. The desktop program cannot ask, so load the key once per session, in a terminal:
ssh-add ~/.ssh/id_ed25519
It asks for the passphrase once. Until you log out, ssh and the desktop program use the key without asking.
For the GPG key, gpg-agent asks for the passphrase in a small window
when folio or the desktop program signs a change, and then remembers it
for a while.
2. Getting in
New people are let in by someone who is already there and may vouch. You need to know such a person; the site has no form to sign up with.
-
On your computer: send that person both your public keys, and the account name you would like: 3 to 32 lower-case letters, digits, or
. _ + -. The keys are your SSH public key file,~/.ssh/id_ed25519.pub, and your GPG public key, which this writes to a file:folio-mykeys export > me.asc -
On their computer: they run
cat id_ed25519.pub me.asc | folio vouch NAMEand see
Account NAME created (vouched for by THEM), with the GPG key FINGERPRINT.Check with them that the fingerprint is your key's. -
On your computer: check that you are in:
ssh folio@dur.example.org whoamiThe first time, ssh shows the fingerprint of the site's key and asks whether to trust it (see Checking the site's key below). Answer
yesonly if it is one of the site's own. You should see:account: NAME role: member joined: 2026-01-31 keys: 1 pgp: FINGERPRINTIf it shows
note: your account has no GPG key, so it can only look (see: help), the account was made without one: send your GPG public key to an administrator and ask them to set it (admin pgp NAME). -
See the commands your role may use:
ssh folio@dur.example.org help
If ssh answers Permission denied (publickey), see
Troubleshooting.
Setting up the folio command
folio sends the site's commands over ssh, as plain ssh does, but it
signs every command that changes something with your GPG key first. Tell
it where the site is, once:
folio --add-site dur --ssh folio@dur.example.org --port 22 --web https://dur.example.org
dur is the site's short name on your computer (letters, digits, -,
_ and dots). Run in a terminal without --ssh and --web, it asks for
each setting instead. The first site added is the one in use.
| Option | Means |
|---|---|
--ssh |
what you give to ssh to reach the site |
--port |
the site's SSH port |
--web |
the site's https address. It is needed: the first time, folio fetches the site's SSH keys from WEB/ssh-host-keys, keeps them in ~/.config/folio/trust/NAME/hosts/, and trusts no others |
--key |
optional: your SSH private key, for example ~/.ssh/id_ed25519 (not the .pub file), if not your usual one. It never leaves your computer: when you connect, the site sends a random challenge, your computer signs it with this key, and the site checks the signature with the public key it already has on your account. If you give the .pub file, folio keeps the private key file beside it instead and says which file it uses; only a .pub file with no private key beside it is refused |
--pgp |
optional: the fingerprint of the GPG key to sign with. Without it, folio signs with the key ~/.config/folio/pgp names, which folio-mykeys writes (folio-mykeys use FINGERPRINT changes it) |
--gnupg |
optional: the GnuPG home folder that key is in, if you keep it apart from ~/.gnupg. Then --pgp is needed too |
--name |
optional: the name shown for the site (in folio --sites and the desktop program) |
--ca, --ca-sha256 |
only for a site with its own certificate authority |
It writes the file ~/.config/folio/sites/dur, readable by you only:
[site]
ssh=folio@dur.example.org
port=22
key=
web=https://dur.example.org
The desktop program writes the same files when you click Site..., Add... there, so if you use it, there is nothing to add. Then try it:
folio whoami
folio help
Before it sends a change, folio asks the site which account you are
and which GPG key the account has, and checks that it is the key it
would sign with, and that your computer's clock is right (the site takes
a request only within five minutes of its own time). If anything is
wrong, it sends nothing and says why; see
Troubleshooting. folio --kind WORDS says whether a
command only looks or must be signed.
Using more than one site
You can keep several sites, each with its own keys: your own site and a
test site, say. Add each with folio --add-site NAME ...; then
| Command | Does |
|---|---|
folio --sites |
lists your sites; * marks the one in use |
folio --use NAME |
makes NAME the site in use, from now on |
folio --site NAME COMMAND... |
runs one command on the site NAME, whichever is in use (FOLIO_SITE=NAME folio COMMAND... does the same) |
folio --remove-site NAME |
forgets the site NAME on your computer, with the SSH keys and certificate authority kept for it. Nothing changes on the site |
For example, with your own keys for your site and a test account's keys kept apart for a test site:
folio --add-site test --name "Test site" --ssh folio@localhost --port 2226 \
--web https://localhost --key ~/test/keys/ssh/id_ed25519 \
--gnupg ~/test/keys/gnupg --pgp FINGERPRINT \
--ca ~/test/ca.crt --ca-sha256 FINGERPRINT-OF-THE-CA
folio --site test whoami
Each site's SSH keys are kept for it alone, in
~/.config/folio/trust/NAME/hosts/, so two sites with the same host name
never share them. A site with --gnupg is signed for with gpg pointed at
that folder (GNUPGHOME), for that site alone.
If you used folio before it knew several sites, your
~/.config/folio/site becomes the site default the first time you run
it, and it says:
folio: your site settings (~/.config/folio/site) are now the site "default" (~/.config/folio/sites/default); the old file was removed.
A site with its own certificate authority
A site's https address is vouched for by a certificate authority. Almost
every site's certificate comes from a public one, which your computer
already trusts, and needs nothing more. A site whose certificate comes from
an authority of its own (a test site, say) is reached only once you give
folio that authority, for that site alone.
Ask the site's owner for two things: the authority's certificate (a
file, often ca.crt), and its SHA-256 fingerprint, given to you in a way
you trust: in person, or read out on the phone, not in the same mail as
the file. (The owner sees it with
openssl x509 -in ca.crt -noout -fingerprint -sha256.) Then:
folio --add-site test --ssh folio@test.example.org --web https://test.example.org \
--ca ca.crt --ca-sha256 '3F:83:75:0A:...:2D:7B'
folio works out the fingerprint of the file itself and compares the
two; if they are not the same, nothing is kept:
folio: the fingerprints are not the same, so the certificate authority was not trusted: ....
Run in a terminal without --ca-sha256, it shows the file's fingerprint
and asks you to type or paste the one the owner gave you. A private key
is refused, and so is a file that is not one certificate.
Only then is the certificate copied to ~/.config/folio/trust/NAME/ca.pem,
with its fingerprint (ca-sha256=) in the site's file. From then on
folio fetches from that site with
curl --cacert ~/.config/folio/trust/NAME/ca.pem --capath /dev/null:
that authority alone, never the system's, and never for any other site.
It checks the file against the fingerprint each time it runs for the
site; if the file changed, it contacts nothing and says so:
folio: the certificate authority file of the site NAME (...) is not the one whose fingerprint was confirmed ....
Trusting an authority means that whoever holds its key can vouch for the
site's https address, so trust it only once its fingerprint is the one
the site's owner gave you.
Checking the site's key
The first time ssh reaches a server, it cannot tell whether that server is the site or someone in between, so it shows the server's key as a fingerprint and asks:
ED25519 key fingerprint is SHA256:CVYpUBmHbjdlUaVvk8umRnNrjXGFe2lKBsY3sDS5+vs.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
The site publishes its own keys on its pages, over https, which vouches for them as it does for the pages. Either way below works:
-
Compare. The site's home page shows the fingerprints of its keys, under "Take part". Answer
yesonly if the one ssh shows is among them, letter for letter. Otherwise answernoand tell the site's owner. -
Give ssh the keys first. Then ssh asks nothing, and refuses a server that shows another key:
curl -fsS --proto '=https' https://dur.example.org/ssh-host-keys >> ~/.ssh/known_hostsTo see the fingerprints of what you fetched:
curl -fsS --proto '=https' https://dur.example.org/ssh-host-keys | ssh-keygen -l -f -
If ssh later says REMOTE HOST IDENTIFICATION HAS CHANGED! or
Host key verification failed., the server showed another key than the
one ssh knows for the site. Do not remove the old key to make the message
go away: compare with the keys the site publishes, and ask the site's
owner. The desktop program does all of this by itself (see the
Desktop Program), and so does
folio: when the server shows a key it does not trust, it fetches the
site's keys again, and if the pages list other keys now (the owner changed
them, after a break-in or a move), it shows the fingerprints trusted until
now and the ones listed now and asks
Trust the new keys? Type yes, or anything else to keep the old ones:.
Answer yes only if they are the ones the owner gave you. Without a
terminal it says to run folio --site NAME --host-keys, which asks the
same.
3. Offering your projects
Your projects stay on your forge, as they are. You do not push anything to
the site, you do not need a debian/ folder, and you do not need to know
how Debian packages are made. The site fetches the source, works out how
to package it, and builds every new commit.
What a project needs
- To be in a repository on a forge that anyone can read, without signing in. The site has no password or key to show a forge.
- To say how it is built, in its top folder: a
Makefile(orGNUmakefile,makefile),meson.build,CMakeLists.txt, aconfigurescript orconfigure.ac, orpyproject.tomlorsetup.py. - No git submodules, and no single file larger than 20 MB.
- Links (symbolic links) only to files and folders inside the project,
written as a relative path with every
../at the start (../docs/README.md, not/home/you/README.mdordocs/../../x), and none indebian/. A project with another link is refused, for exampleREADME.md is a link that points outside the project (/home/you/README.md); links may only point inside it.
The site imports the repository's default branch, and only that.
Point the site at your forge account
This is the usual way: every repository of your forge account becomes a package, and so does every repository you add there later.
-
On your computer, run:
folio watch https://forge.example.org/you -
The site asks the forge which repositories that account holds, and imports each one. You should see:
The site now watches https://forge.example.org/you. Importing what is there: project 1.2 accepted: a new package, and you are its maintainer. other: not imported: cannot tell how this project is built: ... Done. Whatever you add or push there is imported within a few minutes. (What could not be imported, and why: imports)One line per project:
NAME VERSION accepted: ..., orNAME: not imported:and the reason. -
From then on there is nothing to type for a new commit. Push to your forge as always. Every two minutes the site looks; a new commit is imported and built, and a new repository becomes a package.
Things to know about watch:
- One account per person. A second
watchreplaces the first. - You become the maintainer of each package it makes. Nothing checks that the forge account is yours; watching someone else's makes you the one who answers for those packages here.
- Names. A package gets its repository's name in lower case, with
_turned into-. If that cannot be a package name, or someone else here already has a package of that name, the project is not imported andimportssays so. - At most 300 repositories of one account are looked at.
- It works with a Forgejo or a Gitea whose list of repositories can be read without signing in, and whose own idea of its address is the one you typed.
- A project that was turned down is tried again by itself when its repository has a new commit.
Follow one repository
For one repository, on any forge:
folio follow https://forge.example.org/you/project.git
The site imports it at once and shows what it found, for example:
project 1.2 accepted: a new package, and you are its maintainer.
commit: signed by a maintainer's key
packaging: written by the site, from the project as it is:
packaging written for project 1.2 (make, any, licence: Expat)
builds queued for: daedalus excalibur freia ceres
The site now follows https://forge.example.org/you/project.git: new commits there are imported within a few minutes.
If it is refused, the answer starts with folio: and says why. Fix the
project, push, and type the same follow again.
To choose the package's name: follow ADDRESS NAME. That does not help a
project with its own debian/ folder: its package name must be the one
its debian/control states.
| To | Type |
|---|---|
| see what was not imported, and why | ssh folio@dur.example.org imports |
| have the site look at your package's repository now | folio fetch PACKAGE (only for a package that exists already) |
| stop importing new commits of one | folio unfollow PACKAGE (the package stays) |
| stop watching your account | folio unwatch (the packages stay, and still follow their repositories) |
Projects found on the whole forge
A site can also look at a whole forge. Then your public projects there are
listed on its page "Found on the forge" as waiting. They are not built
until a maintainer or administrator lets them in. A package let in that
way has no maintainer; anyone with an account can take it on with
folio adopt PACKAGE, first come, first served. Or
watch your own account: then all of them are yours and need nobody's
go-ahead.
What the site works out, and from what
This is for projects without a debian/ folder.
| What | Where it looks |
|---|---|
| The version | .folio (version =); a VERSION file; VERSION = or PACKAGE_VERSION = in the Makefile; the version in meson.build, CMakeLists.txt, configure.ac or pyproject.toml; a line like #define NAME_VERSION "1.2" in the source |
| How to build and install | the build system's own rules. For a Makefile: make, then make install into /usr |
| What the build needs | the pkg-config modules it asks for, the libraries it links (-lXpm), and the #include <...> lines. Each is traced to the package that provides it, separately for every release, by the build node |
| What the program needs to run | the libraries the built program actually uses, found after the build |
| The description | .folio; NAME.desktop (its Comment); the first paragraph of the README |
| The licence | the LICENSE or COPYING file |
| Who it is by | the author of the newest commit |
Only real files are read. A file the site looks for that is a link
(say a README.md that links to doc/README.md) is taken as absent,
and the answer to the import says so:
README.md is a link, so it was not read (only the project's real files are).
The link itself stays in the source as it is. If the only file that says
how the project is built is a link, the project is refused:
Makefile is a link, and the site reads only the project's real files (a link could lead outside the project): make it a real file.
The package's page links to exactly what the site wrote ("see what it wrote"), and each build's log shows it again with the packages found for that release.
Versions
For projects without a debian/ folder:
- The first import of a version is exactly that version:
1.2. - More commits without raising the version count on from it:
1.2+r57.gabc1234(57 commits in the repository, then the commit's short name). apt sees each as newer than the last. - Raise the version in your source, and the next import is exactly the new version.
- An import must be newer than what the site has. Otherwise it is
refused with
this would be version ..., but the site already has ...: raise the version in the source. That can also happen if you rewrite history and the number of commits goes down. - A source that states no version at all is
0+r57.gabc1234.
For a project with its own debian/ folder, the version is the one in
its debian/changelog. It may not go lower than what the site has
(the same refusal). The same version again is taken, with the warning
the version is still X: computers that have it installed will not take this one (raise it in debian/changelog).
If the site has a suffix for a release, the build node adds it, so that
each release's build has a version of its own: 1.2 is built as
1.2+devuan6 for one release and 1.2+devuan5 for another.
When the site cannot know something
Most projects need nothing more. If the site guesses wrong, say so in a
small file called .folio in your project's top folder, one
key = value per line, with one space on each side of the =. All of it
is optional.
| Line | What it settles |
|---|---|
version = 1.2 |
the version. It wins over anything the source says |
description = One line about it |
the short description |
build-depends = flex, bison |
packages the build needs, added to those the site found (tools it runs, for example) |
depends = fonts-dejavu-core |
packages the program needs to run, beyond its libraries |
build = make release |
the command that builds it |
install = make install DESTDIR=$(D) PREFIX=/usr |
the command that installs it ($(D) is where the package is put together) |
build-system = make |
which to use if there are several: make, meson, cmake, autotools, python |
tests = yes |
run the project's tests during the build (off otherwise: they often need a display) |
releases = daedalus excalibur |
build only for these releases, separated by blanks. Each must be one the site builds for |
section, homepage, license, architecture |
as they say; see the Settings Reference |
A Makefile without an install rule. The site then installs what a
program of your project's name usually consists of:
| What | From (the first that exists) | To |
|---|---|---|
| the program | NAME, bin/NAME, build/NAME, src/NAME |
/usr/bin/NAME |
| the menu entry | NAME.desktop |
/usr/share/applications/ |
| the man page | NAME.1, doc/NAME.1, man/NAME.1 |
/usr/share/man/man1/ |
| icons, sizes 16 to 512 | artwork/NAME-icon-SIZE.png, icons/NAME-SIZE.png, icons/SIZExSIZE/NAME.png |
the icon theme, by size |
| the scalable icon | icons/NAME.svg, artwork/NAME-icon.svg, artwork/NAME.svg, NAME.svg |
the icon theme |
| the pixmap | artwork/NAME-icon-48.png, NAME.png |
/usr/share/pixmaps/NAME.png |
| the folders | icons, themes, shell, data, resources |
/usr/share/NAME/ |
If the build made no program called NAME in one of those places, the
build fails, and its log says
folio: the Makefile has no install rule, and the build made no program called NAME.
Give the Makefile an install rule, or use the install = line.
A project with its own debian/ folder
It is not repackaged: the site writes nothing for it. It is checked, and refused unless:
- it has
control,changelog,rulesandsource/format; - the format is
3.0 (native)or3.0 (quilt), and the version fits it (a quilt version has a dash, like1.0-1; a native one has none); - the
Source:name incontroland inchangelogis the package's name on the site; - it has a
Maintainer, and each package hasArchitectureandDescription; - no package it builds has the name of one that another package here builds;
- its version is not lower than the one the site has.
A line X-Folio-Releases: excalibur ceres in the first paragraph of
debian/control limits which releases it is built for. Each name must be
one the site builds for.
What happens after an import
-
One build is queued for every release the site builds for.
-
A build node fetches the source from your forge and builds it in a fresh, throwaway system. The Builds page shows each build and its log.
-
A build that worked goes into the apt archive. Which part, and when:
Your package is in It is published unsafe, the unreviewed partas soon as it is built main, the reviewed partonce an administrator or the owner has approved that upload, or at once if the owner imported it, or an administrator did to a package that is not the owner's. On the owner's package, only the owner's approval counts. Every new commit waits again Which part a package is in was decided when it was first imported: a member's is in
unsafe, a maintainer's, administrator's or owner's inmain. It does not change when your role changes; an administrator can move it.On a site that requires verified builds, nothing is published until a second build node has built the very same files.
-
If a build says "failed", the project did not build, or its source package could not be made, or the commit is no longer on your forge. Its log says which. (A forge that is down does not fail a build: it goes back to the queue. But the third time a build ends so, it is failed, with the note
tried 3 times without a result; last: ..., so that it does not hold up newer builds. Once the cause is gone,rebuild NUMBER.) If you turned mail on, you are told of a failed build; for a build someone else asked to have made again, both of you are, and the mail says who asked. -
If a build says "waiting", it needs a package that another project of this site builds, and that is not published for that release yet. Its note says which:
waiting for nslib, from this site, to be published for daedalus in main; it is built again once it is. You need do nothing: once that package is published, the build is queued again by itself (its note then saysbuilt again: nslib is published for daedalus now). A package the release itself does not have is no reason to wait: the build is failed, withneeds libwpewebkit-2.0-dev, which daedalus does not have. It can never build there. If the name is wrong, fix it (build-dependsin.folio, ordebian/control) and push; if the release does not have it, leave that release out (releases = ...in.folio, orX-Folio-Releases:indebian/control). For a project without packaging this is often found before the build:needs wpe-webkit-2.0.pc, which daedalus does not provide. The release may also have it but be unable to install it:needs NAME, which daedalus has but cannot install (apt: ...). -
A package in the reviewed part builds against the reviewed part only. It cannot use a package that is only in
unsafe.
Looking after your packages
| To | Type | Who may |
|---|---|---|
| release a new version | raise the version in your source, commit, push to your forge | |
| build something again | folio rebuild NUMBER (a finished build of the package's newest upload; the number is on the Builds page or in builds PACKAGE) |
maintainer, co-maintainers, administrators (on the owner's package, only its maintainers) |
| build the newest upload again, for every release | folio rebuild PACKAGE (for a package that has no builds, after a restore for example) |
maintainer, co-maintainers, administrators (on the owner's package, only its maintainers) |
| let others look after it too | folio comaintainers PACKAGE NAME NAME (replaces the list; no names empties it) |
maintainer |
| set words to find it by | folio keywords PACKAGE WORD WORD (at most 20, lower-case) |
maintainer, co-maintainers |
| take an "out of date" flag off | folio unflag PACKAGE |
maintainer, co-maintainers, whoever set the flag |
| turn down a request about your package | folio reject PACKAGE ID |
maintainer |
| give the package up | folio disown PACKAGE (your first co-maintainer takes over, if there is one; otherwise it has no maintainer) |
maintainer |
| take over one with no maintainer | folio adopt PACKAGE |
anyone |
4. Taking part
| To | Type |
|---|---|
| list every package | ssh folio@dur.example.org packages |
| read the comments on one | ssh folio@dur.example.org comments PACKAGE |
| vote for a package | folio vote PACKAGE |
| take your vote back | folio unvote PACKAGE |
| comment | folio comment PACKAGE, type your comment, then press Ctrl+D on an empty line |
| say a newer version of the software is out | folio flag PACKAGE what is newer |
| ask that a package be freed for adoption | folio request PACKAGE orphan why |
| ask that it be removed | folio request PACKAGE delete why |
| ask that it be folded into another | folio request PACKAGE merge OTHER why |
| see the open requests, with their IDs | ssh folio@dur.example.org requests |
| withdraw your request | folio reject PACKAGE ID |
A request is answered with Your request is open: PACKAGE ID. A
maintainer or administrator then carries it out or turns it down.
Limits: a comment is at most 5000 bytes; a reason at most 300 characters; one open request per package per person. There are also limits per hour, per account:
| Kind | At most, per hour |
|---|---|
| comments | 30 |
| votes and taking votes back | 200 |
| flags and unflags | 30 |
| requests | 10 |
| vouching | 20 |
follow and watch |
60 |
| adding or removing SSH or PGP keys | 20 |
mail set and mail confirm |
6 |
A site can change these. Administrators have none. Going over one says
that is N times in an hour, the most this site allows for this; try again later.
5. Your account
| To | Type |
|---|---|
| see your account | ssh folio@dur.example.org whoami |
| list your SSH keys | ssh folio@dur.example.org key list |
| add a key (another computer) | folio key add < other-key.pub |
| remove a key | folio key remove NUMBER (the number is in key list; your last key cannot be removed: it would lock you out) |
| replace your GPG key with a new one | `gpg --armor --export NEW-FINGERPRINT |
| see which PGP key the site has | ssh folio@dur.example.org pgp show |
| take it off | folio pgp remove (your account can then only look) |
A key that belongs to another account or a build node already is
refused. An account has one GPG key: from another computer you can look
with its SSH key alone, but to change things from there it needs your
GPG key too (gpg --export-secret-keys --armor FINGERPRINT here,
gpg --import there, then folio-mykeys use FINGERPRINT).
Your account's GPG key is the one the site checks every change against,
and the one your commits are checked against. Like every change,
pgp set must be signed, with the key you have now. So the order matters:
-
On your computer, make the new key with gpg, for example
gpg --quick-generate-key "Your Name <you@example.org>" ed25519 sign never(the kind of keyfolio-mykeysmakes;folio-mykeys pgpmakes none while you have one). Keep the old key there.gpg --list-secret-keysshows the new key's fingerprint. -
Send the new public key, signed with the old key:
foliosigns with the key~/.config/folio/pgpnames, which is still the old one.gpg --armor --export NEW-FINGERPRINT | folio pgp setYou should see
Your PGP key is now NEW-FINGERPRINT.and what to do next. -
From now on, sign with the new key:
folio-mykeys use NEW-FINGERPRINT
(folio-mykeys export prints the key folio-mykeys has chosen, which is
the old one until step 3, so it cannot send the new key.) If your account has
no GPG key (it was made before keys were needed, or the key was taken
off), you cannot set one yourself: a stolen SSH key would then be
enough. Send your public key (folio-mykeys export) to an administrator
and ask them to set it: admin pgp NAME. Do the same if your key was
lost or stolen. If your key ran out, renew it first
(gpg --quick-set-expire FINGERPRINT 2y), then send the renewed public
key to an administrator.
Signing your commits
A signed commit shows that the work is yours, and not only your forge account's.
-
Use the GPG key your account has (section 1).
whoamishows its fingerprint on thepgp:line. -
Have git sign every commit.
folio-mykeys showprints these two lines with your fingerprint filled in:git config --global user.signingkey FINGERPRINT git config --global commit.gpgsign true(Or sign one commit with
git commit -S.) -
Push as usual.
What the site does with it:
- Only the newest commit of an import is looked at.
- The package's page shows the verdict beside "Newest upload": "signed by
a maintainer's key", "signed by a key of none of its maintainers", or
"unsigned". (
followandfetchalso print it, ascommit: ....) - A signature that is wrong is always refused.
- A site may require signing, and a new site does (
signatures = required). Then only a commit signed by a key on your account, the maintainer's or a co-maintainer's is imported, byfollowandfetchas by the import every few minutes. Anything else is refused, andimportsshows why:unsigned commit: this site requires signed commits (git commit -S), orthe commit is signed, but by a key that is on none of its maintainers' accounts (pgp set; for someone who has no key or lost theirs, an administrator sets one: admin pgp NAME).
6. Mail
The site mails nobody unless they ask.
-
Give your address:
folio mail set you@example.orgYou should see
A code is on its way to you@example.org. When it arrives: mail confirm CODE. -
A mail with a code arrives. Send the code back:
folio mail confirm CODEYou should see
Notifications now go to you@example.org. -
To see where mail goes:
ssh folio@dur.example.org mail show. To stop:folio mail remove.
What you are then told about:
| When | Who is told |
|---|---|
| a comment, a flag or a request on a package | its maintainer and co-maintainers |
| a request was accepted | whoever asked, and the package's maintainer and co-maintainers |
| a request was turned down | whoever asked |
| an upload was approved | whoever imported it |
| a build failed, or a second node built different files | whoever imported that commit, and whoever asked for it to be built again |
| your role was changed | you |
an administrator set your account's GPG key (admin pgp) |
you |
You are never mailed about something you did yourself. Your address is kept apart from the public record and never shown.
If you become a maintainer
An administrator can give your account the role maintainer. A
maintainer can also:
| To | Type |
|---|---|
| carry out a request (not your own, and not on the owner's packages) | folio accept PACKAGE ID |
| turn any request down (but one on the owner's packages) | folio reject PACKAGE ID |
| see projects found on the forge | ssh folio@dur.example.org found |
| let one in | folio admit OWNER/PROJECT (or admit OWNER/PROJECT NAME for another package name) |
| turn one down | folio decline OWNER/PROJECT why |
Packages you import from then on start in the reviewed part. The ones you
had before stay where they are. In the reviewed part each upload of yours
waits until an administrator or the owner approves it (the page "Waiting
for review" lists it); approval is for that one upload, and the package's
next commit waits again. A maintainer does not approve uploads, not even
someone else's: approve answers only an administrator or the owner can approve an upload.
Using a site
Setting one up
Running one
- Owner and Administrator Guide
- Backup and Restore
- Settings Reference
- Command Reference
- Troubleshooting
Checking one