_Sidebar
liquibyte edited this page 2026-11-25 20:36:43 -06:00

Page revisions

2 Commits

Author SHA1 Message Date
a39dc8d0da security: every change signed by whoever made it, https only, key rotation, pinned host keys, hardened builds, folio-audit
- Signed changes: every door command that changes anything must come as
  a request signed with the person's own GPG key (folio-request 1: the
  site, the account, the exact command, the input's sha256, the time, a
  one-time nonce). The door checks the signature against the account's
  key in the record, that the SSH account and the signer are the same,
  the site, a five-minute window and that the nonce is new, before it
  runs anything. A stolen SSH key alone changes nothing. Read-only
  commands still work with plain ssh. Each change keeps its signed
  request in the record commit (Acted-by:, Request:).
- New package folio-client: the folio command (signs through gpg-agent,
  pins the site's SSH keys) and folio-mykeys; folio-desktop depends on
  it and signs every change itself.
- Keys: the owner's GPG key is required at install (folio-setup
  --owner-pgp for an older site or a lost key); vouch and admin node add
  take an SSH key and a GPG key; admin pgp sets someone's key; an account
  without one can only look.
- Build nodes have their own GPG key and sign every claim and result;
  the node door checks the result's sha256 before unpacking it, and
  folio-publish refuses a result that was not signed.
- The site's own changes name what authorised them (Authorised-by:,
  Source-commit: HASH signed-by FPR); record/verify/site-key.asc.
- folio-audit (in folio-client): checks a copy of the record with only
  public keys: every site signature, every person's request, that what
  each change touched fits the command signed, the trailers of the
  site's own changes, and with --builds the nodes' signed results.
  New wiki page Auditing a Site.
- https only: every address the site or a node fetches from must be
  https (follow, watch, watch-forge, mirrors, registry-to, the site's
  address, the distribution mirror, the node's clone); http and git
  addresses are refused, with no loopback exception; every curl is held
  to https; folio-install has no plain-http choice. The default mirror
  is https://pkgmaster.devuan.org/merged (deb.devuan.org's certificate
  does not cover its name).
- Host keys: the site publishes its SSH host keys at /ssh-host-keys
  with their fingerprints on its pages; the desktop program, the folio
  command and build nodes pin them (no trust on first use). The forge's
  SSH key is confirmed by an administrator's fingerprint before the site
  sends anything (admin publish-to ADDRESS FINGERPRINT).
- Key rotation: the site publishes its keyring package (WORD-archive-
  keyring), which apt keeps up to date; folio-key new-signing-key,
  switch (also after signing-key-overlap), revoke-old, renew, emergency;
  signing keys run out (signing-key-lifetime) and are renewed ahead.
  setup.sh needs gpg (or --no-check), installs the keyring package and
  writes no deb-src line.
- admin verify: strict across rotations; changes signed with a stolen
  key before its revocation fail until the owner has reviewed them
  (admin verify accept); a signed log of key changes. While the signing
  key has run out or is revoked, the site takes no changes.
- Review: signatures = required on a new site; only the owner approves
  the owner's work; administrators approve their own and others' but
  not the owner's; maintainers and members always need an
  administrator or the owner; rebuild keeps the uploader and records
  rebuilt-by, so it approves nothing.
- Builds: a build that can never succeed on a release fails with the
  reason (needs X, which RELEASE does not have); one waiting for a
  package of this site is built again when that is published; .folio
  releases =; three node errors in a row make a build failed; a clone
  failure is the node's error; caches unused for over a week are
  deleted; links that leave the project are refused.
- Hardened builds: CPPFLAGS and LDFLAGS reach the compiler,
  _FORTIFY_SOURCE=3, stack protector, stack clash, CET, PIE, relro and
  now; -Wconversion and the stricter warnings, fixed without casts;
  make analyze, cppcheck, test-asan, fuzz-search, fuzz-record. Fuzzing
  and the sanitizers found a heap over-read in folio-generate and two
  cases of undefined behaviour in folio-search; all fixed.
- Desktop program: refuses to send a private key; runs ssh, gpg and curl
  by full path; the Site dialog has the web address and the site's
  fingerprints; owner-only Accept doubted changes; tooltips that say
  what each button does.
- Erasing also removes refused imports, needed-package notes, pages and
  signed requests that name what was erased; rate limit for imports
  (limit-import); admin move moves what is published; admin set of the
  address rewrites setup.sh; a failed setup takes away what it made.
- Docs: the wiki checked against the code and rewritten to explain what
  each thing is and how the steps go; new Quick Start and Auditing a
  Site; doc/design, INSTALL, packaging and erasing as .md and .html
  (doc/doc.css); the on-site guides.
- Tests: make test passes 1362 and 102 desktop checks; make test-all
  passes 1313. tools/folio-local is replaced by the security-test setup.
2026-11-25 20:36:43 -06:00
fe6369aa69 docs: wiki checked against the code; backup, key and erase fixes; removing builds 2026-11-25 00:33:34 -06:00