human: coa-builds repo + dispatch PAT, webhook secret, Android keystore, CONFIG_ADMIN_TOKEN, matou-app tag (phase-3 plan Task 18) #79

Closed
opened 2026-08-31 05:20:48 +00:00 by ben · 5 comments
Owner

Plan

docs/superpowers/plans/2026-08-31-coa-phase-3.md Task 18 — one-way doors (ADR 0002).

Why human

Credential bytes, a new public GitHub repo, a signing keystore and a release tag are irreversible or unprovable by a test.

Checklist

  • 18a-i Create GitHub repo matou-collective/coa-builds (public, empty). Fine-grained PAT: Actions: write + Contents: read on it → mds vault coa_github_dispatch_token.
  • 18a-ii openssl rand -hex 32 → mds vault coa_webhook_hmac_secret and coa-builds secret BUILD_WEBHOOK_SECRET (same value).
  • 18a-iii COA Android upload keystore (keytool -genkeypair -v -keystore coa-upload.jks -alias coa -keyalg RSA -keysize 2048 -validity 10000); base64 → coa-builds secrets ANDROID_KEYSTORE_B64, ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS, ANDROID_KEY_PASSWORD; keystore backed up in the vault as coa_android_keystore_b64.
  • 18a-iv openssl rand -hex 32 → vault coa_config_admin_token; MinIO keys → coa_shared_minio_access_key / coa_shared_minio_secret_key.
  • 18a-v Tag matou-app v0.5.0 after the matou-app kit plan lands (https://git.matou.nz/Matou/coa/src/branch/main/docs/superpowers/plans/2026-08-31-matou-app-coa-kit.md); write it into coa-builds MATOU_APP_REF.
  • 18b Approve the first make host LIMIT=matou -t coa_shared run and the first real coa-builds dispatch (Task 19).

Proposed default

Do them in the listed order; 18a-i..iv can happen now, 18a-v waits for matou-app.

Values never appear in this tracker, a commit or a chat transcript.

## Plan `docs/superpowers/plans/2026-08-31-coa-phase-3.md` **Task 18** — one-way doors (ADR 0002). ## Why human Credential bytes, a new public GitHub repo, a signing keystore and a release tag are irreversible or unprovable by a test. ## Checklist - [ ] **18a-i** Create GitHub repo `matou-collective/coa-builds` (public, empty). Fine-grained PAT: `Actions: write` + `Contents: read` on it → mds vault `coa_github_dispatch_token`. - [ ] **18a-ii** `openssl rand -hex 32` → mds vault `coa_webhook_hmac_secret` **and** coa-builds secret `BUILD_WEBHOOK_SECRET` (same value). - [ ] **18a-iii** COA Android upload keystore (`keytool -genkeypair -v -keystore coa-upload.jks -alias coa -keyalg RSA -keysize 2048 -validity 10000`); base64 → coa-builds secrets `ANDROID_KEYSTORE_B64`, `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD`; keystore backed up in the vault as `coa_android_keystore_b64`. - [ ] **18a-iv** `openssl rand -hex 32` → vault `coa_config_admin_token`; MinIO keys → `coa_shared_minio_access_key` / `coa_shared_minio_secret_key`. - [ ] **18a-v** Tag matou-app `v0.5.0` after the matou-app kit plan lands (https://git.matou.nz/Matou/coa/src/branch/main/docs/superpowers/plans/2026-08-31-matou-app-coa-kit.md); write it into coa-builds `MATOU_APP_REF`. - [ ] **18b** Approve the first `make host LIMIT=matou -t coa_shared` run and the first real coa-builds dispatch (Task 19). ## Proposed default Do them in the listed order; 18a-i..iv can happen now, 18a-v waits for matou-app. Values never appear in this tracker, a commit or a chat transcript.
Author
Owner

Progress (session with Ben, 2026-08-31)

  • 18a-i (repo) https://github.com/matou-collective/coa-builds created — public, empty, wiki off.
  • 18a-ii/iv (values generated) webhook secret, config-server admin token and MinIO keys minted with openssl rand; 18a-iii Android upload keystore minted with keytool (Temurin 21, PKCS12, alias coa, RSA 2048, 10000 days).
  • Store them — the harness classifier refuses credential-store writes from the agent (same as #38), so Ben runs the two prepared scripts with !: the vault append (adds coa_webhook_hmac_secret, coa_config_admin_token, coa_shared_minio_access_key, coa_shared_minio_secret_key, coa_android_keystore_b64, coa_android_keystore_password, coa_android_key_alias, coa_android_key_password) and gh secret set × 5 on coa-builds (BUILD_WEBHOOK_SECRET, ANDROID_KEYSTORE_B64, ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS, ANDROID_KEY_PASSWORD).
  • 18a-i (PAT) fine-grained PAT cannot be minted via API — Ben creates it (resource owner matou-collective, repo coa-builds, permissions Actions: read/write, Contents: read, 1-year expiry) and adds coa_github_dispatch_token to the vault.
  • 18a-v waits for the matou-app kit plan (matou-app #245) — tag v0.5.0 then MATOU_APP_REF.
  • 18b approvals happen on #81.

#39 is closed (phase 2 proven 05:34 UTC), so #81's other blocker is gone.

No secret value appears here, in a commit, or in a chat transcript.

## Progress (session with Ben, 2026-08-31) - [x] **18a-i (repo)** `https://github.com/matou-collective/coa-builds` created — public, empty, wiki off. - [x] **18a-ii/iv (values generated)** webhook secret, config-server admin token and MinIO keys minted with `openssl rand`; **18a-iii** Android upload keystore minted with `keytool` (Temurin 21, PKCS12, alias `coa`, RSA 2048, 10000 days). - [ ] **Store them** — the harness classifier refuses credential-store writes from the agent (same as #38), so Ben runs the two prepared scripts with `!`: the vault append (adds `coa_webhook_hmac_secret`, `coa_config_admin_token`, `coa_shared_minio_access_key`, `coa_shared_minio_secret_key`, `coa_android_keystore_b64`, `coa_android_keystore_password`, `coa_android_key_alias`, `coa_android_key_password`) and `gh secret set` × 5 on coa-builds (`BUILD_WEBHOOK_SECRET`, `ANDROID_KEYSTORE_B64`, `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD`). - [ ] **18a-i (PAT)** fine-grained PAT cannot be minted via API — Ben creates it (resource owner `matou-collective`, repo `coa-builds`, permissions **Actions: read/write**, **Contents: read**, 1-year expiry) and adds `coa_github_dispatch_token` to the vault. - [ ] **18a-v** waits for the matou-app kit plan (matou-app #245) — tag `v0.5.0` then `MATOU_APP_REF`. - [ ] **18b** approvals happen on #81. #39 is closed (phase 2 proven 05:34 UTC), so #81's other blocker is gone. No secret value appears here, in a commit, or in a chat transcript.
Author
Owner
  • Stored (Ben, 13:26 UTC): vault now carries the 8 phase-3 keys (secrets.yml 123 → 134 lines, backup secrets.yml.bak-2026-08-31); coa-builds Actions secrets BUILD_WEBHOOK_SECRET, ANDROID_KEYSTORE_B64, ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS, ANDROID_KEY_PASSWORD set. Scratch copies shredded.

Remaining on this ticket: the dispatch PAT (coa_github_dispatch_token, Ben by hand), then 18a-v (tag after matou-app #245) and 18b (approvals on #81).

- [x] **Stored** (Ben, 13:26 UTC): vault now carries the 8 phase-3 keys (`secrets.yml` 123 → 134 lines, backup `secrets.yml.bak-2026-08-31`); coa-builds Actions secrets `BUILD_WEBHOOK_SECRET`, `ANDROID_KEYSTORE_B64`, `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD` set. Scratch copies shredded. Remaining on this ticket: the dispatch PAT (`coa_github_dispatch_token`, Ben by hand), then 18a-v (tag after matou-app #245) and 18b (approvals on #81).
Author
Owner
  • 18a-i (PAT) minted by Ben (fine-grained, resource owner matou-collective, repo coa-builds only, Actions RW + Contents R), stored as vault coa_github_dispatch_token (+ working copy ~/.config/coa/coa-github-dispatch-pat, 0600). Verified: authenticated GET /repos/matou-collective/coa-builds and /actions/workflows → 200. Definitive Actions-write proof comes with the first dispatch on #80.

18a-i…iv are done. This ticket stays open for:

  • 18a-v — tag matou-app v0.5.0 + write MATOU_APP_REF (after matou-app #245)
  • 18b — approve the first coa_shared playbook run and the first real dispatch (on #81)
- [x] **18a-i (PAT)** minted by Ben (fine-grained, resource owner `matou-collective`, repo `coa-builds` only, Actions RW + Contents R), stored as vault `coa_github_dispatch_token` (+ working copy `~/.config/coa/coa-github-dispatch-pat`, 0600). Verified: authenticated `GET /repos/matou-collective/coa-builds` and `/actions/workflows` → 200. Definitive Actions-write proof comes with the first dispatch on #80. **18a-i…iv are done.** This ticket stays open for: - [ ] 18a-v — tag matou-app `v0.5.0` + write `MATOU_APP_REF` (after matou-app #245) - [ ] 18b — approve the first `coa_shared` playbook run and the first real dispatch (on #81)
Author
Owner

Door 18a-v complete (2026-09-02 23:0x UTC): matou-app kit chain #238–#244 all merged, v0.5.0 tagged (bd8f1a9, on git.matou.nz + the GitHub mirror), and coa-builds MATOU_APP_REF now pins v0.5.0 (matou-collective/coa-builds@11307c4). matou-app #245 closed with the full evidence trail (signed release APK acceptance included).

Remaining on this ticket: 18b — approve the first coa_shared run + first real dispatch (Ben). Then #81 (deploy + e2e proof).

Housekeeping reminder before any future fixture dispatch with build=1: delete the fixture Release coa-ngati-example-v1 from coa-builds first.

**Door 18a-v complete** (2026-09-02 23:0x UTC): matou-app kit chain #238–#244 all merged, `v0.5.0` tagged (`bd8f1a9`, on git.matou.nz + the GitHub mirror), and coa-builds `MATOU_APP_REF` now pins `v0.5.0` (`matou-collective/coa-builds@11307c4`). matou-app #245 closed with the full evidence trail (signed release APK acceptance included). Remaining on this ticket: **18b** — approve the first `coa_shared` run + first real dispatch (Ben). Then #81 (deploy + e2e proof). Housekeeping reminder before any future fixture dispatch with `build=1`: delete the fixture Release `coa-ngati-example-v1` from coa-builds first.
Author
Owner

Closing on the phase-3 end-to-end proof (Ben ruled 2026-09-04): deploys live on matou, matou-smoke builds 1–2 + the fresh ngati-example chain all proven (submit → tenant → dispatch → run 33858085607 → Release coa-ngati-example-v1 → ready flip → installers-ready email delivered). Full record: STATUS.md d18adac + the proof comment on #81.

Closing on the phase-3 end-to-end proof (Ben ruled 2026-09-04): deploys live on `matou`, matou-smoke builds 1–2 + the fresh ngati-example chain all proven (submit → tenant → dispatch → run 33858085607 → Release coa-ngati-example-v1 → ready flip → installers-ready email delivered). Full record: STATUS.md d18adac + the proof comment on #81.
ben closed this issue 2026-09-04 21:31:32 +00:00
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.

Reference
Matou/coa#79
No description provided.