App catalog: redesign before anything new consumes it (paused) #103

Open
opened 2026-11-15 19:01:21 +00:00 by ginjiruu · 1 comment
Owner

Goal: decide how apps are described once and then turned into OpenBao policies, Kanidm groups, Forgejo orgs and repos, and cluster placement.

apps/catalog.yaml (ADR-0006) is half-finished. OpenBao (vault/apps.tf) and Kanidm (kanidm/apps.tf) already apply it in production for privatebin and syncthing. The Forgejo root's use of it is switched off (forgejo/apps.tf), and its orgs and repos were never created.

Paused on purpose. Things to settle when this resumes:

  • Where placement lives, probably together with Sveltos ClusterProfiles (lab/clusters sveltos-clusterprofiles branch).
  • What the per-app read path is. VSO is out. External Secrets uses a per-app SecretStore logged in as the app's own ServiceAccount, which needs a reader-tier policy.
  • Which capabilities are real, and which of the current eight per app are speculative.
  • Whether the existing privatebin/syncthing OpenBao and Kanidm objects stay or go.

Closed as superseded: lab/iac#30 (VSO roles) and lab/iac#33 (multi-cluster catalog).

Goal: decide how apps are described once and then turned into OpenBao policies, Kanidm groups, Forgejo orgs and repos, and cluster placement. `apps/catalog.yaml` (ADR-0006) is half-finished. OpenBao (`vault/apps.tf`) and Kanidm (`kanidm/apps.tf`) already apply it in production for `privatebin` and `syncthing`. The Forgejo root's use of it is switched off (`forgejo/apps.tf`), and its orgs and repos were never created. Paused on purpose. Things to settle when this resumes: - Where placement lives, probably together with Sveltos ClusterProfiles (lab/clusters `sveltos-clusterprofiles` branch). - What the per-app read path is. VSO is out. External Secrets uses a per-app SecretStore logged in as the app's own ServiceAccount, which needs a reader-tier policy. - Which capabilities are real, and which of the current eight per app are speculative. - Whether the existing `privatebin`/`syncthing` OpenBao and Kanidm objects stay or go. Closed as superseded: lab/iac#30 (VSO roles) and lab/iac#33 (multi-cluster catalog).
Author
Owner

Concrete gap from the 2026-11-21 DNS cutover audit: an autonomous agent fixing an app could not touch the app's secrets.

  • actual-budget: OIDC was broken by the retired public hostname. The live fix went into actual's own account.sqlite, but the source of truth for ACTUAL_OPENID_SERVER_HOSTNAME is KV secret/actual-budget-secrets in mini's legacy Vault (the store behind ClusterSecretStore/vault-backend). The agent had no identity there (~/.vault-token is a c1 OpenBao token, 403 on mini), so that value is still the dead https://actual.animeteamspeak.moe. It's harmless until actual's DB is recreated, then OIDC breaks again.
  • mini Vault's own auth/oidc role needed the internal UI callback, with the same blocker. Only a root or admin token can write it.

What the catalog needs to cover when #103 resumes:

  1. An agent principal (an "autonomous user") that can hold catalog capabilities, so manual-secret-manager (ADR-0006: CRUD on the app's manual/ class) can be granted to an agent for one app, not only to people.
  2. Per-app KV paths for apps that live in the legacy mini Vault today (actual-budget and every other vault-backend consumer), or a migration of those paths to c1 OpenBao under the catalog layout, so the capability actually reaches the secret the app reads.
  3. A login path that works unattended: Kubernetes auth (ServiceAccount JWT, iac ADR-0010) or a Forgejo Authorized Integration, never a hand-made token.

Until then, every fix of this kind ends with "human must write the secret".

Concrete gap from the 2026-11-21 DNS cutover audit: an autonomous agent fixing an app could not touch the app's secrets. - **actual-budget**: OIDC was broken by the retired public hostname. The live fix went into actual's own `account.sqlite`, but the source of truth for `ACTUAL_OPENID_SERVER_HOSTNAME` is KV `secret/actual-budget-secrets` in mini's legacy Vault (the store behind `ClusterSecretStore/vault-backend`). The agent had no identity there (`~/.vault-token` is a c1 OpenBao token, 403 on mini), so that value is still the dead `https://actual.animeteamspeak.moe`. It's harmless until actual's DB is recreated, then OIDC breaks again. - **mini Vault's own `auth/oidc` role** needed the internal UI callback, with the same blocker. Only a root or admin token can write it. What the catalog needs to cover when #103 resumes: 1. An agent principal (an "autonomous user") that can hold catalog capabilities, so `manual-secret-manager` (ADR-0006: CRUD on the app's `manual/` class) can be granted to an agent for one app, not only to people. 2. Per-app KV paths for apps that live in the legacy mini Vault today (actual-budget and every other `vault-backend` consumer), or a migration of those paths to c1 OpenBao under the catalog layout, so the capability actually reaches the secret the app reads. 3. A login path that works unattended: Kubernetes auth (ServiceAccount JWT, iac ADR-0010) or a Forgejo Authorized Integration, never a hand-made token. Until then, every fix of this kind ends with "human must write the secret".
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/iac#103
No description provided.