chore: remove the legacy name and guard against it #400

Sammanfogat
supernaut sammanfogade 2 incheckningar från chore/drop-legacy-name in i main 2026-10-17 21:12:16 +00:00
Ägare

Removes the legacy name from the repo and adds a CI guard against it (ADR 0043).

Changes

  • .env.example: dev database is bitborg_web, matching prod. Recreate or rename your local database.
  • package.json: mkcert drops gitborg.se.localhost. Version 1.44.1.
  • Comments, a design doc and an email test fixture are reworded. The sender-domain regression test still asserts not-allowed.
  • scripts/check-content-style.mjs: pnpm lang-check with no arguments scans every tracked file and fails on the legacy name outside LEGACY_ALLOWLIST. The old permanent exemptions are gone.

Allowlist

File Reason
astro.config.mjs old-domain image and CSP entries, until bitborg-infra#587
scripts/check-content-style.mjs and its test define and test the guard
src/lib/identity-rules.ts and its test legacy names stay reserved against sign-up
src/lib/security-txt.test.ts asserts security.txt never names it

Checks

lang-check, check, eslint, stylelint, format, mdlint and test all pass locally. A planted hit in README.md fails lang-check with exit 1. The guard runs in CI only, not in pre-commit.

Closes #315
Closes #316

Removes the legacy name from the repo and adds a CI guard against it (ADR 0043). ## Changes - `.env.example`: dev database is `bitborg_web`, matching prod. Recreate or rename your local database. - `package.json`: mkcert drops `gitborg.se.localhost`. Version 1.44.1. - Comments, a design doc and an email test fixture are reworded. The sender-domain regression test still asserts `not-allowed`. - `scripts/check-content-style.mjs`: `pnpm lang-check` with no arguments scans every tracked file and fails on the legacy name outside `LEGACY_ALLOWLIST`. The old permanent exemptions are gone. ## Allowlist | File | Reason | | --- | --- | | `astro.config.mjs` | old-domain image and CSP entries, until bitborg-infra#587 | | `scripts/check-content-style.mjs` and its test | define and test the guard | | `src/lib/identity-rules.ts` and its test | legacy names stay reserved against sign-up | | `src/lib/security-txt.test.ts` | asserts security.txt never names it | ## Checks lang-check, check, eslint, stylelint, format, mdlint and test all pass locally. A planted hit in `README.md` fails lang-check with exit 1. The guard runs in CI only, not in pre-commit. Closes #315 Closes #316
supernaut lade till 2 incheckningar 2026-10-17 21:05:02 +00:00
Drop the legacy name from the dev DATABASE_URL, the mkcert script, the
email sender-domain comment and fixture, and the OIDC review doc.

lang-check now scans every tracked file for the name and fails outside
an explicit allowlist. The old permanent hostname and database
exemptions in the brand rules are removed (ADR 0043). The reserved
sign-up names, the guard and its test, the security.txt assertion and
astro.config.mjs (until bitborg-infra#587) stay allowlisted.

Closes #315
Closes #316
chore: rewrap sender-check comment
Alla kontroller lyckades
ci / ci (pull_request) Successful in 6m43s
c2f34d38a7
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-17 21:08:23 +00:00
supernaut sammanfogade incheckning f7b854fc82 till main 2026-10-17 21:12:16 +00:00
supernaut tog bort grenen chore/drop-legacy-name 2026-10-17 21:12:17 +00:00
supernaut refererade denna ändringsförfrågan från en incheckning 2026-10-17 21:12:18 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-web!400
Ingen beskrivning angiven.