The stack for portal 1.0. Merging this is the switch: it deploys on merge, and the stack it describes cannot run portal 0.19. Do it as step 7 of move-1.0/README.md, not before. Builds on #18 (its commit shows in the diff until that is merged).
What changes
The site's store: one file, in a new volume portal_data (PORTAL_STORE). No NATS.
gdo and kron dial the site over dhd/1 (PORTAL_DHD), and the site names their keys (DHD_KEYS). They dial from loopback to loopback, so the three share one network namespace, held by a small container net.
Why net and not portal's own namespace: tried first, and after a restart of portal gdo and kron were left in the namespace it had, cut off from the site, until they were made anew.
kron listens on 3080 inside that namespace (3000 is portal's); the host port is the same as before.
gdo is built from uhhm/gdo at GDO_RELEASE (a tag or a commit) instead of installed from the registry. The gdo that dials a site reads no NATS, and publishing it to the registry would stop mail for 0.x sites on any host that upgraded.
The content's reload posts to /dhd/1/load with the org secret LOAD_TOKEN; the deploy gives the site its hash.
NATS stays in the file behind a profile nothing turns on, so its container and volume are left alone for going back.
The chat is out. cnats spoke to portal over NATS; kino, which dials a site, has no image.
move.sh starts each program once to read its key, and ends by printing DHD_KEYS and PORTAL_DHD for the deploy.
New variables and secrets
name
kind
where
LOAD_TOKEN
secret
org
DHD_KEYS, PORTAL_DHD
variable
repo, from what move.sh move prints
GDO_RELEASE
variable
repo: a commit or tag of uhhm/gdo
KRON_RELEASE
variable
repo: 0.3.0
COMPOSE_PROFILES
variable
repo: pay
PORTAL_BACKUP_TO, GARAGE_BACKUPS_BUCKET
variable
repo, optional
deploy-tomtervel changed (it no longer wants nats.env and chat.env), and the copy in /usr/local/bin on kasse is installed by hand.
Tried
On kasse, as a second compose project beside the live one (other ports, no Rauthy, no garage, kron on its fake provider, gdo sending to a mail server that only records), with made-up records:
a sign-up's mail, and a household's fee requested, paid and confirmed by mail;
/dhd/1/load loaded the content;
portal restarted, and then made anew: gdo and kron dialled again within half a minute, and the mail and payment that had waited went through;
volumes made before the stack came up were used as they were (compose warns that it did not make them).
Not tried
Sign-in through Rauthy on 1.0. The settings are the ones 0.19 runs with.
Vipps with the new kron, and the host's postfix with the new gdo.
The deploy workflow itself: it runs on merge.
move.sh move, and the key step of move.sh with real images (it was run by hand in the test above).
Left open
Backups of the store are off until PORTAL_BACKUP_TO (an age public key, its private half kept off kasse) and a bucket are set. Until then portal_data is the only copy.
samtaler.tomtervel.no in the host Caddy points at a port nothing answers on after the switch.
The stack for portal 1.0. **Merging this is the switch**: it deploys on merge, and the stack it describes cannot run portal 0.19. Do it as step 7 of `move-1.0/README.md`, not before. Builds on #18 (its commit shows in the diff until that is merged).
## What changes
- **The site's store**: one file, in a new volume `portal_data` (`PORTAL_STORE`). No NATS.
- **gdo and kron dial the site** over `dhd/1` (`PORTAL_DHD`), and the site names their keys (`DHD_KEYS`). They dial from loopback to loopback, so the three share one network namespace, held by a small container `net`.
- **Why `net` and not portal's own namespace**: tried first, and after a restart of portal gdo and kron were left in the namespace it had, cut off from the site, until they were made anew.
- **kron listens on 3080** inside that namespace (3000 is portal's); the host port is the same as before.
- **gdo is built from uhhm/gdo** at `GDO_RELEASE` (a tag or a commit) instead of installed from the registry. The gdo that dials a site reads no NATS, and publishing it to the registry would stop mail for 0.x sites on any host that upgraded.
- **The content's reload** posts to `/dhd/1/load` with the org secret `LOAD_TOKEN`; the deploy gives the site its hash.
- **NATS** stays in the file behind a profile nothing turns on, so its container and volume are left alone for going back.
- **The chat is out.** cnats spoke to portal over NATS; kino, which dials a site, has no image.
- **`move.sh`** starts each program once to read its key, and ends by printing `DHD_KEYS` and `PORTAL_DHD` for the deploy.
## New variables and secrets
| name | kind | where |
|---|---|---|
| `LOAD_TOKEN` | secret | org |
| `DHD_KEYS`, `PORTAL_DHD` | variable | repo, from what `move.sh move` prints |
| `GDO_RELEASE` | variable | repo: a commit or tag of uhhm/gdo |
| `KRON_RELEASE` | variable | repo: `0.3.0` |
| `COMPOSE_PROFILES` | variable | repo: `pay` |
| `PORTAL_BACKUP_TO`, `GARAGE_BACKUPS_BUCKET` | variable | repo, optional |
`deploy-tomtervel` changed (it no longer wants `nats.env` and `chat.env`), and the copy in `/usr/local/bin` on kasse is installed by hand.
## Tried
On kasse, as a second compose project beside the live one (other ports, no Rauthy, no garage, kron on its fake provider, gdo sending to a mail server that only records), with made-up records:
- a sign-up's mail, and a household's fee requested, paid and confirmed by mail;
- `/dhd/1/load` loaded the content;
- portal restarted, and then made anew: gdo and kron dialled again within half a minute, and the mail and payment that had waited went through;
- volumes made before the stack came up were used as they were (compose warns that it did not make them).
## Not tried
- **Sign-in through Rauthy** on 1.0. The settings are the ones 0.19 runs with.
- **Vipps** with the new kron, and **the host's postfix** with the new gdo.
- **The deploy workflow itself**: it runs on merge.
- **`move.sh move`**, and the key step of `move.sh` with real images (it was run by hand in the test above).
## Left open
- **Backups of the store are off** until `PORTAL_BACKUP_TO` (an age public key, its private half kept off kasse) and a bucket are set. Until then `portal_data` is the only copy.
- `samtaler.tomtervel.no` in the host Caddy points at a port nothing answers on after the switch.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01L5fbDjTQg4CJsNqEo7hhE7
move.sh exports with 0.19.3, rewrites and imports with 1.0, takes the
sign-ups again through their form on a site only the host reaches, and
holds the store to the export. What that site would have mailed is posted
to sink.py and let go: left in the store, it goes out when gdo first dials.
README.md has the order of the switch and what it waits for: no gdo or
kron release dials a 1.0 site yet.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDjTQg4CJsNqEo7hhE7
Portal 1.0 keeps everything in one file (portal_data) and has no NATS.
gdo and kron dial it over dhd/1 from loopback, so the three share one
network namespace, held by a container of its own: held by portal, a
restart of portal cut the other two off. NATS stays behind a profile
nothing turns on, for going back; the chat (cnats) is out.
The deploy writes DHD_KEYS and the hash of LOAD_TOKEN, and no NATS or
chat settings. gdo is built from uhhm/gdo at GDO_RELEASE, since the gdo
that dials a site is not in the registry. move.sh reads the programs'
keys and prints what the deploy wants.
Run on kasse beside the live stack, on other ports, with made-up
records: mail out, a payment settled, content loaded over /dhd/1/load,
and both programs back after portal was restarted and made anew.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDjTQg4CJsNqEo7hhE7
bl
marked the pull request as ready for review 2026-11-24 18:30:58 +01:00
bl
merged commit 3763271852 into main2026-11-24 18:30:59 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The stack for portal 1.0. Merging this is the switch: it deploys on merge, and the stack it describes cannot run portal 0.19. Do it as step 7 of
move-1.0/README.md, not before. Builds on #18 (its commit shows in the diff until that is merged).What changes
portal_data(PORTAL_STORE). No NATS.dhd/1(PORTAL_DHD), and the site names their keys (DHD_KEYS). They dial from loopback to loopback, so the three share one network namespace, held by a small containernet.netand not portal's own namespace: tried first, and after a restart of portal gdo and kron were left in the namespace it had, cut off from the site, until they were made anew.GDO_RELEASE(a tag or a commit) instead of installed from the registry. The gdo that dials a site reads no NATS, and publishing it to the registry would stop mail for 0.x sites on any host that upgraded./dhd/1/loadwith the org secretLOAD_TOKEN; the deploy gives the site its hash.move.shstarts each program once to read its key, and ends by printingDHD_KEYSandPORTAL_DHDfor the deploy.New variables and secrets
LOAD_TOKENDHD_KEYS,PORTAL_DHDmove.sh moveprintsGDO_RELEASEKRON_RELEASE0.3.0COMPOSE_PROFILESpayPORTAL_BACKUP_TO,GARAGE_BACKUPS_BUCKETdeploy-tomtervelchanged (it no longer wantsnats.envandchat.env), and the copy in/usr/local/binon kasse is installed by hand.Tried
On kasse, as a second compose project beside the live one (other ports, no Rauthy, no garage, kron on its fake provider, gdo sending to a mail server that only records), with made-up records:
/dhd/1/loadloaded the content;Not tried
move.sh move, and the key step ofmove.shwith real images (it was run by hand in the test above).Left open
PORTAL_BACKUP_TO(an age public key, its private half kept off kasse) and a bucket are set. Until thenportal_datais the only copy.samtaler.tomtervel.noin the host Caddy points at a port nothing answers on after the switch.🤖 Generated with Claude Code
https://claude.ai/code/session_01L5fbDjTQg4CJsNqEo7hhE7