diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a30968..d46abea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,52 @@ All notable changes to SoftHarbor. The site is continuously deployed; a version marks a release announced in the repository (docs/13). Dates are UTC. +## [1.2.0] — 2026-10-23 + +Upkeep of everything behind the list — security checks that keep +themselves current, a newer toolchain, deeper code analysis — and the +catalogue's second batch. + +### Security status — what changed + +- **Re-checks are automatic now.** Every app's download page is re-scanned + on VirusTotal at least every 90 days, and the date on its security line + moves with it. Any warning moves an app back to "Unverified" and opens an + issue for the maintainer to look at; nothing is ever marked safe or + removed automatically. The note under "No known warnings" now says what + it rests on: the published checklist when the app was listed, and a scan + of its download page on the date shown. +- The first runs re-scanned 198 of the earlier apps, including eight whose + linked scan was of an older download link. Nine of them — 7-Zip, Android + Studio, DBeaver, DevToys, Helium, itch, KeePassXC, LuLu and Meld — drew a + single warning from one engine and show "Unverified" until the maintainer + has looked at each one. The remaining apps follow automatically from + 28 October. + +### Added + +- **38 apps** in a second batch — screenshot, clipboard and window tools, + package managers, file sharing and remote access, emulators, local AI, + CAD and 3D printing. The [RSS feed](https://softharbor.net/rss.xml) lists + each one. 30 of them carry "No known warnings"; 8 stay "Unverified" for + now, each for a stated reason. +- **Two categories:** Local AI and CAD & 3D (14 in all). + +### Changed + +- The AI Disclosure describes the automatic re-check and names the model + used for this release. +- Built and tested on **Node.js 26**; TypeScript files are now also + type-checked by **TypeScript 7**, beside the TypeScript 6 that Astro's + checker still needs. +- **SonarQube Cloud** analyses every change from CI, with test coverage — + which now also measures the build scripts and the in-page scripts. + +### Fixed + +- A malformed date in an app's data stopped the build with an unhelpful + error instead of naming the field. + ## [1.1.0] — 2026-10-21 A full review of the site after launch: security advisories closed, real diff --git a/docs/12_CI_CD.md b/docs/12_CI_CD.md index 499e500..4979d03 100644 --- a/docs/12_CI_CD.md +++ b/docs/12_CI_CD.md @@ -369,7 +369,10 @@ together on 2027-01-27. recorded scan was of (318 of 326 evidence ids equal the SHA-256 of that link's canonical form; 8 had drifted to a newer link). `POST /urls` submits it, a second pass reads `GET /analyses/{id}`, and the permalink is - `https://www.virustotal.com/gui/url/`. + `https://www.virustotal.com/gui/url/`. The canonical form keeps a + `#fragment`: the API puts it in the id (measured 2026-10-23), while the six + 2026-07-30 scans of `#download` links were submitted from a browser, which + never sends one — those six count as drifted until their next scan. - **What it writes:** only the three `security` lines, patched in place so Prettier's layout survives; never `addedAt`/`updatedAt` — the feed orders by `addedAt`, and notify.py announces anything it has not seen. diff --git a/docs/13_RELEASE.md b/docs/13_RELEASE.md index 7233e2e..6bf3d47 100644 --- a/docs/13_RELEASE.md +++ b/docs/13_RELEASE.md @@ -6,6 +6,8 @@ The **site** deploys continuously from `main` — no version numbers on content. Git tags mark milestones only: **`v1.0.0`** at public launch (tagged and released 2026-07-30), **`v1.1.0`** for the post-launch review (tagged and released 2026-10-21; `package.json` `version` follows the tag), +**`v1.2.0`** for the upkeep release — re-check automation, Node 26 / +TypeScript 7, CI-based SonarQube Cloud, catalogue batch 2 (2026-10-23), minor tags when a feature phase ships. Publishing a GitHub Release fires `notify.yml` → Discord (docs/12 §2). Data changes never tag. `CHANGELOG.md` (Keep-a-Changelog, dates UTC) records feature work and anything a visitor diff --git a/docs/15_ROADMAP.md b/docs/15_ROADMAP.md index 19e7d89..1c6182d 100644 --- a/docs/15_ROADMAP.md +++ b/docs/15_ROADMAP.md @@ -12,12 +12,21 @@ | **M5 — Resilience & pipes** | 404/offline/PWA, dormant errors, /api/apps.json, rss, bug-report button, _headers (08, 09) | launch-checklist infra section fully green | 2–3 d | ✅ | | **M6 — Ship** | CI/CD wiring, branch protection, 30 seed apps, checklist, v1.0.0 (12, 13) | public announcement sent | 3–4 d | ✅ 2026-07-30 — v1.0.0 tagged and released with 326 apps | | **M7 — v1.1 review** | post-launch audit: native view transitions, CSP-first head, Harbor UI, display menu, search/URL state, data rules, Playwright e2e, Dependabot; Turnstile + `/api/verify` Worker (D25), Web Analytics (D26), contacts (D27), legal rewrite (all docs) | every gate green in CI; production verified after merge (docs/13 §3) | — | ✅ 2026-10-21 — PRs #23–#25 merged and deployed; v1.1.0 released | +| **M8 — v1.2 upkeep** | VirusTotal re-check automation (D30), SonarQube Cloud CI analysis with coverage (D29), Node 26 + TypeScript 6/7 (D28), catalogue batch 2 + two categories (D31) | every gate green in CI, Sonar gate passed; production verified after each merge (docs/13 §3) | — | ✅ 2026-10-23 — PRs #28 #29 #30 #31 #32 and the release PR merged; v1.2.0 released | Total ≈ 17–20 focused days, **plus ~1 day for the `softharbor.net` domain package** (docs/16 §10) slotted between M5 and M6. Data entry (M6) parallelizes with earlier milestones once M2 lands. -**Where it stands (2026-10-21).** v1.0.0 shipped on 2026-07-30: 326 apps in +**Where it stands (2026-10-23).** v1.2.0, released 2026-10-23: **364 apps in +14 categories**, 341 `clean` and 23 `unverified` — each with its VirusTotal +scan linked and re-scanned at least every 90 days by `vt-recheck.yml` +(D30; nine popular apps went `unverified` on a single engine's warning in +the first run and wait for the maintainer's triage, issues #33–#41). CI adds +a `sonar` job (D29) and type-checks `.ts` with TypeScript 7 (D28); the +build covers 781 pages. + +*Where it stood (2026-10-21), for the record:* v1.0.0 shipped on 2026-07-30: 326 apps in 12 categories, 320 `clean` and 6 held at `unverified`, every one with its scan linked. v1.1.0 (`package.json` 1.1.0, CHANGELOG.md), released on 2026-10-21, is the post-launch review recorded in §4's 2026-10-21 rows. diff --git a/package.json b/package.json index 632f132..18008d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "softharbor", - "version": "1.1.0", + "version": "1.2.0", "private": true, "type": "module", "description": "Bilingual (EN/VI) directory of free and buy-once desktop software", diff --git a/scripts/vt-recheck.mjs b/scripts/vt-recheck.mjs index ce54f8e..0d67318 100644 --- a/scripts/vt-recheck.mjs +++ b/scripts/vt-recheck.mjs @@ -63,14 +63,14 @@ export class AuthError extends Error {} /** * VirusTotal's URL identifier is the SHA-256 of its canonical form. WHATWG - * parsing does what the catalogue's 326 recorded scans show it does: - * lowercase scheme and host, an empty path becomes "/", the query is kept — - * and the fragment, which a browser never sends, is dropped. + * parsing does what the recorded scans show: lowercase scheme and host, an + * empty path becomes "/", the query is kept — and so is the fragment. The + * API keeps `#download` in the id (measured on the first batch-2 run, 2026-10-23); + * only the 2026-07-30 scans, submitted from a browser that never sends the + * fragment, lack it, so those six entries count as drifted until re-scanned. */ export function canonicalUrl(raw) { - const url = new URL(raw); - url.hash = ''; - return url.href; + return new URL(raw).href; } export const urlId = (raw) => createHash('sha256').update(canonicalUrl(raw)).digest('hex'); diff --git a/scripts/vt-recheck.test.ts b/scripts/vt-recheck.test.ts index dbdafcd..867d8da 100644 --- a/scripts/vt-recheck.test.ts +++ b/scripts/vt-recheck.test.ts @@ -161,20 +161,32 @@ afterEach(() => { }); describe('canonicalUrl / urlId — VirusTotal URL identifiers', () => { - it('reproduces the ids recorded in the catalogue', () => { - // Three real entries: a plain page, a bare origin and a #fragment link. - for (const slug of ['7-zip', 'homebrew', 'vlc']) { - const app = JSON.parse( - readFileSync(join(process.cwd(), `src/data/apps/${slug}.json`), 'utf8'), - ); - expect(app.security.evidence, slug).toBe(`${GUI}${urlId(app.links.download)}`); - } + it('reproduces ids VirusTotal recorded', () => { + // Constants, not the live data files: the bot rewrites those, and a data + // PR that moves a link must not fail a unit test (docs/04 §5 example). + expect(urlId('https://www.7-zip.org/download.html')).toBe( + '273d0beedb411e020dd6ce34a46330b626a4ed56df427f806c4c552ea5c287e7', + ); + // A bare origin gets its root path. + expect(urlId('https://brew.sh')).toBe( + 'fea617439e19357bfe0e6404897583535935265b1301c5e3c5bdc8313fa7e697', + ); }); - it('lowercases the host, adds the root path, drops the fragment and keeps the query', () => { + it('keeps the fragment, as the API does', () => { + // Ids VirusTotal's API returned for two batch-2 links on 2026-10-23. + expect(urlId('https://flameshot.org/#download')).toBe( + '95707fe983a07c4a17ea04b94ce50a9397bfe77002a56fb064015cda3273487a', + ); + expect(urlId('https://reshade.me/#download')).toBe( + '7db7d74ab8287c611844154d1f0d915b1dd92cce3ccfbf3f09178c0797be1d36', + ); + }); + + it('lowercases the host, adds the root path and keeps query and fragment', () => { expect(canonicalUrl('HTTPS://Brew.SH')).toBe('https://brew.sh/'); expect(canonicalUrl('https://www.videolan.org/vlc/#download')).toBe( - 'https://www.videolan.org/vlc/', + 'https://www.videolan.org/vlc/#download', ); expect(canonicalUrl('https://x.test/get?os=win')).toBe('https://x.test/get?os=win'); expect(canonicalUrl('https://x.test/download/')).not.toBe( @@ -195,19 +207,22 @@ describe('parseSlugs', () => { describe('patchSecurity', () => { it('changes the three security lines of a real entry and not one byte more', () => { + // The real file's layout, whatever its security values are today (the + // bot changes them): the patch picks values that differ from all three. + const current = (JSON.parse(SEVEN_ZIP) as { security: Security }).security; const security = { - status: 'unverified', + status: current.status === 'clean' ? 'unverified' : 'clean', evidence: `${GUI}${'f'.repeat(64)}`, - checkedAt: TODAY, + checkedAt: '2000-01-01', }; const before = SEVEN_ZIP.split('\n'); const after = patchSecurity(SEVEN_ZIP, security).split('\n'); expect(after).toHaveLength(before.length); const changed = before.flatMap((line, i) => (line === after[i] ? [] : [after[i]])); expect(changed).toEqual([ - ' "status": "unverified",', + ` "status": "${security.status}",`, ` "evidence": "${GUI}${'f'.repeat(64)}",`, - ` "checkedAt": "${TODAY}"`, + ' "checkedAt": "2000-01-01"', ]); });