Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
8e926f0
"rolled" means the deployment's new pods are ready, not the old one s…
shaz Nov 30, 2026
fc42eb1
cabal is spoken to over HTTP; the stranger no longer builds a cbl
shaz Nov 30, 2026
7fef2fb
The Gojira checkout is fetched at the stack file's version, not asked…
shaz Nov 30, 2026
992b8f1
The add form stops asking for the stack file and the env file
shaz Nov 30, 2026
e3bf014
The add form stops asking for the kubeconfig too
shaz Nov 30, 2026
4f265c9
A reload never restores a removed box's text into the one now in its …
shaz Nov 30, 2026
a1ef0ad
The repo-clones box is a developer's; it leaves the add form
shaz Nov 30, 2026
6434f55
The Google account is a pick, the one gcloud uses now picked
shaz Nov 30, 2026
263b3ed
The four-things card speaks to a stranger
shaz Nov 30, 2026
1c8294b
The GitHub App card speaks to a stranger; Install Gojira no longer wa…
shaz Nov 30, 2026
f40db3e
No cluster yet reads as no cluster yet; the App's key is wherever the…
shaz Dec 1, 2026
2fb57a2
The App card stores the key's full path; Install Gojira repairs a ~ p…
shaz Dec 1, 2026
6b4a1c5
The run page says what it is waiting on, and for how long
shaz Dec 1, 2026
f2bab3c
kobo gets the operator token the run logged in with; a changed config…
shaz Dec 1, 2026
fdb3760
A base file Gojira rewrote is left alone; a restart waits as long as …
shaz Dec 1, 2026
760c747
The stranger's kobo config names the switchboard
shaz Dec 1, 2026
e9ec867
Check names the org config repo kobo reads at boot
shaz Dec 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 99 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,42 @@ releases yet; everything is under Unreleased.
Gojira clone beside it, the kubeconfig and env file paths (from the name) and the one
gcloud account are prefilled; every box has one line saying what it is and whether it must
exist; `--repos` is folded under "Building the apps from source"; the four things leave the
add form (the profile page's card asks them) and stay on the settings form.
add form (the profile page's card asks them) and stay on the settings form. The stack file
and the env file are not asked at all (the stranger: why look at a list I cannot edit, and
does it matter where the env file goes? It does not): a new profile reads the shipped
`examples/stack.yaml` and writes `~/.config/stack/<name>/gojira.env`; nor is the kubeconfig:
the machine's own for a cluster it already knows, `~/.kube-<name>/config` for one the
install makes. Profile settings still name other files. The add form is Name, Cluster,
Google account, and a reload no longer restores a removed box's text into the one now in
its place (the kubeconfig path appeared in the Google account box after a pull). The
repo-clones box (`--repos`, for developers building the apps from source) is on the
settings form only. The Google account is a pick of the accounts gcloud is logged in as,
the one it uses now picked (a box to type into on a machine without gcloud).
- **The four-things card speaks to a stranger.** The profile page met him with a red box
("needs values for {org}… or pass --set") above the card about to ask for exactly those,
a paragraph about tokens, env files and contracts, a button that wrote "the env file", and a
table of GOJIRA_* keys "not written yet". Now: no red box while the card asks; one sentence;
the GitHub organization and the GCP project are picks (the orgs gh belongs to, the projects
the Google account sees; a box to type into when the tool offers none; a saved value no
longer listed is still offered); each box has one line saying what it is; the button says
Save; what was written for Gojira is a folded receipt once something is. The strip names the
apps, not the stack file's path.
- **The run page says what it is waiting on.** Between lines a run can be quiet for minutes
(a deploy run on GitHub, a PR, pods, a bootstrap code) and the stranger could not tell a
quiet run from a stuck one. Every wait now reports what it waits on, with the link and
for how long, on a "now" line under the lines; it goes when the wait ends.
- **The GitHub App card speaks to a stranger.** Not red; the App is made in the organization
the four things named, not the apps' upstream org; the key is kept "somewhere on this
machine", not "next to your Gojira checkout"; the walkthrough is a link to the doc at the
release the stack file names; the example's placeholder id and pem path are never shown as
an App (a file seeded from `gojira.env.example` starts with both blank). The apps table's
column is "Version", not "Running": it is what the stack file names.
- **Check names the org config repo kobo reads at boot.** kobo reads `<org>/kobo-config` when it
starts and only makes one when the name answers nothing; the stranger run met a renamed,
archived repo still answering the old name through GitHub's forward, and the room read
another cluster's file. Check now has a row for every app whose config template names an
`org_repo`: absent (the app's first run makes it), this install's, another install's with the
project and cluster it names, or a rename forward, which is a stop.
- **The page before a cluster exists.** A kubeconfig with nothing to read used to be
"unknown": no App card, no Install Gojira, though terraform would make the cluster. When
the env file says `GOJIRA_TERRAFORM=1` and names a `CLUSTER`, the page now says "no cluster
Expand Down Expand Up @@ -75,6 +110,13 @@ releases yet; everything is under Unreleased.

### Changed

- **The Gojira checkout is fetched, not asked for.** The stack file names the release
(`gojira.version`, a tag of tenishai/gojira); adding a profile fetches it once into
`~/.cache/stack/gojira/<version>`, and Install Gojira, the App card and the env form read
from there. The "Gojira checkout" box leaves the add form (a developer's own checkout is
still `gojira_repo` in the settings form, and the repos dir's clone still wins); the
quickstart loses its `git clone … ../gojira` line. A render never clones; a press that
needs a fetch that failed says so.
- **The README reads first.** It opened with "onto a running Gojira" and `make install`
in gojira as step one, the order before the page existed. It now opens with the
quickstart as the guide has it (clone, sync, Gojira beside it, `stack ui`), the profile
Expand All @@ -101,7 +143,63 @@ releases yet; everything is under Unreleased.

### Fixed

- **Install Gojira was gated on a checkout the stranger no longer has.** Since the release is
fetched at `gojira.version`, a new profile has no `gojira_repo`; the page still required one
for the button and said "Set the profile's Gojira checkout". The env file is the only gate.
- **A kubeconfig with nothing to read passed as an empty cluster.** The page probed one
namespace and took kubectl's "no" (really "connection refused": the stranger's
`~/.kube-<name>/config` is not there until terraform writes it) for a readable cluster
with no Gojira, and offered to install onto a cluster that did not exist. The page lists
the namespaces first; a cluster that cannot be listed is "no cluster yet" when the env
file says terraform makes it. Check says the same in plain words ("no cluster yet:
Install Gojira makes <cluster> in <project> (<region>)") instead of failing with a
KUBECONFIG riddle.
- **The stranger's kobo had no switchboard.** The kobo config template named the tool gateway but
not cabal (`cabal_url`, `agent_endpoint_template`), so a shared thread between two agents would
have said "the switchboard is not configured". Both are in the template now.
- **A restart was cut off at sixty seconds.** `restart` asked kubectl to wait five minutes for
the rollout and the wrapper around kubectl allowed sixty; cabal's pod was Pending for a node
on Autopilot and the run stopped with "did not answer in 60s". The wait now gets the time
it asks for.
- **Every press rewrote one deploy-repo file and provisioned again.** Each upstream's
`k8s/base/deployment.yaml` carries an arm64 node selector from the dogfood; Gojira's setup
PR strips it (placement is Gojira's), and the installer copied the upstream's file back on
the next press, so every rerun re-provisioned every app. A base file the deploy repo already
has is Gojira's now and is left alone; `gojira.yaml` stays the installer's; a base file the
repo lacks is added.
- **kobo's cabal token stopped the install on cabal 0.5.2.** `cabal-token:service:kobo:operator`
asked cabal to mint a long-lived operator token, which cabal 0.5.2 refuses (its #403: "use
bootstrap or POST /auth/renew"); the old `cbl` path had hidden it. Scope `operator` is now
the operator token the run logged in with at bootstrap; the stranger's cabal identity sets
`operator_token_ttl_seconds` to 90 days, since kobo holds that token and does not renew it.
A configmap whose file changed (cabal's identity here) is updated and its app restarted to
read it, where "exists" used to leave the old one in place.
- **The App card stored the key's path as typed.** `~/tenish-room.pem` passed Done (Python
expands `~`) and stopped install.sh with "pem not found at ~/tenish-room.pem" (a shell
string). The card stores the full path, and Install Gojira rewrites a `~` path it finds
in the file before running, saying so on a run line.
- **The stack file named a place for the App's key.** `file:~/.config/stack/github-app.pem`
while the App card had stored the key's real path; Install would have paused asking for a
copy. A `file:` path may say `{app_pem}`: the key wherever the App card put it
(`GOJIRA_GITHUB_APP_PEM` in the env file), read when the run and the Check need it. The
shipped stack file says so.

- **"rolled" meant the old pod.** A roll's done check read the deployment's image (already the
new digest once CI applied it) and counted every ready pod in the namespace; under Recreate
the old pod reports ready while it terminates, so kobo's upgrade on prod (2026-11-30) said
"rolled, 1/1 pods" while the new pod was Pending and the deploy run still in flight. Done is
now the deployment's own live pods, each ready on the new image; a pod being deleted is not
counted anywhere, including the install's "N/N pods ready".
- **The current kube context was offered as `*`.** `list_contexts` read the first column of
kubectl's table, where the current context is marked with a star; it reads `-o name` now.
Both picks (the env form's CLUSTER and the new add-profile form) carried it.

### Removed

- **`cbl`.** The installer made two calls through cabal's command-line client: trade the
bootstrap code for an operator token, and mint the service tokens liminal and kobo hold.
Both are HTTP calls to cabal through the port-forward the installer already opens, so it
makes them itself (`HttpCabal`). The `--cbl` flag, `$STACK_CBL`, the profile's cbl box and
the preflight row are gone; a stranger no longer builds a cabal venv for a binary called
twice. The token lives in the run and is written nowhere.

30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ page, one file, and the merges stay with a person.
```bash
git clone https://github.com/tenishai/stack && cd stack
uv venv .venv && uv sync --locked --extra ui
git clone https://github.com/tenishai/gojira ../gojira # Gojira's own install scripts
.venv/bin/stack ui # localhost:8097
```

The page asks for a profile (a name; a cluster to install onto, or a new one;
the rest is prefilled and explained), then four things: your GitHub
The page asks for a profile (a name, and a cluster to install onto or a new
one; the rest is prefilled), then four things: your GitHub
organization, your GCP project, a region, a cluster name. From there it is buttons, in order: the
GitHub App (the one pause only you can take), **Install Gojira** (terraform makes
the cluster, about sixteen minutes), **Install** for the apps, **Open** for the
Expand All @@ -23,8 +22,7 @@ each step needs from you and what it leaves behind. Read it before you press.

Before you start you need: a throwaway GCP project with billing and Owner on it;
a GitHub organization you administer; `gcloud`, `kubectl`, `gh`, `terraform`,
`uv` and `crane` (no Docker), with `gcloud` and `gh` logged in; cabal's `cbl`
from a checkout of tenishai/cabal; about an hour. The guide's
`uv` and `crane` (no Docker), with `gcloud` and `gh` logged in; about an hour. The guide's
[table](docs/install.md#before-you-start) has the notes on each.

Nothing in `examples/stack.yaml` is edited: it carries `{org}`, `{project}`,
Expand All @@ -35,7 +33,7 @@ every step reads before it writes. The same from a terminal:
```bash
.venv/bin/stack env examples/stack.yaml --env-file gojira.env --gojira-repo ../gojira \
--set org=<your org> --set project=<your project> --set region=us-central1 --set cluster=gojira-sandbox
.venv/bin/stack install examples/stack.yaml --merge-setup-prs --cbl <path to cabal's cbl> \
.venv/bin/stack install examples/stack.yaml --merge-setup-prs \
--env-file gojira.env --set org=… --set project=… --set region=… --set cluster=…
```

Expand Down Expand Up @@ -77,7 +75,7 @@ dependency order. Every Secret and ConfigMap value is a *source*, never a value:
| `generate:<n>[:<name>]` | n random bytes, base64, made once and kept in `.generated/` (mode 600) beside the file; a named value is one value for every source in the stack that names it |
| `gojira-token` | the install's own API token, read from Gojira's Secret |
| `template:<path>` | a file with `{gojira_token}` filled in; relative like `file:` |
| `cabal-token:<sub>:<scope>` | a 90-day service JWT minted on the cabal this run brought up |
| `cabal-token:<sub>:<scope>` | a 90-day service JWT minted on the cabal this run brought up; scope `operator` is the operator token the run logged in with (cabal mints no long-lived operator tokens), which lasts `[cabal] operator_token_ttl_seconds` of cabal's identity file |
| `literal:<text>` | the text itself; for names, never for secrets |

An app with `cluster_objects` names files in its repo (cloned under `--repos`)
Expand Down Expand Up @@ -160,16 +158,19 @@ carries the old contract sha); the provision that follows regenerates it.
```

The same files behind buttons (stack#12). A **profile** is one install: a
name and paths — the stack file, and the kubeconfig and cloud account every
call is pinned to, so nothing depends on a shell export (the wrong-context
class of accident lives entirely in the shell). The list is
name and paths — the stack file (the one that ships with the installer unless
its settings say otherwise), the env file Gojira's values go to
(`~/.config/stack/<name>/gojira.env`), and the kubeconfig (the machine's own
for a cluster it knows, `~/.kube-<name>/config` for one the install makes) and
cloud account every call is pinned to, so nothing depends on a shell export
(the wrong-context class of accident lives entirely in the shell). The list is
`~/.config/stack/profiles.yaml`, or `$STACK_PROFILES`; it holds paths, never
contents. A profile's page shows what its stack file says, and its buttons:

- **Install Gojira** — when the profile's context has no Gojira, or no cluster
yet and the env file says terraform owns it, the page runs Gojira's own
`install.sh` from the checkout the profile names, with the env file the four
things wrote. Its lines stream like any run's. On an installed Gojira the same
`install.sh` from the release the stack file names (`gojira.version`, fetched
once into `~/.cache/stack/gojira/<version>`), with the env file the four things wrote. Its lines stream like any run's. On an installed Gojira the same
button reads "Run install.sh again": the upgrade path, idempotent.
- **Check** — preflight. Tools on PATH, every file the stack file names,
whether gh is logged in and its token sees the repos' orgs (a token with
Expand Down Expand Up @@ -200,8 +201,7 @@ is [docs/install.md](docs/install.md).
## What it needs

`kubectl` on the install's context, `gh` logged in with access to the repos,
`gcloud` on the project, `terraform` for Install Gojira, for a stack with
cabal a `cbl` binary (`--cbl`, from cabal's own venv), and for `upgrade`,
`gcloud` on the project, `git` and `terraform` for Install Gojira, and for `upgrade`,
`crane` (its registry auth comes from your docker credential helpers:
`gcloud auth configure-docker <host>` covers Artifact Registry). Gojira is
reached through a port-forward of its Service unless `gojira.url` is set.
Expand Down Expand Up @@ -240,7 +240,7 @@ uv venv .venv && uv sync --locked # the lock is the pin; --locked refuses a st
```

The tests run the installer against fakes of the four hands (Gojira's API,
kubectl, gh, cbl), including the checked-in example end to end.
kubectl, gh, cabal), including the checked-in example end to end.

## Community

Expand Down
38 changes: 20 additions & 18 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ registry and applies the manifests. Nothing is built.
|---|---|
| A GCP project with billing, and Owner on it | A throwaway. Gojira's identity gets broad IAM in it, and so does the room's. Fine for a sandbox and nowhere else. |
| A GitHub organization you administer | The deploy repos, kobo's config repo and every agent repo are created there. |
| `gcloud`, `kubectl`, `gh`, `terraform`, `uv`, `crane` | `gcloud components install gke-gcloud-auth-plugin` too. `crane` copies images (`brew install crane`). No Docker. |
| `git`, `gcloud`, `kubectl`, `gh`, `terraform`, `uv`, `crane` | `gcloud components install gke-gcloud-auth-plugin` too. `crane` copies images (`brew install crane`). No Docker. |
| `gcloud` and `gh` logged in | `gcloud auth login` as the project's owner; `gh auth login` as an account that can create repos in the org. |
| cabal's `cbl` | The switchboard's CLI, from a checkout of tenishai/cabal: `uv venv .venv && uv sync` there, then `.venv/bin/cbl`. The installer logs in to cabal with it once and mints the tokens the other apps hold. |
| About an hour | Gojira's install is sixteen minutes of it; the rest is reading. |

> More than one Google account on this machine? `kubectl` caches its token per
Expand All @@ -41,27 +40,30 @@ registry and applies the manifests. Nothing is built.
```bash
git clone https://github.com/tenishai/stack && cd stack
uv venv .venv && uv sync --locked --extra ui
git clone https://github.com/tenishai/gojira ../gojira # Gojira's own install scripts
.venv/bin/stack ui
```

`localhost:8097`. Add a profile: a name, and leave the cluster on "a new
cluster: this install makes it". The rest is prefilled from what the machine
knows and each box says what it is: the stack file `examples/stack.yaml` as it
is (nothing in it is edited); a kubeconfig of this install's own
(`~/.kube-<name>/config`, written when the cluster exists); your Google
account (the one gcloud is logged in as; a pick when there are several); an
env file for Gojira's values (`~/.config/stack/<name>/gojira.env`, need not
exist); the Gojira checkout `../gojira`; and cabal's `cbl`, the one box to
type. Picking an existing GKE cluster instead fills its project, region and
name on the next page.
cluster: this install makes it". The one other box, your Google account, is a
pick of the accounts gcloud is logged in as, with the one it uses now picked.
Nothing else is asked. The profile reads the stack file that ships with the
installer (`examples/stack.yaml`, the list of apps and their images; nothing in
it is edited), writes Gojira's values to `~/.config/stack/<name>/gojira.env`,
and keeps the new cluster's address in a kubeconfig of its own
(`~/.kube-<name>/config`, written when the cluster exists) so it stays out of
your other kubectl work; Profile settings can name other files later. Adding the profile fetches the
Gojira release the stack file names (`gojira.version`) into
`~/.cache/stack/gojira/<version>`: that is where Install Gojira runs from, and
nothing is cloned by hand. Picking an existing GKE cluster instead fills its
project, region and name on the next page.

## 2. Four things

The profile page opens on one card: your GitHub organization, your GCP project,
the region and the cluster name. Press **Save and write the env file**. The
page writes Gojira's values file from them and from the stack file, and shows
what the file now holds:
The profile page opens on one card: your GitHub organization (a pick of the
ones gh belongs to), your GCP project (a pick of the ones your Google account
can see), the region and the cluster name. Press **Save**. The page saves them
on the profile and writes Gojira's values file from them and from the stack
file; "What was written for Gojira" under the card shows what the file holds:

| Written | From |
|---|---|
Expand Down Expand Up @@ -108,7 +110,7 @@ Press **Install all 4**. One run, the apps in the file's order; the page shows
its lines as they happen. From a terminal it is:

```bash
.venv/bin/stack install examples/stack.yaml --merge-setup-prs --cbl <path to cbl> \
.venv/bin/stack install examples/stack.yaml --merge-setup-prs \
--env-file <the env file> --set org=… --set project=… --set region=… --set cluster=…
```

Expand All @@ -120,7 +122,7 @@ What you will see, in order:
the review: the repo exists for exactly this content). Its CI copies the image
and applies; pods come up.
3. **cabal**: the same, then the installer catches cabal's one-time bootstrap
code from its log, logs in with `cbl`, and mints the tokens liminal and kobo
code from its log, logs in with it, and mints the tokens liminal and kobo
will hold.
4. **liminal**: the same, holding its token.
5. **kobo**: the same, with the ClusterRole applied first and three Secrets; its
Expand Down
Loading
Loading