The session's image, self-test and home-cluster manifests (TUI-17) #38

Merged
merge-queue merged 2 commits from tui-17-deploy into main 2026-11-20 16:15:24 -08:00
Owner

The third stage of TUI-17, mail as a home service: what runs the session on the home cluster.

Added

  • Dockerfile: builds tuimail for Linux (SQLCipher with its own OpenSSL), crates through Artifact Keeper, base images by digest; runs tuimail session as uid 65534.
  • tuimail session --self-test (src/relay/selftest.rs): the image's smoke test, which the cluster-service suite runs read-only. The store encrypts (no plain text, no SQLite header, another key refused), the system's certificates are there, /health answers, and the relay takes a token signed by a key made for the test and refuses a bad one.
  • k8s/ (kustomize, namespace tuimail): Deployment (one replica, Recreate, read-only root, an init container giving the state volume to uid 65534 alone, since the session keeps its store only in a folder of its own), a 50 Gi state volume, Service, NetworkPolicy (8080 only), HTTPRoute tuimail.home.romaine.life with the down-alert annotations and no request timeout (the WebSocket stays open, as OpenProject's hocuspocus route does), ExternalSecrets for accounts.toml (secret/home/tuimail) and the store's key (secret/services/tuimail, recovery copy romaine-kv/tuimail-session-key, both made and checked equal), and the registry pull secret.
  • An ignored test, run by hand, that a real OpenBao token passes the session's check against OpenBao's live keys and a tampered one doesn't: run on nelsonpc, passed.
  • README and CLAUDE.md: where it runs and how it's released.

The image pin is a placeholder until this merge's release publishes the image and opens its pin PR. Nothing runs it yet: home-cluster's Argo CD app is added after that pin lands.

Unchanged: the app on the PCs.

The third stage of [TUI-17](https://openproject.home.romaine.life/wp/TUI-17), mail as a home service: what runs the session on the home cluster. **Added** - `Dockerfile`: builds `tuimail` for Linux (SQLCipher with its own OpenSSL), crates through Artifact Keeper, base images by digest; runs `tuimail session` as uid 65534. - `tuimail session --self-test` (`src/relay/selftest.rs`): the image's smoke test, which the cluster-service suite runs read-only. The store encrypts (no plain text, no SQLite header, another key refused), the system's certificates are there, `/health` answers, and the relay takes a token signed by a key made for the test and refuses a bad one. - `k8s/` (kustomize, namespace `tuimail`): Deployment (one replica, Recreate, read-only root, an init container giving the state volume to uid 65534 alone, since the session keeps its store only in a folder of its own), a 50 Gi state volume, Service, NetworkPolicy (8080 only), HTTPRoute `tuimail.home.romaine.life` with the down-alert annotations and no request timeout (the WebSocket stays open, as OpenProject's hocuspocus route does), ExternalSecrets for `accounts.toml` (`secret/home/tuimail`) and the store's key (`secret/services/tuimail`, recovery copy `romaine-kv/tuimail-session-key`, both made and checked equal), and the registry pull secret. - An ignored test, run by hand, that a real OpenBao token passes the session's check against OpenBao's live keys and a tampered one doesn't: run on nelsonpc, passed. - README and CLAUDE.md: where it runs and how it's released. **The image pin** is a placeholder until this merge's release publishes the image and opens its pin PR. Nothing runs it yet: home-cluster's Argo CD app is added after that pin lands. **Unchanged:** the app on the PCs.
A by-hand test of the token check against OpenBao itself (TUI-17)
All checks were successful
Suite rust / check-services (pull_request) Successful in 1m56s
Suite release / check-package (pull_request) Successful in 3m24s
Suite default / reused-checks (pull_request) Successful in 10s
Suite cluster-service / reused-checks (pull_request) Successful in 10s
Suite release / dispatch (pull_request) Has been skipped
Suite rust / check-format (pull_request) Successful in 9s
Suite release / publish (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite rust / check-machete (pull_request) Has been skipped
Suite rust / check-audit (pull_request) Has been skipped
Suite cluster-service / check-image (pull_request) Has been skipped
Suite cluster-service / publish (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / build (rust, x86_64-unknown-linux-gnu) (, rust-x86_64-unknown-linux-gnu, false, ubuntu-latest, x86_64-unknown-linux-gnu, rust) (pull_request) Has been skipped
Suite release / home-sync (pull_request) Has been skipped
Suite cluster-service / check-manifests (pull_request) Successful in 6s
Suite default / check-fetches (pull_request) Successful in 7s
Suite release / check-build (rust, aarch64-unknown-linux-gnu) (, rust-aarch64-unknown-linux-gnu, false, ubuntu-latest, aarch64-unknown-linux-gnu, rust) (pull_request) Successful in 1m27s
Suite release / check-build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request) Successful in 2m20s
Suite release / check-build (rust, x86_64-unknown-linux-gnu) (, rust-x86_64-unknown-linux-gnu, false, ubuntu-latest, x86_64-unknown-linux-gnu, rust) (pull_request) Successful in 2m23s
Suite release / check-build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (pull_request) Successful in 3m11s
Suite release / build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (pull_request) Has been skipped
Suite release / build (rust, aarch64-unknown-linux-gnu) (, rust-aarch64-unknown-linux-gnu, false, ubuntu-latest, aarch64-unknown-linux-gnu, rust) (pull_request) Has been skipped
Suite release / build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite rust / check-test-windows (pull_request) Successful in 2m2s
Suite rust / reused-checks (pull_request) Successful in 5s
Suite release / reused-checks (pull_request) Successful in 4s
merge-queue landed on main
d8a152cd1d
merge-queue deleted branch tui-17-deploy 2026-11-20 16:15:24 -08:00
Sign in to join this conversation.
No description provided.