Phase 3: live on cnx01 at visa.buildfor.life
CI / secret scan (push) Successful in 4s
CI / fmt, clippy, tests (push) Successful in 21s

The app runs on cnx01 behind the Kanidm login (group visa), on the
database visa of cnx01's PostgreSQL, published by bkk01
(cnx-network-clan PR #121, modules/visa, runbook docs/src/visa.md).

- docs/PLAN.md: phase 3 done; the repository is public (decided Nov 17,
  2026), so the fleet needs no read token; the dataset zroot/visa and the
  file key move to phase 4, which builds the uploads that use them;
  backups go to juliet. Resume here: phase 4.
- README: where it runs, who gets in, how a release reaches cnx01.
This commit is contained in:
grabowski committed 2026-11-17 20:10:15 +07:00
1 parent 2b1954a552
commit 38070ee135
2 files changed
+30 -20

No files matched your search

+19 -16
View File
@@ -1,6 +1,7 @@
# visa.buildfor.life: plan
> Phases 1 and 2 built on November 17, 2026. **Resume here: phase 3, task 3.1.**
> Phases 1 to 3 built on November 17, 2026; the app is live at
> https://visa.buildfor.life. **Resume here: phase 4.**
visa.buildfor.life keeps the immigration records of the foreigners that B4L
looks after: their passports, addresses in Thailand, arrivals with the Thailand
@@ -21,13 +22,13 @@ The first round of questions was answered on November 17, 2026.
| Question | Decision |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Where it runs | cnx01, installed on the host like proplan and lampbench: database `visa` on cnx01's PostgreSQL, files in a ZFS dataset, encrypted by the app, borg backups to control |
| Where it runs | cnx01, installed on the host like proplan and lampbench: database `visa` on cnx01's PostgreSQL, files in a ZFS dataset, encrypted by the app, borg backups to juliet |
| How it is published | bkk01 publishes `visa.buildfor.life` through a `modules/web-sites` app entry |
| Login | Kanidm at id.cnx.network, OAuth2 client `visa-web`, group `visa` with grabowski and oltmanns |
| Who sees what | every member of `visa` sees and edits every record, as agency staff would; a view for clients comes later |
| First extension pack | Non-B with a work permit, employer B4L, at Chiang Mai Immigration |
| Reminders | the dashboard first; later a Matrix room message and an email to the person concerned |
| Repository | private `B4L/visa`; the fleet then needs a read token for its flake input |
| Repository | public `B4L/visa` since Nov 17, 2026: it holds code and invented demo data only, so the fleet fetches it like proplan |
| Employers | companies are records of their own under Companies; a person's employer and a work permit's employer are chosen from them, and a company's page adds people to it |
Kanidm keeps persons, groups and OAuth2 clients in one namespace, so the
@@ -156,8 +157,8 @@ dark at desktop and phone width, a commit and a push.
| ----- | --------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| 1 | App, Kanidm login, people, passports with MRZ reading, addresses in Thailand, audit log, demo data, CI | built Nov 17, 2026 |
| 2 | Companies; stays: visas, arrivals with TDAC, extensions, re-entry permits, 90-day reports, work permits; deadlines | built Nov 17, 2026 |
| 3 | On cnx01: flake package, fleet module, Kanidm client and group, bkk01 site, backups; real data from here on | **next** |
| 4 | Documents: encrypted uploads (passport pages, TDAC, receipts, photo), viewing and download, all audited | |
| 3 | On cnx01: flake package, fleet module, Kanidm client and group, bkk01 site, backups; real data from here on | live Nov 17, 2026 |
| 4 | Documents: encrypted uploads (passport pages, TDAC, receipts, photo) on the dataset `zroot/visa` with a key var, viewing and download, all audited | **next** |
| 5 | Filled-in forms: TM.7, STM.2, the overstay acknowledgment, TM.47, TM.8 and STM.1 as PDF | |
| 6 | The Non-B extension pack: B4L's company documents, the checklist, one PDF to print | |
| 7 | Reminders by Matrix room message and by email | |
@@ -204,17 +205,19 @@ one `Kind`.
### Phase 3: on cnx01
- [ ] 3.1 `flake.nix` with `packages.visa` (crane), built in WSL against the
fleet's nixpkgs.
- [ ] 3.2 Fleet module `modules/visa` (roles `enable` on cnx01 and
`kanidmClient` on web01), database `visa`, dataset `zroot/visa`, vars
`visa-oidc` and the file key, `visa-admin`, VM test `checks.visa`;
group `visa` in `identity/`.
- [ ] 3.3 The flake input needs a read token for the private repository:
decide between a Nix `access-tokens` clan var and a CI-published
package.
- [ ] 3.4 `sites.nix` entry `visa` on bkk01, the A record, deploys on Alex's
go.
- [x] 3.1 `flake.nix` with `packages.visa` (crane), built in WSL against the
fleet's nixpkgs (Rust 1.95): a 9.8 MB binary, 58 MB with its closure.
- [x] 3.2 Fleet module `modules/visa` (roles `enable` on cnx01 and
`kanidmClient` on web01), database `visa` on cnx01's PostgreSQL, vars
`visa-oidc` and `postgres-visa`, `visa-admin`, VM test `checks.visa`;
group `visa` in `identity/`. The dataset `zroot/visa` and the file key
move to phase 4, which builds the uploads that use them.
- [x] 3.3 Decided on November 17, 2026: B4L/visa is public. It holds code and
invented demo data only, so the fleet fetches it like proplan and needs
no read token.
- [x] 3.4 `sites.nix` entry `visa` on bkk01 and the A record; deployed to ns1,
web01, cnx01, bkk01 and control on November 17, 2026
(cnx-network-clan PR #121).
## Open questions