Collection of trusted publishers. This collection builds the foundation of limedoc's pack-trust policy.
  • Shell 61%
  • TypeScript 39%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-06 12:38:54 +00:00
.forgejo/workflows CI: pin the pack signing image to limedoc-dev 0.28.0. 2026-10-28 07:37:30 +01:00
.githooks Keep format excludes when skipping CI signature sidecars. 2026-10-17 11:17:17 +02:00
scripts Publishers name their package registries; empty revocation list (Limedoc ADR 0006). 2026-11-06 11:28:29 +00:00
.gitignore Registry preparation 2026-08-24 19:41:24 +02:00
LICENSE.md Name Oliver Maklott (Belowtoxic e.U.) as the FSL licensor. 2026-10-17 11:13:16 +02:00
publishers.json Publishers name their package registries; empty revocation list (Limedoc ADR 0006). 2026-11-06 11:28:29 +00:00
publishers.json.sig.json ci: update publishers.json.sig.json [skip ci] 2026-11-06 12:38:54 +00:00
README.md Publishers name their package registries; empty revocation list (Limedoc ADR 0006). 2026-11-06 11:28:29 +00:00

Limedoc trust registry

Vetted publisher public keys for Limedoc pack verification. The app syncs this file (lazy, max age 24h) and verifies it with the trust-root key baked into release-trust.json.

Files

File Purpose
publishers.json Publisher ids, tiers (core | partner), Ed25519 public keys
publishers.json.sig.json OpenBao Transit signature over the canonical hash (written by CI)
scripts/canonical_hash.ts Offline hash helper (sorted-key JSON + trailing LF)

Raw URLs (baked into Limedoc images)

https://git.belowtoxic.cloud/limedoc/limedoc-trust/raw/branch/main/publishers.json
https://git.belowtoxic.cloud/limedoc/limedoc-trust/raw/branch/main/publishers.json.sig.json

OpenBao

Item Value
JWT role limedoc-registry-trust
Bound repo limedoc/limedoc-trust (ref refs/heads/main)
Transit key / keyId limedoc-registry-trust-2026
Sign input UTF-8 bytes of the 64-char lowercase hex hash

Sign encoding matches Limedoc lib/trust/signature.ts (strip vault:vN: prefix from Transit output before writing signature).

CI

On push to main (or manual Run workflow on main), .forgejo/workflows/publish.yml:

  1. Lint publishers.json (schema + fingerprint check via limedoc-dev when available)
  2. Hash via /limedoc/scripts/trust_hash_registry.ts (schema-normalized; matches app verify)
  3. JWT login → Transit sign
  4. Commit/push publishers.json.sig.json so the raw URL stays current

Secret: PACKAGE_TOKEN — Forgejo token with write access to this repo (same convention as pack publish workflows).

PRs only lint; they do not sign or commit. Manual runs on main sign and commit like a push.

Rotation

  1. Add the new public key to publishers.json (keep the old key during grace).
  2. Merge to main so CI resigns.
  3. After grace, remove the old key and merge again.

See Limedoc docs/security/TRUST_ROLES_AND_ROTATION.md and docs/security/OPENBAO_SIGNING.md.

Local hash

Authoritative hash (matches app verify) requires the Limedoc tree / limedoc-dev image:

deno eval '
  import { assertPublishersRegistry } from "/limedoc/lib/trust/registry_schema.ts"
  import { hashRegistry } from "/limedoc/lib/trust/registry.ts"
  const r = assertPublishersRegistry(JSON.parse(await Deno.readTextFile("publishers.json")))
  console.log(await hashRegistry(r))
'

scripts/canonical_hash.ts hashes the raw file as-is (useful for catalogs / sanity). It can differ from hashRegistry after schema normalization — CI signs the normalized hash.

License

This repository is source-available under the Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2). Copyright 2026 Oliver Maklott (Belowtoxic e.U.).

You may use, modify, and redistribute it for any purpose other than a Competing Use. Two years after a version is made available, that version is also licensed under the Apache License 2.0.

Store discovery and revocation

Since Limedoc 0.62.0 (ADR 0006) there are no store catalogs. Each publisher may name its package registry ({"provider":"forgejo-generic","baseUrl":"https://…","owner":"…"}); the store lists packs from there and offers a version only when its <id>-<version>.meta.json is signed by one of the publisher's keys within its kinds / idPrefixes.

To withdraw a pack, add to revoked and bump updatedAt:

{ "kind": "plugin", "id": "callout", "versions": ["0.4.2"], "reason": "…" }

Without versions and sha256 every version is revoked. Revoked packs are not offered and installed ones are refused at load (PACK_REVOKED).