Commit Graph
3 Commits
Author SHA1 Message Date
grabowski e5e30c977c Lanna Desk: the app's name, for its move to lannadesk.com
CI / secret scan (push) Successful in 9s
CI / fmt, clippy, tests (push) Successful in 46s
CI / release (push) Skipped
The header (staff pages, messages and the client link), page titles,
footer, messages, the pack's cover line and the PDFs' creator now say
Lanna Desk (lannadesk.com) instead of visa.buildfor.life. The company
named in the client's texts and agreements stays B4L. Nothing depends on
the name the app is reached under: VISA_PUBLIC_URL comes from the fleet,
which moves it to https://lannadesk.com and redirects visa.buildfor.life
there with the path, so links already sent keep working.

README, AGENTS, PLAN and the release notes name the new address.

Checks: fmt, clippy, 108 unit and 57 integration tests; the header at
360 and 390 px and on a desktop.
2026-11-21 19:28:34 +07:00
grabowski 0d3b2d8b84 Releases for cnx01: every push to main becomes a signed release
CI / secret scan (push) Successful in 5s
CI / fmt, clippy, tests (push) Successful in 35s
CI / release (push) Skipped
As thukthuk and lampbench-web: once the checks pass on a push to main, the
CI job `release` reserves the next CalVer version (YYYY.M.MICRO, Bangkok
time) with a draft release, builds the server on Ubuntu 22.04 (glibc 2.35)
with that version and the commit (`VISA_COMMIT`), packs bin/visa, VERSION
and COMMIT as visa-linux-x86_64.tar.gz, signs it with the repository secret
RELEASE_SIGNING_KEY (ssh-keygen, namespace visa-release, principal visa-ci;
checked against release/allowed-signers before it is published) and
publishes the release. cnx01 will install a release only with that
signature (cnx-network-clan modules/visa, in a PR of its own).

- .gitea/scripts/release.py and test_release.py from lamp-testbench (the
  same reserve/publish/discard and version order), with visa's one archive;
  sign-release.sh; build-release.sh. The release scripts' tests run in the
  check job.
- `visa --version` (and `visa version`): "visa <version> (<commit>)", which
  CI and cnx01's fetch check.
- The key was made locally, put into the secret through the API and
  deleted; only its public half is in the repo.
- README, AGENTS (main is live: push only whole steps), PLAN's decisions.

Checks: fmt, clippy; test_release.py 14 tests OK in WSL; `visa --version`.
2026-11-20 17:06:14 +07:00
grabowski 2e009700a9 Phase 1: app, Kanidm login, people, passports, addresses, audit log
CI / secret scan (push) Successful in 4s
CI / fmt, clippy, tests (push) Successful in 42s
visa.buildfor.life keeps the immigration records of the foreigners B4L
looks after. This first phase is the base the deadlines and extension
packs build on (docs/PLAN.md, phases 2 to 7).

- One Rust binary (axum 0.8, minijinja, sqlx on PostgreSQL) with its
  templates, static files and migrations compiled in.
- Login through Kanidm (OpenID Connect with PKCE and a nonce, ES256),
  client visa-web, group visa; sessions in PostgreSQL keyed by the
  SHA-256 of the cookie. VISA_INSECURE_NO_LOGIN=1 for loopback
  development only.
- Same-site check and form token on every POST; a CSP without inline
  script or style; security headers.
- People: list with filter, page, create, edit, archive, restore.
- Passports from the machine-readable zone with check digits (ICAO
  9303 TD3); expiry warnings at 12 and 6 months.
- Addresses in Thailand in the order Thai forms use, with the house
  master and the TM.30 receipt.
- Append-only audit log of every view and change, with the names of the
  changed fields but never their values (PDPA); the Activity page.
- Invented demo people (visa seed-demo, refused when login is on).
- 40 tests: unit tests, pages with demo data, the forms, the audit log
  and the whole login against a fake OpenID provider.
- CI: gitleaks over the history, fmt, clippy and the tests against
  PostgreSQL 18; the pre-commit secret scan.
2026-11-17 16:58:48 +07:00