GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cognixws/software: Signed software catalog for COGNIX[WS]: reviewed entries, CI validation, Ed25519-signed index

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bundles
bundles
 
 
entries
entries
 
 
keys
keys
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
GUIDELINES.md
GUIDELINES.md
 
 
README.md
README.md
 
 

Repository files navigation

COGNIX[WS] software catalog

This repository is the signed registry behind Software › Catalog in COGNIX[WS]: the tools a person can install on their computer from the app, each with the official source it comes from and how the app checks it. It holds data, never installers: an entry names one of the app's drivers and fills its parameters.

  • entries/<area>/<id>.json — one file per entry; the area is its category.
  • bundles/<id>.json — one file per starter set.
  • catalog.json — not committed: node scripts/build.mjs assembles it from the two folders (entries by area, then id) and the publish workflow signs it.
  • scripts/validate.mjs — the schema the app enforces, plus --online (each entry against its official source; --entry FILE limits it to the entries a pull request changes) and --apt (each package in the distribution's archive). node --test scripts/*.test.mjs proves it refuses what the app refuses.
  • scripts/pr-policy.mjs — what a pull request may touch.
  • scripts/curate.mjs, scripts/urlcheck.mjs — the weekly refresh and the daily address check (below).
  • scripts/sign.mjs — signs the catalog into software-index.json.
  • keys/index.pub — the public key the app compiles to verify the index.
  • GUIDELINES.md — what a reviewer checks before an entry merges.

How a change reaches people

pull request ──▶ validate (what it touches · schema · official source of the changed entries · fingerprints · apt on Ubuntu 24.04 and Debian 12)
     │ human review (GUIDELINES.md), merge
     ▼
main ──▶ publish: validate every entry ▶ assemble entries/ + bundles/ ▶ serial = last release + 1 ▶ sign (Ed25519) ▶ release vN
                                                                    │ software-index.json, catalog.json
                                                                    ▼
COGNIX[WS] (on a visit to the Catalog, or Check for updates):
  download releases/latest/download/software-index.json over HTTPS
  ▶ verify the signature with the compiled key ▶ refuse a serial older than the one it has
  ▶ keep it as the catalog (cached; never in backups) — anything else: the catalog the app carries

The index is {"payload": base64, "signature": base64}. The payload is catalog.json with serial (strictly increasing) and issued stamped in; the signature is Ed25519 over the payload's exact bytes.

Upkeep (OD4)

Pinned versions and hashes are kept current by two scheduled workflows. Neither has the signing key and neither merges; that the curator cannot reach main is enforced by branch protection (require a pull request and the validate checks on main), which the repository must have before CURATOR_TOKEN is added, because a fine-grained token cannot be limited to curator/* branches:

Workflow When What it does
curate Mondays 06:00 UTC For each pinned github-release entry: a newer release that is at least 24 h old, whose assets exist and hash as GitHub says (and as the checksums file says, when named), whose license is the one recorded, and whose binary runs its version command in clean ubuntu:24.04 and debian:12 containers, moves the pin (version, sha256, updatedAt). One pull request, curator/weekly, with an audit table; a candidate that fails any check is held back and the old pin stays. node-dist and uv-tool pins are reported in the table, not changed. A maintainer merges it. In a week where candidates are only held back, or pins are only reported, there is no pull request: the issue labeled curator-notes carries the table.
urlcheck Daily 05:17 UTC Every address an entry stands on (homepage, each pinned asset per architecture, script, apt repository and key, packages, winget manifest). A broken one opens or updates the issue labeled broken-source; a clean day closes it. A bot wall or timeout is listed as unverified, not broken.

curate pushes with CURATOR_TOKEN, preferably a GitHub App installation token (a personal token makes its owner the author, who then cannot approve the pull request), for this repository with Contents and Pull requests write and nothing else. Without it the run stops before it changes anything. Its own GITHUB_TOKEN is read-only and the signing key lives only in publish's environment. Run either by hand from the Actions tab (curate takes a dry-run switch), or locally: node scripts/curate.mjs --dry-run --smoke (needs Docker for --smoke) and node scripts/urlcheck.mjs.

The signing key

The private key exists only as the secret SOFTWARE_INDEX_KEY of this repository's index-signing environment, which only main may use. Nobody holds a copy: it was generated straight into the secret. If it is lost or exposed, a new key is generated the same way, its public half is added to keys/index.pub and to the app's compiled list in a release, and the old one is dropped in the release after.

What the app takes from the index

Entries whose recipe is data run under the person's account — npm-global, github-release, vendor-script — come from the index: a merge here adds, changes or withdraws them for every installation. Entries whose recipe is the app's code or runs as administrator — cli (agent CLIs), setup, apt, apt-repo — are listed here too, and the app uses its compiled copy of them: a new one reaches people with the next COGNIX[WS] release.

Adding an entry

  1. Read GUIDELINES.md: only official sources, one sentence, an existing driver.
  2. Add one object to catalog.json and run node scripts/validate.mjs --online.
  3. Open a pull request. CI validates it; a maintainer reviews and merges; the merge publishes the next signed index.

About

Signed software catalog for COGNIX[WS]: reviewed entries, CI validation, Ed25519-signed index

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.