No description
  • JavaScript 55.2%
  • Go 43.6%
  • Dockerfile 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nelson c108a16dc9
All checks were successful
Suite cluster-service / scope (push) Successful in 5s
Suite release / scope (push) Successful in 5s
Suite web-app / scope (push) Successful in 5s
Suite cluster-service / check-image (push) Has been skipped
Suite cluster-service / check-manifests (push) Has been skipped
Suite cluster-service / check-smoke (push) Has been skipped
Suite cluster-service / publish (push) Has been skipped
Suite cluster-service / reused-checks (push) Has been skipped
Suite release / check-manifest (push) Has been skipped
Suite release / reserve (push) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite web-app / check-image (push) Has been skipped
Suite web-app / publish (push) Has been skipped
Suite web-app / publish-static (push) Has been skipped
Suite web-app / check-test (backend) (push) Has been skipped
Suite web-app / reused-checks (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
Suite release / module (push) Successful in 18s
A work machine reads and saves its menu in the tree store's GitHub copy (AT-7) (#127)
2026-12-01 15:41:03 -08:00
backend The known-hosts file loses its underscore, and the docs pass the new Markdown lint (#120) 2026-11-30 17:18:54 -08:00
k8s Pin forgejo.romaine.life/romaine-life/fzt-frontend v0.1.102 (#123) 2026-11-30 18:14:53 -08:00
scripts Add HS256-reintroduction CI guard; update auth docs to JWKS-only 2026-05-28 00:55:49 -07:00
testdata EngineVersion is read from the build, not stamped with -X (#73) 2026-11-16 15:25:19 -08:00
.dockerignore Run the tree API on the NAS with a Forgejo store (FORGEJO-6) (#3) 2026-11-02 23:30:52 -08:00
.gitignore CI and releases from the suites; the image tests itself (#77) 2026-11-16 17:59:24 -08:00
.npmrc npm: migrate package scope @nelsong6 -> @romaine-life (GitHub Packages) 2026-06-03 04:47:47 +00:00
.nvmrc The repo's Node major is in .nvmrc, not pipeline-templates' fleet.json (PIPT-33) (#84) 2026-11-17 23:52:58 -08:00
AGENTS.md ci-check is now pull-request check (AHT-251) (#117) 2026-11-29 22:50:40 -08:00
CLAUDE.md The known-hosts file loses its underscore, and the docs pass the new Markdown lint (#120) 2026-11-30 17:18:54 -08:00
command.go EngineVersion is read from the build, not stamped with -X (#73) 2026-11-16 15:25:19 -08:00
credential.go Sign in through auth-client instead of auth (AUT-14) (#125) 2026-11-30 23:32:10 -08:00
credential_test.go Sign in through auth-client instead of auth (AUT-14) (#125) 2026-11-30 23:32:10 -08:00
Dockerfile Write the backend's logs as the estate's log line (AHT-204) (#99) 2026-11-26 14:34:10 -08:00
engine_version_test.go Engine-version test skips in a Go workspace (FZT2-10) (#126) 2026-12-01 01:17:13 -08:00
go.mod Take github.com/romaine-life/fzt@v0.2.124 2026-12-01 09:43:18 +00:00
go.sum Take github.com/romaine-life/fzt@v0.2.124 2026-12-01 09:43:18 +00:00
palette_test.go The : palette's rows carry Palette, so a host's own injected rows aren't run as palette commands; fzt v0.2.95 (FZT-73) (#25) 2026-11-01 20:50:53 -08:00
README.md The known-hosts file loses its underscore, and the docs pass the new Markdown lint (#120) 2026-11-30 17:18:54 -08:00
sync.go A work machine reads and saves its menu in the tree store's GitHub copy (AT-7) (#127) 2026-12-01 15:41:03 -08:00
sync_test.go Menu cache keeps each entry's tags (FZT-67) (#22) 2026-11-01 17:02:23 -08:00
tagmode.go tags toggle lasts for the open menu only, not saved (FZT-67) (#23) 2026-11-01 17:50:22 -08:00
tagmode_test.go tags toggle lasts for the open menu only, not saved (FZT-67) (#23) 2026-11-01 17:50:22 -08:00
workmachine.go A work machine reads and saves its menu in the tree store's GitHub copy (AT-7) (#127) 2026-12-01 15:41:03 -08:00
workmachine_test.go A work machine reads and saves its menu in the tree store's GitHub copy (AT-7) (#127) 2026-12-01 15:41:03 -08:00

fzt-frontend

Canonical menu and bookmark tree API, home-only at https://fzt-frontend.home.romaine.life. Work: FORGEJO-6, service project FZTF. The Go module keeps its github.com/romaine-life/fzt-frontend import path; Forgejo is the repository and release authority, and GitHub is a push mirror.

The backend verifies two kinds of token. Browsers present auth.romaine.life JWTs, checked against its JWKS for the first-party issuer, audience and identity claims. Home machines present OpenBao tokens for role fzt-frontend, checked against OpenBao's published keys alone, so no cloud is in their path. A machine may write only its explicit owner's menu and bookmarks, and its writes record it as the Git author. auth.romaine.life signs in people only: its machine, service and device tokens are refused. The access log's caller= names each request's token kind. It does not issue credentials or have a browser login UI. /health is the unauthenticated operational probe; /fzt/tree/:id requires authentication. The homepage supplies auth.romaine.life's JWT and the CLI an OpenBao home token.

Every successful write commits trees/<id>.json to romaine-life/at on Forgejo through SSH on the home network. The write deploy key belongs to that repo only. backend/forgejo-known-hosts pins the host key obtained directly from the NAS's Forgejo container; keys learned from the network are never accepted. Optimistic versions, push-race retries and menu invariants remain enforced.

Deploy and publish

After merging a green PR, the Forgejo CI builds and smoke-tests the real image, publishes it under forgejo.romaine.life/romaine-life/fzt-frontend with the next v0.1.N tag, and cuts the module release. k8s/deployment.yaml pins the tested release by tag and digest. The same run opens a PR moving the pin to the new tag, with the digest the registry holds for it, and has Forgejo merge it once its checks pass, so a release deploys itself (auth's pattern); it pushes with a short-lived token from the job's identity (pipeline-templates actions/forgejo-token). Deployment and documentation changes run the checks without publishing another application release. No image is published to GitHub, ghcr or Azure ACR.

It runs on the home cluster (nelsong6/home-cluster, HOMEINFRA-1), whose Argo CD syncs k8s/ from main. A new release starts its pod and waits for it to answer /health before stopping the old one. The home name, fzt-frontend.home.romaine.life, points at the cluster in the NAS's DNS Server, and the cluster's gateway serves it with the *.home.romaine.life certificate. No public DNS record or router forward is needed.

The deploy key is OpenBao's secret/services/fzt-frontend (store-deploy-key), which External Secrets copies into the namespace. The image pulls with an hour's token OpenBao signs, which External Secrets refreshes into forgejo-registry (nelsong6/home-cluster's ClusterGenerator forgejo-image-pull; no registry token is stored, BAO-15). To replace the deploy key, write the new one there as the NAS (sudo /volume1/docker/homesvc/homesvc import-secrets fzt-frontend, a JSON object on stdin, never a credential in an argument); the pod picks it up on its next start. The clone and SSH working files live in /tmp and are rebuilt on every start. There is no durable service state beyond at and the key: nas-backup's Forgejo job backs up repositories, and its OpenBao job backs up the secret.

The route's annotations are its down alert: the NAS's homesvc health checks /health each minute and alerts through ntfy. Its logs are in the pile: search logs <words> --pc cluster --app fzt-frontend.

The main publishing job signs in to Forgejo's registry with its own short-lived job token, which nelson's Forgejo integration ci-image-publish takes for the suites' release workflow on main (write:package; nelsong6/forgejo README, Package sign-in). No registry token is stored anywhere (BAO-15).

Development

Use a local git store with STORE_REPO and STORE_DIR. For SSH, also set STORE_DEPLOY_KEY_FILE to an authorized key; the checked-in host pin is mandatory. Set PORT if needed. backend/server.js starts the service; npm test in backend runs the store tests. CI runs Go vet/tests, the no-HS256 guard, backend tests, and the container build/smoke gate on the home runners.

Retiring AKS (FORGEJO-6)

After the home URL passed a real fzt-automate sync and a write/revert to Forgejo at, this change removes the Kubernetes chart. infra-bootstrap removes its Argo Application and Azure CI identity while preserving the GitHub push-mirror repository. The old GitHub deploy key on at and old ACR image repository are retired after that proof.

The runtime Azure stack is kept as an empty retirement configuration against its existing state. From a merged checkout with the operator's existing az login:

cd infra
tofu init
tofu plan -parallelism=4 '-out=retire.tfplan'
tofu apply -parallelism=4 retire.tfplan

The reviewed plan must destroy only the old fzt-frontend UAMI, its federated credential, Key Vault and Key Vault role assignment, and create nothing. Shared Azure resources and the git-backed trees are outside this state. The empty state remains an audit record. Normal Key Vault soft-delete retention applies.