1 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
20 changed files with 41 additions and 37 deletions

No files matched your search

+1 -1
View File
@@ -230,7 +230,7 @@ def notes(tag, sha, files):
)
head = f"Changes since {prev}:" if prev else "Commits in this first release:"
held = (
f"`{WEB}` holds the server `bin/visa`; cnx01 installs it as visa.buildfor.life only with "
f"`{WEB}` holds the server `bin/visa`; cnx01 installs it as lannadesk.com only with "
"its signature beside it (`release/allowed-signers`)."
)
return (
+1 -1
View File
@@ -221,7 +221,7 @@ class ReleaseTest(unittest.TestCase):
self.assertIn("Commits in this first release:", rel["body"])
self.assertIn("- first commit (", rel["body"])
self.assertIn(release.hashlib.sha256(b"web").hexdigest(), rel["body"])
self.assertIn("cnx01 installs it as visa.buildfor.life only with its signature", rel["body"])
self.assertIn("cnx01 installs it as lannadesk.com only with its signature", rel["body"])
self.assertIn("| `visa-linux-x86_64.tar.gz.sig` | the server's signature", rel["body"])
self.assertIn("November 16, 2026", rel["body"])
self.assertNotIn("ci-run", rel["body"])
+1 -1
View File
@@ -1,6 +1,6 @@
# Working on this repository (for agents and people)
visa.buildfor.life holds passport data of real people. Read this file and
Lanna Desk (lannadesk.com, the app `visa`) holds passport data of real people. Read this file and
[docs/PLAN.md](docs/PLAN.md) before changing anything.
## Rules
+1 -1
View File
@@ -3,7 +3,7 @@ name = "visa"
version = "0.1.0"
edition = "2024"
rust-version = "1.95"
description = "visa.buildfor.life: immigration records, deadlines and extension packs for foreigners in Thailand"
description = "Lanna Desk (lannadesk.com): immigration records, deadlines and extension packs for foreigners in Thailand"
publish = false
# Integration tests are one binary: tests/main.rs declares every tests/*.rs
# as a module, so the suite links once.
+7 -6
View File
@@ -1,6 +1,6 @@
# visa.buildfor.life
# Lanna Desk (lannadesk.com)
visa.buildfor.life keeps the immigration records of the foreigners that B4L
Lanna Desk, the app `visa`, keeps the immigration records of the foreigners that B4L
looks after in Thailand: their passports, addresses and TM.30 receipts,
visas, arrivals with the TDAC, extensions of stay, re-entry permits, 90-day
reports and work permits, and the companies that employ them. From those
@@ -137,7 +137,7 @@ files or systemd credentials and never from a variable's value.
| Variable | Meaning |
| -------------------------------- | --------------------------------------------------------------- |
| `VISA_LISTEN` | address to listen on, default `127.0.0.1:8040` |
| `VISA_PUBLIC_URL` | `https://visa.buildfor.life`, for the login's redirect |
| `VISA_PUBLIC_URL` | `https://lannadesk.com`, for the login's redirect |
| `VISA_DATABASE_URL` | `postgres://visa@host/visa` |
| `VISA_DATABASE_PASSWORD_FILE` | the role's password; else the credential `db-password` |
| `VISA_OIDC_ISSUER` | `https://id.cnx.network/oauth2/openid/visa-web` |
@@ -174,7 +174,8 @@ from that directory.
Since November 17, 2026 the app runs on cnx01 in the office, like proplan and
lampbench-web: the database `visa` on cnx01's PostgreSQL, the documents in the
bucket `visa-documents` of cnx01's Garage, backups by borg, and bkk01
publishing https://visa.buildfor.life. Passport data stays on B4L's own
publishing https://lannadesk.com (its first name, visa.buildfor.life,
redirects there with the path). Passport data stays on B4L's own
servers. The fleet's module is `modules/visa` in cnx-network-clan, with its
runbook in `docs/src/visa.md` there. Only members of the Kanidm group `visa`
get in; members are set in the fleet's `identity/people.nix`.
@@ -193,8 +194,8 @@ fake provider, adds a person and checks the audit log on the real
PostgreSQL module.
Which commit runs: every page's footer names it, with a link to it, and
https://visa.buildfor.life/version answers with the full hash, without a
login, so `curl https://visa.buildfor.life/version` tells whether a release
https://lannadesk.com/version answers with the full hash, without a
login, so `curl https://lannadesk.com/version` tells whether a release
is live, and `visa --version` prints the release and the commit. A Nix
build takes the commit from the flake's source, CI from `VISA_COMMIT`, a
build in a checkout from git.
+7 -4
View File
@@ -1,4 +1,4 @@
# visa.buildfor.life: plan
# Lanna Desk (lannadesk.com, the app visa): plan
> Phases 1 to 3 built on November 17, 2026, phases 4 and 5 on November 18,
> 2026, all live at https://visa.buildfor.life. On November 19, 2026 the move
@@ -9,9 +9,12 @@
> 2026, the same day every push to main became a signed release that cnx01
> installs by itself. Task 7.6, the agreements the client signs, followed the
> same day; B4L's real text goes in under Agreements once the lawyers send
> it. **Resume here: phase 8, reminders.**
> it. On November 21, 2026 the app took the name Lanna Desk and moved to
> https://lannadesk.com, B4L's name for an agency that also takes on legal
> work and artists' contracts; visa.buildfor.life redirects there with the
> path. **Resume here: phase 8, reminders.**
visa.buildfor.life keeps the immigration records of the foreigners that B4L
Lanna Desk keeps the immigration records of the foreigners that B4L
looks after: their passports, addresses in Thailand, arrivals with the Thailand
Digital Arrival Card (TDAC), visas, extensions of stay, re-entry permits,
90-day reports and work permits. From those records it works out every
@@ -33,7 +36,7 @@ The first round of questions was answered on November 17, 2026.
| Where it runs | cnx01, installed on the host like proplan and lampbench: database `visa` on cnx01's PostgreSQL, documents in its Garage, encrypted by the app, borg backups to juliet |
| Releases (Nov 20) | as thukthuk and lampbench-web: every push to main that passes CI becomes a signed release (CalVer), which cnx01 fetches and restarts on within 15 minutes; no fleet PR per release |
| Documents in Garage | bucket `visa-documents` on cnx01's Garage, 10 GB (Nov 19, 2026); the app encrypts each file before it leaves the app, so Garage holds no key; Garage's SSE-C is off |
| How it is published | bkk01 publishes `visa.buildfor.life` through a `modules/web-sites` app entry |
| How it is published | bkk01 publishes `lannadesk.com` through a `modules/web-sites` app entry; `visa.buildfor.life` redirects there |
| 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 |
+2 -2
View File
@@ -42,7 +42,7 @@ pub struct Signed<'a> {
pub record: &'a str,
/// "Nov 20, 2026, 14:05 (Chiang Mai time)"
pub at: &'a str,
/// "client link 12 at https://visa.buildfor.life"
/// "client link 12 at https://lannadesk.com"
pub through: &'a str,
pub ip: &'a str,
pub user_agent: &'a str,
@@ -267,7 +267,7 @@ pub fn render(s: &Signed<'_>, blocks: &[Block]) -> Result<Vec<u8>> {
doc.set_metadata(
Metadata::new()
.title(format!("{}, version {}", s.title, s.version))
.creator("visa.buildfor.life".to_string()),
.creator("Lanna Desk (lannadesk.com)".to_string()),
);
for (i, ops) in l.pages.iter().enumerate() {
let mut page = doc.start_page_with(PageSettings::from_wh(W, H).expect("A4"));
+1 -1
View File
@@ -4,7 +4,7 @@
//! | Variable | Meaning |
//! | -------------------------------- | ------------------------------------------------ |
//! | `VISA_LISTEN` | address to listen on, default 127.0.0.1:8040 |
//! | `VISA_PUBLIC_URL` | https://visa.buildfor.life (login redirects) |
//! | `VISA_PUBLIC_URL` | https://lannadesk.com (login redirects) |
//! | `VISA_DATABASE_URL` | postgres://user@host/db |
//! | `VISA_DATABASE_PASSWORD_FILE` | the role's password (else credential `db-password`) |
//! | `VISA_OIDC_ISSUER` | https://id.cnx.network/oauth2/openid/visa-web |
+1 -1
View File
@@ -1,4 +1,4 @@
//! visa.buildfor.life: immigration records, deadlines and extension packs
//! Lanna Desk (lannadesk.com): immigration records, deadlines and extension packs
//! for foreigners in Thailand (docs/PLAN.md).
pub mod agreements;
+1 -1
View File
@@ -12,7 +12,7 @@ use visa::files::{self, Store};
use visa::{dates, db, documents, seed, web};
const USAGE: &str = "\
visa: immigration records, deadlines and extension packs (visa.buildfor.life)
visa: immigration records, deadlines and extension packs (Lanna Desk, lannadesk.com)
Usage: visa [COMMAND]
+1 -1
View File
@@ -334,7 +334,7 @@ fn build(
doc.set_metadata(
Metadata::new()
.title(cover.title.clone())
.creator("visa.buildfor.life".to_string()),
.creator("Lanna Desk (lannadesk.com)".to_string()),
);
let top = |page: usize| XyzDestination::new(page, Point::from_xy(0.0, 0.0));
let mut outline = Outline::new();
+1 -1
View File
@@ -461,7 +461,7 @@ pub fn render(papers: &[Paper], v: &Values, title: &str) -> Result<Vec<u8>> {
doc.set_metadata(
Metadata::new()
.title(title.to_string())
.creator("visa.buildfor.life".to_string()),
.creator("Lanna Desk (lannadesk.com)".to_string()),
);
for &paper in papers {
add_form(&mut doc, &pen, paper, v)?;
+2 -2
View File
@@ -15,8 +15,8 @@ use sqlx::PgPool;
use crate::oidc::random_token;
/// `__Host-`: Secure, Path=/ and no Domain, so no other name under
/// buildfor.life can set or read it.
/// `__Host-`: Secure, Path=/ and no Domain, so no other name under the
/// app's domain can set or read it.
pub const SESSION_COOKIE: &str = "__Host-visa";
/// Binds a login in progress to the browser that started it.
pub const FLOW_COOKIE: &str = "__Host-visa-login";
+2 -2
View File
@@ -38,7 +38,7 @@ pub async fn login(
&st,
StatusCode::SERVICE_UNAVAILABLE,
"The login service is not reachable yet",
"visa.buildfor.life fetches id.cnx.network's settings when it starts and keeps \
"Lanna Desk fetches id.cnx.network's settings when it starts and keeps \
trying. Try again in a minute.",
("/", "Try again"),
);
@@ -247,7 +247,7 @@ pub async fn signed_out(State(st): State<Arc<AppState>>) -> Response {
&st,
StatusCode::OK,
"Signed out",
"You are signed out of visa.buildfor.life. Your session at id.cnx.network stays open \
"You are signed out of Lanna Desk. Your session at id.cnx.network stays open \
until you sign out there.",
("/", "Sign in again"),
)
+1 -1
View File
@@ -454,7 +454,7 @@ async fn forms_guard(State(st): State<Arc<AppState>>, req: Request, next: Next)
&st,
StatusCode::FORBIDDEN,
"Refused",
"This form was sent from another site. Open visa.buildfor.life and try again there.",
"This form was sent from another site. Open lannadesk.com and try again there.",
("/", "Open the app"),
);
}
+1 -1
View File
@@ -276,7 +276,7 @@ pub async fn pdf(
person: whose.clone(),
lines,
made: format!(
"Put together by visa.buildfor.life for {} on {}.",
"Put together by Lanna Desk (lannadesk.com) for {} on {}.",
user.login,
dates::fmt_datetime(Utc::now())
),
+1 -1
View File
@@ -1,4 +1,4 @@
/* visa.buildfor.life: the buildfor.life colors, navy #071323 and gold
/* Lanna Desk (lannadesk.com): the buildfor.life colors, navy #071323 and gold
#f5c000, with tints of both. Status colors (--ok, --warn, --bad) appear
only on chips and notes that carry a text label. No inline styles: the
Content Security Policy allows none. */
+4 -4
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex,nofollow">
<title>{{ title }} · visa.buildfor.life</title>
<title>{{ title }} · Lanna Desk</title>
<script src="/static/theme-init.js?v={{ v }}"></script>
<link rel="icon" href="/static/favicon.svg?v={{ v }}" type="image/svg+xml">
<link rel="stylesheet" href="/static/app.css?v={{ v }}">
@@ -12,9 +12,9 @@
</head>
<body>
<header class="top">
<a class="brand" href="/" aria-label="visa.buildfor.life, the deadlines">
<a class="brand" href="/" aria-label="Lanna Desk, the deadlines">
{% include "_mark.html" %}
<span class="nm">Visa</span><span class="sub">buildfor.life</span>
<span class="nm">Lanna Desk</span><span class="sub">B4L</span>
</a>
<button type="button" class="ib" id="themeBtn" aria-label="Switch between light and dark" title="Switch between light and dark">&#9680;</button>
</header>
@@ -42,7 +42,7 @@
</aside>
<main id="main">
{% block main %}{% endblock %}
<footer class="ft">visa.buildfor.life {{ version }}{% if commit %}, commit {% if commit_url %}<a href="{{ commit_url }}">{{ commit }}</a>{% else %}{{ commit }}{% endif %}{% endif %}. Every view and change of a person's record is written to the Activity log. Dates are in Chiang Mai time.</footer>
<footer class="ft">Lanna Desk {{ version }}{% if commit %}, commit {% if commit_url %}<a href="{{ commit_url }}">{{ commit }}</a>{% else %}{{ commit }}{% endif %}{% endif %}. Every view and change of a person's record is written to the Activity log. Dates are in Chiang Mai time.</footer>
</main>
</div>
</body>
+2 -2
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex,nofollow">
<meta name="referrer" content="no-referrer">
<title>{{ title }} · B4L</title>
<title>{{ title }} · Lanna Desk</title>
<script src="/static/theme-init.js?v={{ v }}"></script>
<link rel="icon" href="/static/favicon.svg?v={{ v }}" type="image/svg+xml">
<link rel="stylesheet" href="/static/app.css?v={{ v }}">
@@ -17,7 +17,7 @@
<header class="top">
{% if base %}<a class="brand" href="{{ base }}" aria-label="Your details, the start">{% else %}<span class="brand">{% endif %}
{% include "_mark.html" %}
<span class="nm">Visa</span><span class="sub">B4L</span>
<span class="nm">Lanna Desk</span><span class="sub">B4L</span>
{% if base %}</a>{% else %}</span>{% endif %}
<button type="button" class="ib" id="themeBtn" aria-label="Switch between light and dark" title="Switch between light and dark">&#9680;</button>
</header>
+3 -3
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex,nofollow">
<title>{{ title }} · visa.buildfor.life</title>
<title>{{ title }} · Lanna Desk</title>
<script src="/static/theme-init.js?v={{ v }}"></script>
<link rel="icon" href="/static/favicon.svg?v={{ v }}" type="image/svg+xml">
<link rel="stylesheet" href="/static/app.css?v={{ v }}">
@@ -12,12 +12,12 @@
</head>
<body>
<header class="top">
<a class="brand" href="/">{% include "_mark.html" %}<span class="nm">Visa</span><span class="sub">buildfor.life</span></a>
<a class="brand" href="/">{% include "_mark.html" %}<span class="nm">Lanna Desk</span><span class="sub">B4L</span></a>
<button type="button" class="ib" id="themeBtn" aria-label="Switch between light and dark" title="Switch between light and dark">&#9680;</button>
</header>
<main class="solo">
<div class="card">
<div class="eyebrow">visa.buildfor.life</div>
<div class="eyebrow">Lanna Desk</div>
<h1>{{ title }}</h1>
<p>{{ text }}</p>
<p><a class="btn pri" href="{{ href }}">{{ link }}</a></p>