Followup from commit dba8a2d's findings. ConfigMixin._save_knoe_cfg in
knoe/ui/screens/cfg.py reads Tk widget vars via `var.get()` and writes
the result to conf/<mode>.cfg. When a var is a MagicMock (interactive
./install.py run in a non-Tk context, partially-mocked widgets), the
save path serializes the mock's repr-string into the cfg, then the next
installer pass calls os.makedirs() on those values and produces
directories literally named `<MagicMock name='Canvas().tk.call().strip()'
id='4743999712'>/`.
The brief lays out a TDD approach for Junie:
1. Write failing test at tests/installer/test_cfg_save_refuses_mock_values.py
that passes MagicMock widget vars and asserts _save_knoe_cfg raises
TypeError naming the field.
2. Implement the minimal fix: a `_str_value(var, field=...)` helper in
cfg.py that validates widget reads and raises if non-str. Use it
in the .get()/.strip() chains across lines 103-155.
3. Verify the 750 existing installer tests still pass.
Brief includes file pointers (cfg.py:44 _save_knoe_cfg, line 102
globals_to_save assembly, line 277 cfg_path.write_text), the canonical
failing test stub, both fix-approach options (per-read validator vs
end-of-flow dict walk), and explicit commit-shape guidance.
Index updates:
docs/plans/junie/README.md — todo-1 row added under Active
docs/TODO.md §"In progress" — todo-1 promoted above Phase 3 (smaller
scope, easy to land first)
Naming convention: `todo-N-<slug>.md` for follow-up bugs, distinct from
the `NN-<slug>.md` pattern reserved for ranked queue items.
45 KiB
Master TODO index
Single source of truth for unfinished work in this repo. Captures items that surfaced across the autobuild pipeline phases, the 2026-04-28 → 2026-04-29 cluster recovery / Maven build readiness work, the 2026-04-29 CNPG operator + backup stabilization work, and reality-vs-intent drift in the docs.
When you pick something up, move it from the ranked queue into the Now section. When it lands, archive it into the Done section at the bottom (or delete if it's not worth memorializing).
When you discover a new item, add it to the ranked queue. Default rank: bottom. Move it up later if it gets pulled in.
The Kanban "Now" section at top is the only place this doc imposes structure. Everything below "Now" is a numbered list — top of the list is next-most-important.
Now (Kanban)
In progress
-
TODO-1 — cfg save path refuses non-string widget values — assigned to Junie. Followup from commit
dba8a2d's findings.ConfigMixin._save_knoe_cfginknoe/ui/screens/cfg.pycallsvar.get()on Tk widget vars and serializes the result; if a var is aMagicMock(interactive run in a non-Tk context, headless env, partial mock setup, etc.), the save path writes<MagicMock name='Canvas().tk.call().strip()' id='…'>strings intoconf/<mode>.cfg. The next installer pass thenos.makedirs()on those values, producing absurdly-named directories on disk. Saw it firsthand on 2026-05-02; cleaned up indba8a2d. This brief is the durable fix: TDD-style failing test first, then a_str_value()validator in the save path that raisesTypeErroron non-str widget reads. Brief:docs/plans/junie/todo-1-cfg-save-path-bug.md. -
k3d-mirror-of-GKE Phase 3 — knoe-auth as a pod inside k3d — assigned to Junie. Pre-merge smoke loop: build the
knoe-auth:latestimage (using themake docker-build-authtarget shipped in commit903f84f), import it into the k3d cluster (k3d image import), apply a k3d-flavouredDeploymentmanifest (sibling ofdeploy/gcp/gke/knoe-auth-deployment.yaml, but withimagePullPolicy: Neverand realmKNOE.LOCAL), and run the keytab-bootstrap initContainer + KDC sidecar pattern in-cluster. Newmake k3d-knoe-{deploy,redeploy,undeploy}targets. Phase 2 OIDC signing key flows frometc/secrets/knoe-auth-oidc-key.b64into a K8s Secret (knoe-auth-oidc-signing-keyinknoe-system) so the in-cluster pod gets it the same way GKE does. Brief:docs/plans/junie/k3d-knoe-auth-pod-deploy.md. Architectural plan:docs/plans/k3d-gke-mirror.md§6 Phase 3.
Paused
- pg_oauth in install/deploy.sh + k3d build — previously assigned to Junie; paused. The Phase 1 work (per-engineer roles, external LB at
pg.0.knoe.dev, cert SANs, pg_hba tightening,docs/db-access.md) is committed. This phase replaces the SCRAM password mechanism with PG18 native OAUTHBEARER, wires it intoinstall.sh/supabase/deploy.shso a fresh deploy lands with the OIDC mechanism active by default, and ports the Service + cluster cert pattern to k3d. Connection target stays atpg.0.knoe.dev; only the credential issuance changes (libpq Device Flow → knoe-auth Bearer token). OIDC issuer now deployed to GKE (2026-05-02) — pg_oauth can resume.
Up next
(empty — pull from the ranked queue below)
Blocked
(none currently)
Next (ranked queue — top of list = next-most-important)
Note: numbering retained from the original queue (no #1) so the Junie briefs in
plans/junie/keep their<NN>-…filename match. #1 (installer env-contamination guard) shipped 2026-05-01; see the Done section.
-
Port oauth2-proxy manifest to k3d / k3s / min modes —
deploy/gcp/gke/oauth2-proxy-deployment.yamlis GKE-shaped (usescloud.google.com/v1BackendConfig + GCE health-check semantics). For non-GCE deploy modes the same Deployment runs unchanged but the ingress glue differs (Traefik / nginx-ingress / no LB at all). Add adeploy/k3s/oauth2-proxy-deployment.yamlwith the Traefik-flavored ingress annotations once we deploy that mode. -
Wire GoTrue (
supabase-auth) Google provider for Supabase API clients — different surface than the Studio gate (which oauth2-proxy now handles). Once we have client apps that authenticate end-users via Supabase Auth, configure GoTrue's Google provider with its own OAuth client. Seedocs/oidc-setup.mdfor the secret indirection pattern. -
Audit-log story for the multi-tenant Studio phase — Studio doesn't track per-user actions in self-hosted; oauth2-proxy forwards the
Authorization: Bearer <id_token>header to Kong (--pass-authorization-header=true/--set-authorization-header=true) but nothing reads it. When the multi-tenant control plane lands (per-user / per-project Studios), wire a Kong logging plugin that captures the email claim from the JWT and emits to a structured log sink. -
Retire
api.0.knoe.devIngress rule + managed cert —db.0.knoe.devnow serves both Studio (Google-gated) and the SDK API surface (Kong key-auth) via oauth2-proxy--skip-auth-route.api.0.knoe.devremains as an alias for backward compatibility, but new docs/onboarding should point todb.0.knoe.dev. When external clients have all migrated: drop theapi.0.knoe.devrule from the supabase-kong Ingress and thesupabase-api-managed-certManagedCertificate. Until then, the alias is harmless (same backend, same key-auth). -
Fork the Supabase Studio image to wire in-app help / support / feedback buttons to
mailto:support@knoe.dev(orhttps://db.0.knoe.dev/support) — upstream Studio (supabase/studio:2026.02.16-sha-26c615c) hardcodes those URLs to Supabase-cloud endpoints (supabase.com/dashboard/api/feedbacketc.) which are unreachable from self-hosted, so the in-app "Report a problem" / "Send feedback" / "Get help" flows error out. No env-var hook exists in upstream — verified by Explore search. Fork the image, patch the relevant TSX (apps/studio/components/layouts/AppLayout/AppLayout.tsx, support-dialog component, settings/help links — handful of files), publish to our registry, bumpimage.studio.repositoryinsupabase/helm/knoe-supabase/values.yaml. Same fork is the natural place to fix the OpenAI key panel, telemetry endpoints, and any other in-Studio assumptions about Supabase cloud as we encounter them. Stop-gap until then:https://db.0.knoe.dev/support302s tomailto:support@knoe.dev(Kong routesupport); just need to tell users to bookmark or remember it. -
Migrate cnpg-prometheus datasource UID to the stable
cnpg-prometheusname — currently the live datasource has the auto-generated UIDP5531627C358300FEfrom the original kps install. We pinneduid: cnpg-prometheusinmonitoring/kps-values-gke.yamlso any FRESH kps install lands on the stable name, but Grafana refuses to change the UID of an already-provisioned datasource (read-only via API; rollout-restart doesn't migrate it). The dashboard transformmonitoring/cnpg-dashboard-transforms.yamlds_prometheus_default_to_cnpgcarries the auto-uid as a workaround. Migration path on the next clean kps re-install (or after a maintenance window where we can wipe the Grafana sqlite DB to drop datasources): swapvalue: P5531627C358300FE→value: cnpg-prometheusin the transform and re-run the sync tool. No client-visible change either way.
Reality-vs-intent gaps
Items where docs describe an intended state that doesn't match live state. Each links to where reality is documented. Closing the gap means either updating the doc to match reality permanently, or doing the work to make reality match.
| # | Reality (current) | Intended state | Documented at | Tracked work item |
|---|
Later
-
Round 1.5: OpenBao transit-key encryption for per-user secrets at rest —
authority/src/main/java/dev/knoe/auth/enroll/UserProvisioningService.java:84has// TODO Round 1.5: encrypt secret with OpenBao transit key before storing.Currently TOTP secrets and similar long-lived per-user state go toknoe.*tables with PG-level encryption-at-rest only. Round 1.5 wraps writes/reads with an OpenBao transit-key envelope. Seedocs/plans/knoe-auth-round-1.md§8 "Out of scope for Round 1". -
knoe-db/docker-entrypoint.sh:3swap toset -Eeuo pipefail— currentset -eonly. Marked as TODO in the file: "swap to -Eeuo pipefail above (after handling all potentially-unset variables)". Needs an audit pass over the script for unset-var safety first. -
Customer-deploy-resync execution decision — currently no separate
~/dev/proleworking tree under development; the plan indocs/plans/customer-deploy-resync.mdis dormant. Decision: do we ever activate the per-customer branching workflow (e.g. for a future second customer), or formalize "single-tenant for now" and remove the plan?
Deferred / Out of scope
-
Studio Database Advisor — Performance: unindexed FKs in upstream-managed schemas — 6 FKs flagged on a fresh project:
auth.mfa_challenges.factor_id,auth.saml_relay_states.flow_state_id,auth.oauth_authorizations.{client_id, user_id},storage.s3_multipart_uploads_parts.{upload_id, bucket_id}. Adding indexes to upstream-managed tables risks conflict on the next supabase-auth / supabase-storage migration. Wait for upstream fixes; revisit if these turn out to be load-bearing for our usage. -
com.knoey.authopen-source split — saved for the major collaboration (per user memory: "we are saving knoey.com/auth for the major collaboration"). Will require a separate repo extraction and licensing pass. -
"Test ssh to Gitea" task — orphaned during a previous Cowork+Code session when the Dispatch connection was lost. May or may not still be relevant.
-
Volume snapshot backups (CNPG
VolumeSnapshotmethod) — alternative to barman tarball. Considered during the 2026-04-29 outage debugging when barman-cloud-backup looked broken; now that GCS+barman is verified working, no immediate need. Worth revisiting if barman shows further fragility. -
File the upstream
plugin-barman-cloudissue about the misleadingReferenceError: weakly-referenced object no longer existstraceback that fires on persistent 5xx responses. Issue #707 is closed but didn't capture this pattern; ours is a clearer reproduction. Defer — the upstream is responsive but the workaround (sufficient bucket capacity + correct IAM) is good enough.
Done
(items get archived here when they land, with a date and commit reference; or just delete if not worth memorializing)
-
2026-05-02 — Phase 2 OIDC provider — GKE deploy (brief:
docs/plans/junie/phase2-oidc-gke-deploy.md).KNOE_AUTH_OIDC_ENABLED=trueandKNOE_AUTH_OIDC_ISSUER=https://api.knoe.dev/authset indeploy/gcp/gke/knoe-auth-deployment.yaml. Kong/authroute added tosupabase/helm/knoe-supabase/templates/kong/config.yaml(proxies toknoe-auth.knoe-system.svc.cluster.local:8080; GoTrue/auth/v1/*routes unaffected).studioIngressandknoeAuthdefault blocks added tovalues.yaml(fixeshelm lint). Signing key wired viaknoe-auth-oidcK8s Secret sourced from 1Password viainit_knoe_auth.sh initialize. Unblocks pg_oauth resume. -
2026-05-02 — Image rename
knoe-authority→knoe-auth(queue #3 / drift R6).authority/Dockerfile.appadded (Spring Boot multi-stage build).make docker-build-auth/make docker-push-authtargets added. Three image refs indeploy/gcp/gke/knoe-auth-deployment.yamland two indeploy/opentofu/k3s/manifests/knoe/knoe-auth-deployment.yamlupdated fromknoe-authority:latest→knoe-auth:latest.docs/knoe-system.md§3 caveat removed. Brief:docs/plans/junie/03-image-rename-knoe-authority-to-knoe-auth.md. -
2026-05-02 — Image rename
knoe-authority→knoe-auth(queue #3 / drift R6).authority/Dockerfile.appadded (Spring Boot multi-stage build).make docker-build-auth/make docker-push-authtargets added. Three image refs indeploy/gcp/gke/knoe-auth-deployment.yamland two indeploy/opentofu/k3s/manifests/knoe/knoe-auth-deployment.yamlupdated fromknoe-authority:latest→knoe-auth:latest.docs/knoe-system.md§3 caveat removed. Brief:docs/plans/junie/03-image-rename-knoe-authority-to-knoe-auth.md. -
2026-05-02 — k3d-mirror-of-GKE Phase 1: laptop dev loop for knoe-auth (k3d brief). Smallest k3d-resident stack (CNPG single-replica + standalone KDC, realm
KNOE.LOCAL) that lets a host-side knoe-auth iterate against real Postgres + Kerberos. Deliverables:k8s/knoe/knoe-kdc-{configmap,deployment,service,pvc,init-job}.yaml,etc/init_knoe_auth.sh --mode k3dflag (extends existing script; GKE behavior unchanged),make k3d-knoe-{up,pf,down}targets,etc/krb5.local.conf(TCP-forced,udp_preference_limit=1),docs/local-dev-knoe-auth.md,scripts/k3d-knoe-{up,pf,down,smoke}.sh. Design choice: extendedinit_knoe_auth.shwith--mode k3drather than a sibling script — minimizes drift, sameschema/statussubcommands work in both modes. Brief:docs/plans/junie/k3d-knoe-auth-dev-loop.md. -
2026-05-02 — k3d dev-user seed:
chrisfu+knoe_developer(commit pending).etc/init_knoe_auth.sh --mode k3d(called bycmd_initialize_k3d) now runsseed_dev_users_k3d()after the schema bootstrap. Creates theknoe_developergroup role with R/W onknoe+public(mirrors the GKE production layout fromdocs/db-access.md) and achrisfuLOGIN role with passwordchrisfu-devgranted into the group. Idempotent: rebuild loop (make k3d-knoe-down && make k3d-knoe-up) deterministically resets chrisfu's password back tochrisfu-devso the engineer always knows what to use post-rebuild. From the host with port-forward up:PGPASSWORD=chrisfu-dev psql "postgresql://chrisfu@localhost:5432/knoe-db?sslmode=require"connects.docs/local-dev-knoe-auth.md"Verify psql connectivity" + "Reset / rebuild loop" sections updated.docs/knoe-system.md§"One-time cluster setup" mentions the chrisfu seed. Closes the local-side of "I want auth as chrisfu@knoey.com to my local cnpg" — Kerberos principal + knoe.user/knoe.identity rows are deferred (separate work if needed). -
2026-05-02 — Phase 2 OIDC k3d dev sandbox (commit pending). Companion to the k3d Phase 1 brief — completes the laptop dev loop for knoe-auth Phase 2. New
authority/src/main/resources/application-k3d.ymlSpring profile activates the OIDC surface with local issuer (http://localhost:8080); newetc/gen_oidc_signing_key.shidempotently generates an RS256 PKCS#8 keypair atetc/secrets/knoe-auth-oidc-key.{pem,b64}(gitignored);scripts/k3d-knoe-up.shruns the generator after schema seed;scripts/k3d-knoe-pf.shprints the env-var export the engineer needs (export KNOE_AUTH_OIDC_SIGNING_KEY=$(cat etc/secrets/knoe-auth-oidc-key.b64)) plus the OIDC endpoint surface to curl-test.docs/local-dev-knoe-auth.mdupdated to use-Dspring-boot.run.profiles=k3d, the env var is exported, and the verify section now includes a/jwks.jsoncurl.docs/knoe-system.mdPhase 2 status flipped from "Planned" to "Shipped (k3d sandbox)" / "Pending (GKE deploy)". GKE-side Phase 2 deploy is now the open work item in TODO §"In progress" (gated on queue #3 image rename for the rebuild). -
2026-05-02 — k3d Phase 1 dev loop for knoe-auth (commit
5d36008). Junie's Phase 1 brief landed — laptop dev loop with CNPG (single-replica) + KDC (realmKNOE.LOCAL) reachable from host viamake k3d-knoe-{up,pf,down}. New: 5 KDC manifests underk8s/knoe/knoe-kdc-*.yaml, 4 helper scripts underscripts/k3d-knoe-*.sh,etc/krb5.local.conf(withudp_preference_limit=1to dodge kubectl port-forward UDP flakiness on macOS),docs/local-dev-knoe-auth.mdengineer doc, anddocs/knoe-system.mdunified reference.etc/init_knoe_auth.shextended with--mode k3dflag (GKE behavior unchanged). Brief:docs/plans/junie/k3d-knoe-auth-dev-loop.md. Architectural plan:docs/plans/k3d-gke-mirror.md. -
2026-05-02 — Garage decommissioned on app cluster
knoe-dev-0(queue #4 closure). Reframed mid-flight: the original "verify withgarage repair --yes blocks" premise didn't match reality. Live garage was unconfigured (garage status→ NO ROLE ASSIGNED,garage layout show→ version 0, 21d of "Ring not yet ready" warnings); cross-cluster sweep confirmed nothing referenced its S3 endpoint anymore (CNPG backups moved to GCS in 2026-04-29 migration). Removed the entire workload fromknoe-systemnamespace mirroring the 2026-04-29 DB-cluster removal:sts/garage,svc/garage,cm/garage-config,secret/garage-secrets,pvc/data-garage-0(29 Gi, was ongarage-hddstorage class), and thegarage-hddStorageClass itself. PV hadreclaim=Retainso the underlying GCE pd-standard disk (pvc-656e1936-…inus-west3-c) persisted past the kubectl-side cleanup; reclaimed viagcloud compute disks delete. Note: app cluster only had a ClusterIP service — nogarage-s3-ilbLoadBalancer (DB cluster had that). Source manifests remain atk8s/knoe/garage-*.yaml,deploy/opentofu/k3s/manifests/knoe/garage-*.yaml, andetc/init_garage_store.shfor the k3d/k3s/min deploy modes (and any future GKE deploy that wants to wire garage back). Whether the GKE deploy mode should stop applying garage altogether is a separate decision. -
2026-05-02 — Phase B orphan cleanup (queue #5). Five resources deleted across both clusters. App cluster (
knoe-dev-0):gitlab/gitlab-migrations-58a3e27-97-23-n72j8(Failed/Evicted, 11d stale; the parallel…-nxzj5Completed pod kept for log preservation), and three Released PVs from the 2026-04-28 monitoring stack rebuild —pvc-42e8545b-…(10Gi, claim=monitoring/storage-kps-grafana-0),pvc-86422179-…(30Gi, claim=monitoring/prometheus-…-prometheus-0),pvc-e2c29f7a-…(5Gi, claim=monitoring/alertmanager-…-alertmanager-0); all onstandard-hdd, all 4d old, all matching the expected claimRef pattern, no surprises. DB cluster (knoe-dev-cnpg-0):kube-system/prole-supabase-dirprepJob (FailureTarget, 22d stale, prole-era). Post-state:kubectl get pvshows 0 Released; gitlab namespace has only the Completed migration pod; DB-cluster kube-system has no prole-* artifacts. No source-side changes (kubectl-only ops). -
2026-05-02 — Reframe queue #4 (Garage block-resync repair → garage decommission decision). Tried to run the planned
garage repair --yes blocksbut found the cluster in an unconfigured state:garage statusshows the single node with NO ROLE ASSIGNED, layout version 0 (was at v10 after 2026-04-29 storage resize — likely lost during a subsequent reconcile or PVC operation). Pod is up 21d but the "Ring not yet ready" warnings indicate it's been non-functional since whenever the layout was lost. Sweep across all namespaces' configmaps/secrets shows nothing outside garage's own state references the S3 endpoint or10.180.15.239:3900. Conclusion: garage on app-cluster is a dead pod consuming 80GiB and serving no workload. Original block-repair premise is moot. Reframed the queue item as a decommission-or-restore decision; details in the entry above. Action deferred pending direction. -
2026-05-02 — Apply Junie's PodMonitor migration + DASHBOARD removal to live (queue #13 + #15 follow-up; commit 03bb731 for chart fixes). Source landed in c3fae73; this is the corresponding live-cluster apply on
knoe-dev-cnpg-0+knoe-dev-0. Sequence: applied updatedknoe-db.yaml→ CNPG GC'd its auto-managed PodMonitor (deleted on poll attempt 1, ~2s) → applied manualknoe-db-podmonitor.yaml(now ownerRef=<none>, survives future cluster spec changes) → verified Prometheus still scraping all 3 postgres exporters (health=upon 10.24.{0,1,2}.x:9187) andcnpg_pg_stat_archiver_archived_count{cluster="knoe-db"}returns data confirming cluster-label relabel still works. Thenhelm upgrade supabase ./supabase/helm/knoe-supabase --reset-then-reuse-values(revision 1 → 3 after a partial-failure retry); configmap field-manager dual-ownership conflict resolved by deleting + recreating fresh under helm. Two chart cleanups required as follow-ups (committed as03bb731): deletedtemplates/test/kong.yaml(helm-test job for the now-dead dashboard basic-auth gate) and addedsecret.oauth2proxydefaults in values.yaml so the vestigialtemplates/studio/oauth2proxy-*.yamlchart resources (Junie Phase-2 OIDC artifacts; the deployed oauth2-proxy lives outside this chart atdeploy/gcp/gke/oauth2-proxy-deployment.yamland goes in FRONT of supabase-kong, not behind it) can evaluate guards cleanly. Side-finding closed live: all 3 knoe-dev-0 nodes had the legacyprole.org/node-role=generallabel only; Junie's chart defaults tonodeAffinity: knoe.dev/node-role=general, which made the new kong pod stuck in Pending. Labelled all 3 nodes withknoe.dev/node-role=general(additive — kept the prole.org label too for any other manifests still referencing it). DB cluster still on legacy-label-only; reapply when relevant. External smoke tests post-upgrade:/onboard.html→200,/rest/v1/no-auth→401,/→302,/healthz→302,svc.knoe.dev/grafana/login→200. -
2026-05-02 — Wire
cnpg-backup-sainto CNPG cluster spec + init script (queue #7 / drift R8).deploy/gcp/gke/knoe-db.yamlgainsspec.serviceAccountName: cnpg-backup-sa(requires CNPG v1.29+).etc/init_cnpg_gke.sh: operator install URL now usesCNPG_OPERATOR_VERSIONvariable (default1.29.0); new §11 patches bothknoe-dbandknoe-db-barman-cloudRoleBindings to addcnpg-backup-saas a subject if not already present, matching the 2026-04-29 live stabilization.bash -nclean. Brief:docs/plans/junie/07-init-cnpg-gke-sa-wiring.md. -
2026-05-02 — Migrate off CNPG-deprecated
enablePodMonitor+podMonitorRelabelings(queue #13). Both deprecated fields removed fromdeploy/gcp/gke/knoe-db.yamlspec.monitoring. New sibling manifestdeploy/gcp/gke/knoe-db-podmonitor.yamlcarries thePodMonitorwith theclusterrelabeling rule (sourced fromcnpg.io/clusterpod label; required for all 85 CNPG Grafana dashboard panels). Apply alongsideknoe-db.yaml. Brief:docs/plans/junie/13-podmonitor-manual-management.md. -
2026-05-02 — Remove dead DASHBOARD consumer +
basicauth_credentialsfrom Kong chart (queue #15).supabase/helm/knoe-supabase: removedDASHBOARD_USERNAME/DASHBOARD_PASSWORDenvsubst lines fromwrapper.sh, DASHBOARD consumer +basicauth_credentialsblock fromconfig.yaml, and both env-var secret refs fromkong/deployment.yaml.values.yamlsecret.dashboardsection renamed tosecret.openai(onlyapiKeyfield;username/passworddropped).templates/secrets/dashboard.yaml+_helpers.tplupdated toopenai/supabase.secret.openai.studio/deployment.yamlupdated to read fromsecret.openai.apiKey.ci/example.yamlupdated.helm templateconfirmsknoe-supabase-openaisecret referenced, no DASHBOARD output. Brief:docs/plans/junie/15-remove-dead-dashboard-consumer.md. -
2026-05-02 — k3s manifest rename:
prole-*→knoe-*(queue #2 / drift R5) in commit fb7e8b7. Fivegit mvindeploy/opentofu/k3s/manifests/knoe/:prole-{configmap,deployment,service,kdc-configmap,kdc-secrets.example}.yaml→knoe-*. Content sweep ofknoe-kdc-configmap.yaml: replaced stalePROLE.LOCAL/PROLE.ORGrealm refs andPROLE_KDC_*env vars withKNOE.DEV/KNOE_KDC_*to match the canonical GKE configmap. Kustomize renders cleanly (kubectl kustomize→ 1193 lines, exit 0). Brief:docs/plans/junie/02-k3s-prole-rename.md. -
2026-05-02 — Fix
scripts/patch_garage_cross_cluster.sh(queue #6 / drift R9) in commits 34a25dd + e9df3c4. Three defects from the 2026-04-29 one-shot run: (A)DB_CLUSTERdefaultknoe-cnpg-0→knoe-dev-cnpg-0(stale rebrand artifact; header comment + overrides block also updated); (B) Phase 1 deletion loop now includesservice/garage-s3-ilb(the LoadBalancer that was left orphaned after the original run); (C)deploy/gcp/gke/knoe-db-backup-gcs.yamlsplit — legacyScheduledBackupwith deprecatedmethod: barmanObjectStoreremoved, file is now SA-only.bash -nclean; CONFIRM=false dry-run prints correct cluster names. Brief:docs/plans/junie/06-patch-garage-script-fixes.md. -
2026-05-01 — Installer env-contamination guard (queue #1 / drift R4) (commit pending). Filed in response to the 2026-04-28 14:00 UTC backup outage (an
install.sh --mode k3drun with the shell pointed at GKE replaced the GCS-backed ObjectStore with a Garage-backed one). New shared bash helperetc/preflight_kubecontext.shwith two functions:verify_kubecontext_matches_config <cfg>(strict gate; reads[Global] APP_CLUSTER_KUBECONTEXTfrom the config and exits 1 ifkubectl config current-contextdiffers), andprint_kubecontext_notice(informational).deploy.shsources the helper and calls the strict gate before invoking the Python deploy pipeline.install.shcalls the informational notice (gated on not---min) so the user sees the inherited context up-front before the TUI launches; the mode-aware strict gate for the interactive path is a follow-up for the welcome screen once it records mode. Bypass withKNOE_SKIP_KUBECONTEXT_GUARD=truefor deliberate cross-cluster maintenance. Verified end-to-end: deploy.sh refuses on mismatch with a clear remediation message; bypass override works; install.sh's--minpath skips the notice; install.sh's no-flag and other-flag paths print the notice. CLAUDE.md drift table row R4 removed; §"Env-contamination warning" rewritten to describe the live guard. Closes the 2026-04-28 14:00 UTC outage feedback loop. -
2026-05-01 — Cross-cluster CNPG metrics via DB-cluster Prometheus (commit pending). Solves the
cloudnative-pgGrafana dashboard's "No data" problem from queue item #12. Picked path (c) over the originally-recommended (b) for DB-cluster autonomy + pattern symmetry — each cluster owns its observability footprint, and a future second DB cluster reuses the recipe one-for-one. Installed kube-prometheus-stack v84.3.0 onknoe-dev-cnpg-0(monitoringnamespace), Grafana + Alertmanager disabled (single canonical Grafana stays on app cluster). All PVCs explicitly pinned tostandard-hdd(per the user's standing rule on SSD-quota preservation; verifiedprometheus-...-0PVC bound 20Gistandard-hdd). New ILBprometheus-cnpg-ilbin DB-clustermonitoringns at10.180.15.216:9090, reachable from app-cluster pods over the shared VPC. Newcnpg-prometheusdatasource added to app-cluster Grafana viamonitoring/kps-values-gke.yamlgrafana.additionalDataSources. Side-fix: removed an orphanknoe-grafana-datasourceConfigMap thatetc/init_monitoring.sh:apply_grafana_datasource()had been creating with a duplicateuid: prometheus— caused Grafana's provisioning reload to fail with HTTP 500 once any second datasource arrived. Function neutered to a no-op with a clear comment; chart values are now the single source of truth for datasources. Verified end-to-end: Prometheus on DB cluster discovers all 3 CNPG postgres pods (knoe-db-2/3/4 at 10.24.x.x:9187, allhealth=up); Grafana datasource health endpoint returnsSuccessfully queried the Prometheus API;cnpg_pg_stat_archiver_archived_countquery through Grafana proxy returns live data (704 archived WAL files at time of test). To complete: switch each cnpg-grafana dashboard'sDS_PROMETHEUStemplate variable tocnpg-prometheus(one-click). New files:monitoring/kps-cnpg-values.yaml,deploy/gcp/gke/cnpg-prometheus-ilb.yaml. Modified:monitoring/kps-values-gke.yaml(datasource added),etc/init_monitoring.sh(function no-op'd). Out of scope (Phase 2): federate alerts back to app-cluster Alertmanager; reserve a static internal IP so the ILB doesn't drift on re-create. -
2026-04-30 — Bump postgres pod memory limit 512Mi → 2Gi (commit pending). Long-standing throughput cliff:
barman-cloud-backupis single-threaded gzip + GCS upload buffering, ceiling-bound by the pod's memory limit. The 9 GB DB took 30–90 min to back up at 512Mi; 2Gi cuts that to 5–10 min. requests left at 128Mi (no scheduling change; this is purely a ceiling bump). Patched live withkubectl patch cluster knoe-db --type=merge -p '{"spec":{"resources":{"limits":{"memory":"2Gi"}}}}'; CNPG operator performed a supervised rolling restart (replicas first, primary last). Repo source updated atdeploy/gcp/gke/knoe-db.yaml. Pre-flight verified no external psql sessions (chrisfu/ron not connected); 39 internal sessions FATAL'd through the rolling restart and reconnected via their pools — supabase + gitlab + streaming_replica all stable post-rollout. Closes drift R3. k3s + k8s mode resource limits remain at 512Mi (not exposed in those manifests today); cross-mode parity folded into queue item #8 ("Port oauth2-proxy manifest to k3d/k3s/min modes"). -
2026-04-30 — Align
knoe/core/actions.pycluster-name + machine-type defaults with live state (commit pending). Two stale constants since the rebrand:DEFAULT_DB_CLUSTER_NAME = "knoe-cnpg-0"(live:knoe-dev-cnpg-0) andDEFAULT_APP_CLUSTER_MACHINE_TYPE = "e2-small"(live:e2-standard-2). Updated both atknoe/core/actions.pylines 121 + 123. Verified:python3 -c "from knoe.core.actions import ..."reads the new values; pytest collection error count went from 8 → 7 post-edit (one of the pre-existing collection errors apparently went away when the import resolved differently — no regression). Closes drift R1 + R2 in CLAUDE.md (footnotes + drift table rows + the# STALEinline comments in the §"Cluster code constants" code block all dropped). Implicitly closes the formerly-#8 queue item ("Update CLAUDE.md cluster table once defaults match") in this same commit. Queue renumbered: #2 (this item) and #8 dropped, gaps closed. -
2026-04-30 — Drop redundant GCP IAM workloadIdentityUser binding (commit pending). v1.28-era leftover:
[knoe-db-0/knoe-db]was bound alongside the active[knoe-db-0/cnpg-backup-sa]on thecnpg-backup@…GCP SA. Pods have usedcnpg-backup-sasince the 2026-04-29 stabilization (commit e92cd8b), so the older binding was dead config — kept around because removing it required a reasoned check that no in-flight job still authenticated under the old identity. Verified live (gcloud iam service-accounts get-iam-policy), dropped viagcloud iam service-accounts remove-iam-policy-binding, re-verified the SA's policy now has only[knoe-db-0/cnpg-backup-sa]. CNPG primary still healthy (SELECT 1returned cleanly post-removal). Closes drift R7. Removed the matching CLAUDE.md Reality TODO + drift table row. -
2026-04-30 — Grafana at
svc.knoe.dev/grafanawith Google OAuth (commit pending). Diagnosed thesvc.knoe.dev"name resolution failed" error:knoe-svc-kong-confighad its grafana service pointing atprometheus-grafana.monitoring.svc.cluster.local:80— the OLD upstream name from before the kube-prometheus-stack chart renamed tokps-grafana. Kong was DNS-failing every request to that vanished service and surfacing the Kong-style "name resolution failed" error to clients. Fixed the upstream + scoped the route to/grafana(so other surfaces can land atsvc.knoe.dev/*later). Layered Grafana's native Google OAuth via auth.google config inmonitoring/kps-values-gke.yaml(new — captures previously-uncommitted live Helm values + adds the auth additions). Role mapping via JMESPath:contains(['chrisfu@knoey.com', 'ron@knoey.com'], email) && 'Admin' || 'Editor'— anyone @knoey.com gets Editor, chrisfu+ron get Admin. New manifests:deploy/gcp/gke/grafana-google-oidc-secret.example.yaml,etc/init_grafana_oauth.sh,monitoring/kps-values-gke.yaml. Repo Kong source updated atdeploy/opentofu/k3s/manifests/knoe/kong-configmap.yaml(.org→.devrebrand, healthz route restored,/grafanascoping). Verified externally:/grafana/login→ 200;/grafana/login/google→ 302accounts.google.comwith the right client_id; subpath assets load; Studio + SDK paths on db.0.knoe.dev unchanged. Browser walkthrough (chrisfu sign-in → Admin role; ron same; outside-domain rejected byallowed_domains: knoey.com) is the manual follow-up. Stop-gapadminPassword: adminin values stays (local break-glass) — rotate this when convenient as a follow-up. -
2026-04-30 — Reusable engineer onboarding via one-time link + QR (commit pending). Replaces the assumed-but-nonexistent shared 1Password vault with a self-contained delivery flow:
./etc/onboard_engineer.sh <user> <email>provisions the postgres role + 24h temp password and outputs (1) a single-shot URL, (2) a QR-code rendering for screenshare, (3) the plaintext fallback. Engineer opens URL or scans QR → static page atdb.0.knoe.dev/onboard.html(vanilla HTML+JS, no backend) reads the URL fragment client-side and shows password + psql connection string + rotation snippet with [Copy] buttons; saves to engineer's personal 1Password. Engineer rotates immediately via\password. New manifests:deploy/gcp/gke/knoe-onboard.yaml(nginx:alpine + ConfigMap + Service), Kong route/onboard.html→ knoe-onboard:80 insupabase/helm/knoe-supabase/templates/kong/config.yaml, oauth2-proxy--skip-auth-route=^/onboard\.html$indeploy/gcp/gke/oauth2-proxy-deployment.yaml. Pivotal pg_hba change: rule changed fromhostssl all chrisfu,ron alltohostssl all +knoe_developer allso future onboards don't require pg_hba edits — the script'sGRANT knoe_developer TO <user>is enough. CA cert committed atetc/knoe-db-ca.crt(public root, not a secret) so engineers referencesslrootcert=etc/knoe-db-ca.crtafter cloning. Engineer-facing docs:docs/onboarding.md.docs/db-access.mdupdated to remove the broken 1Password reference. Verified end-to-end:./etc/onboard_engineer.sh test-onboard test-onboard@knoey.com→ URL + QR rendered →psql ...user=test-onboard...connects with the temp password and reportspg_has_role(current_user,'knoe_developer','MEMBER')=t→--revokedrops the role cleanly. -
2026-04-30 — Per-engineer psql access via
pg.0.knoe.dev(Phase 1) (commit pending). External GKE TCP LoadBalancer at34.106.156.196(forwarding rulea61028024f2314e06902bafc1b4c3a08); user adds Namecheap A recordpg.0.knoe.dev → 34.106.156.196(manual; Namecheap UI). CNPGserverAltDNSNamesextended withpg.0.knoe.devso the auto-issued server cert validates externally. Newknoe_developergroup role with R/W onknoe+publicand R/O onauth+storage+extensions. Per-engineer roleschrisfuandronwith strong random passwords (192-bit base64)VALID UNTIL '2026-05-30', members ofknoe_developer. pg_hba rewritten so external requires TLS+SCRAM and only allowschrisfu, ron(other rolespostgres,supabase_admin,authenticatorstay cluster-internal).externalTrafficPolicy: Localon the LB to preserve client source IP (otherwise the SNAT'd node IP made externals look like internal cluster traffic and bypassed thehostnossl rejectrule). Documentation indocs/db-access.md. Verified: chrisfu+ron both connect via TLS, plaintext rejected with the proper pg_hba error showing the real client IP,postgresrole connection from outside fails auth, internal supabase services keep their existing TLS connections (gitlab on TLS 1.3, supabase_admin/authenticator on plaintext over RFC1918 — both still allowed by the new rules). Phase 2 (libpq OAUTHBEARER + validator library, bundled into install/deploy.sh + k3d) handed off to Junie — see "In progress" at top of file. -
2026-04-30 —
pg_stat_statementsmoved out ofpublicschema across deploy modes (commit pending). Studio's Database Advisor was flaggingpublic.pg_stat_statementsas a Security warning the moment any user opened the dashboard. Root cause: relocatable extensions without an explicitSCHEMAclause onCREATE EXTENSIONland in the first writable schema in the connecting role's search_path, which ispublicfor thepostgresrole. Live:ALTER EXTENSION pg_stat_statements SET SCHEMA extensions;. Bootstrap (3 files, all 4 deploy modes):deploy/gcp/gke/knoe-db.yaml(gke),deploy/opentofu/k3s/manifests/knoe/knoe-db.yaml(k3s),k8s/knoe/knoe-db.yaml(k3d / min) — eachpostInitTemplateSQLblock now creates theextensionsschema andCREATE EXTENSION ... SCHEMA extensions;. Plussupabase/deploy.shgetsGRANT USAGE ON SCHEMA extensions TO anon, authenticated, service_role;so PostgREST clients (and the advisor itself) can resolve the schema. Other security checks verified clean (no tables in public without RLS, no SECURITY DEFINER without search_path, no auth.users-exposed views, no duplicate indexes, no extensions left in public). Performance side has 6 unindexed FKs in upstreamauth.*andstorage.*tables — captured as deferred (touching upstream-managed schemas is the wrong move; they'll get fixed in supabase-auth / supabase-storage releases). -
2026-04-30 — Studio post-launch fixes (storage permissions + /support stop-gap) in commit 79a3f76:
- Storage list-buckets unblocked.
supabase_storage_adminrole was missing membership inservice_role/authenticated/anon, soSET LOCAL role = 'service_role'(run by supabase-storage on every request) failed with PG42501atguc.c:6936 call_string_check_hook, surfaced as a misleading "new row violates row-level security policy" error. One GRANT applied live (GRANT anon, authenticated, service_role TO supabase_storage_admin;) and added durably tosupabase/deploy.shright after the existingGRANT service_role TO authenticatorblock. - oauth2-proxy auth-header passthrough fixed. The
--pass-authorization-header=trueand--set-authorization-header=trueflags were stomping theAuthorization: Bearer <apikey>header that Studio / supabase-py send on/storage/v1/...calls (oauth2-proxy was rewriting it with the Google OIDC id_token, which storage couldn't validate againstJWT_SECRET). Both flags removed fromdeploy/gcp/gke/oauth2-proxy-deployment.yaml. When per-user identity passthrough lands post-knoe-auth Round 1, use--pass-user-headers/--set-xauthrequest(X-Forwarded-* headers) instead — those don't collide with Supabase's auth. /supportroute stop-gap.https://db.0.knoe.dev/support302s tomailto:support@knoe.devso users have a working escape hatch while the in-Studio support buttons stay broken (separate Studio-fork follow-up #15). Kong servicesupportadded totemplates/kong/config.yamlusingrequest-termination(302) +response-transformer(Location header).KONG_PLUGINSallowlist extended withresponse-transformerinvalues.yaml. oauth2-proxy gets--skip-auth-route=^/support$so an unauthenticated user looking for help isn't bounced into a Google sign-in detour.
- Storage list-buckets unblocked.
-
2026-04-30 — Unified
db.0.knoe.devfor Studio + SDK in commit f805404: added two--skip-auth-routeargs to oauth2-proxy so SDK requests on/auth/v1,/rest/v1,/realtime/v1,/storage/v1,/functions/v1,/graphql/v1,/pg/*bypass the Google sign-in flow and pass through to supabase-kong, where Kong's existingkey-authplugin enforces anon/service-role keys. Studio UI at/remains Google-gated. One URL now covers humans-in-Studio AND robots-via-supabase-py — same security envelope asapi.0.knoe.devhad on those paths.api.0.knoe.devkept as a backward-compat alias (see follow-up #14). External verification:curl -H "apikey: <KEY>" https://db.0.knoe.dev/rest/v1/→ 200 OpenAPI;curl https://db.0.knoe.dev/rest/v1/(no key) → 401 from Kong;curl https://db.0.knoe.dev/→ 302 to Google (Studio gate intact);curl https://db.0.knoe.dev/api/profile→ 302 to Google (Studio internals stay gated). -
2026-04-30 — Google sign-in to db.0.knoe.dev for chrisfu + ron (shared Studio) in commit 25f1b2e: oauth2-proxy v7.15.2 deployed in front of supabase-kong as the Studio access gate (Google Workspace OIDC,
--email-domain=knoey.com); supabase-kong Ingress patched sodb.0.knoe.dev→oauth2-proxy:80whileapi.0.knoe.dev→supabase-kong:8000is untouched (key-auth still gates the API surface); Kongdashboardroute'sbasic-authplugin removed (oauth2-proxy is the gate now — double-auth was friction without security gain). External verification: db.0.knoe.dev/ → 302accounts.google.com/o/oauth2/auth?client_id=200699021716-…&redirect_uri=https://db.0.knoe.dev/oauth2/callback&scope=openid+email+profile; api.0.knoe.dev/rest/v1/ → 401 from Kong key-auth (untouched); /healthz → 200. Three new files + chart edit:deploy/gcp/gke/oauth2-proxy-deployment.yaml,deploy/gcp/gke/oauth2-proxy-google-oidc-secret.example.yaml,etc/init_oauth2_proxy.sh, and thebasic-authplugin removed fromsupabase/helm/knoe-supabase/templates/kong/config.yaml. Future swap to knoe-auth Round 1: change one arg in oauth2-proxy from--provider=googleto--provider=oidc --oidc-issuer-url=https://api.knoe.dev/authand reapply. -
2026-04-29 — CNPG operator + backup stabilization session (4 queue items in one wave; live-cluster ops, no commit yet — doc-update commit pending):
- #4 done: plugin-barman-cloud operator restarted (
kubectl rollout restart deployment/barman-cloud -n cnpg-system); stale Garage retention-worker endpoint cache cleared - #11 done: cnpg-controller-manager restarted; clean plugin re-discovery confirmed in logs
- CNPG operator upgraded v1.28.1 → v1.29.0 to expose
spec.serviceAccountNamefield (added in v1.29.0 per upstream release notes); operator rollout clean, cluster healthy throughout - #2 done:
cluster.spec.serviceAccountName=cnpg-backup-saapplied; supervised rolling restart cycled all 3 pods (db-3 first failed with RBAC error — patched RoleBindingsknoe-dbandknoe-db-barman-cloudto addcnpg-backup-saas a subject; db-3 then recovered, db-4 and db-2 rolled cleanly); 23:03 UTC scheduled backup completed with new SA, verifying end-to-end - #3 done: Garage workload removed from
knoe-dev-cnpg-0(statefulset, both services includinggarage-s3-ilb, configmap, PVCdata-garage-0, StorageClassgarage-hdd); ObjectStore untouched, backups still progressing post-removal
- #4 done: plugin-barman-cloud operator restarted (
-
2026-04-29 — Doc true-up + master TODO index in commit f5b24c7. Reality-vs-intent gaps captured across CLAUDE.md / AGENTS.md / pipeline-phases / plans / canonical ObjectStore manifest; new
docs/TODO.mdKanban-style index. -
2026-04-29 — GCS migration completed. ObjectStore
gs://knoe-0-backups/withgoogleCredentials.gkeEnvironment: true; WI auth viaknoe-dbSA. 2 verified backups in catalog. ScheduledBackup unsuspended. (live-cluster ops; no commit) -
2026-04-29 — Garage cluster recovered. PVC 29 → 80 GiB, layout 10 → 60 GB, bucket cleared (8382 objects + 12 orphan multiparts). (live-cluster ops; no commit)
-
2026-04-28/29 — knoe-db-1 fix. 14d crashloop resolved via PVC delete + CNPG re-bootstrap; cluster failover-cycled all 3 pods; 3/3 healthy. (live-cluster ops; no commit)
-
2026-04-28 — Phase A repo cleanup + Phase C Maven build readiness in commit b355855. tmp/ archived (87 files);
org.knoe→dev.knoerename;authority→authartifactId; sources moved todev/knoe/auth/;make build-authgreen. 4 k3sprole-auth-*.yamlmanifests renamed toknoe-auth-*.yaml. -
2026-04-28 — Pipeline Phase 0 (test pipeline foundation: pyproject.toml, IntelliJ run configs, coverage fix, welcome mode selector). See
docs/pipeline-phases.md§Phase 0.