coa: phase-3 env + vault secrets on the coa role — dispatch PAT, webhook secret, coa-shared admin (coa phase-3 plan Task 17) #7

Closed
opened 2026-08-31 05:21:37 +00:00 by ben · 4 comments
Owner

Plan

https://git.matou.nz/Matou/coa/src/branch/main/docs/superpowers/plans/2026-08-31-coa-phase-3.md (in Matou/coa) — spec https://git.matou.nz/Matou/coa/src/branch/main/docs/superpowers/specs/2026-08-31-coa-phase-3-design.md §3.6, ADR 0005. Session/human work (mds is not a factory consumer); pattern roles/matou_forms.

Deliverable

roles/coa/templates/docker-compose.yml.j2 environment: gains GITHUB_DISPATCH_TOKEN, COA_BUILDS_REPO (default matou-collective/coa-builds), COA_BUILDS_WORKFLOW=build.yml, COA_BUILDS_REF=main, BUILD_WEBHOOK_SECRET, COA_NOTIFY_EMAIL (default notify@mail.<domain>), COA_SHARED_ADMIN_URL=http://127.0.0.1:5904, COA_SHARED_ADMIN_TOKEN (= coa_config_admin_token), COA_SHARED_PUBLIC_URL=https://coa-infra.<domain>; defaults coa_builds_repo, coa_notify_email; the role's assert adds coa_github_dispatch_token and coa_webhook_hmac_secret non-empty; secrets.yml.example documents both (# fine-grained PAT, actions:write on coa-builds / openssl rand -hex 32).

Acceptance

  • make host LIMIT=matou --check --diff -t coa renders the new env (mode 0600 compose); real run is coa Task 19.

depends_on

  • #3 (phase-2 coa role, closed) ✓; the secret values are coa Task 18 (human).
## Plan `https://git.matou.nz/Matou/coa/src/branch/main/docs/superpowers/plans/2026-08-31-coa-phase-3.md` (in `Matou/coa`) — spec `https://git.matou.nz/Matou/coa/src/branch/main/docs/superpowers/specs/2026-08-31-coa-phase-3-design.md` §3.6, ADR 0005. Session/human work (mds is not a factory consumer); pattern `roles/matou_forms`. ## Deliverable `roles/coa/templates/docker-compose.yml.j2` `environment:` gains `GITHUB_DISPATCH_TOKEN`, `COA_BUILDS_REPO` (default `matou-collective/coa-builds`), `COA_BUILDS_WORKFLOW=build.yml`, `COA_BUILDS_REF=main`, `BUILD_WEBHOOK_SECRET`, `COA_NOTIFY_EMAIL` (default `notify@mail.<domain>`), `COA_SHARED_ADMIN_URL=http://127.0.0.1:5904`, `COA_SHARED_ADMIN_TOKEN` (= `coa_config_admin_token`), `COA_SHARED_PUBLIC_URL=https://coa-infra.<domain>`; defaults `coa_builds_repo`, `coa_notify_email`; the role's assert adds `coa_github_dispatch_token` and `coa_webhook_hmac_secret` non-empty; `secrets.yml.example` documents both (`# fine-grained PAT, actions:write on coa-builds` / `openssl rand -hex 32`). ## Acceptance - `make host LIMIT=matou --check --diff -t coa` renders the new env (mode 0600 compose); real run is coa Task 19. ## depends_on - #3 (phase-2 coa role, closed) ✓; the secret values are coa Task 18 (human).
Author
Owner

Secret values: Matou/coa#79. Deploy proof: Matou/coa#81

Secret values: https://git.matou.nz/Matou/coa/issues/79. Deploy proof: https://git.matou.nz/Matou/coa/issues/81
Author
Owner

Triaged needs-triage → ready-for-session (no factory agent on this repo). Only dependency (mds #3, phase-2 coa role) is done and the vault already holds the 8 phase-3 keys (coa #79) — this is unblocked now. --check --diff from matou-workstation (deploy seat, mds PR #8/#9); the real run is coa #81. Plan: coa phase-3 Task 17.

Triaged `needs-triage` → `ready-for-session` (no factory agent on this repo). Only dependency (mds #3, phase-2 coa role) is done and the vault already holds the 8 phase-3 keys (coa #79) — this is unblocked now. `--check --diff` from matou-workstation (deploy seat, mds PR #8/#9); the real run is coa #81. Plan: coa phase-3 Task 17.
ben closed this issue 2026-09-01 00:54:31 +00:00
Author
Owner

Session report (2026-09-01): done in PR #10. roles/coa compose gains the phase-3 env (GITHUB_DISPATCH_TOKEN, COA_BUILDS_REPO/WORKFLOW/REF, BUILD_WEBHOOK_SECRET, COA_NOTIFY_EMAIL, COA_SHARED_ADMIN_URL/TOKEN/PUBLIC_URL), defaults coa_builds_repo/coa_notify_email, assert on the three new vault secrets, secrets.yml.example COA block. --check --diff -t coa against matou: ok=13 changed=2 failed=0 — the env renders from the vault values already present. Awaiting human merge of PR #10.

Session report (2026-09-01): done in PR #10. `roles/coa` compose gains the phase-3 env (`GITHUB_DISPATCH_TOKEN`, `COA_BUILDS_REPO/WORKFLOW/REF`, `BUILD_WEBHOOK_SECRET`, `COA_NOTIFY_EMAIL`, `COA_SHARED_ADMIN_URL/TOKEN/PUBLIC_URL`), defaults `coa_builds_repo`/`coa_notify_email`, assert on the three new vault secrets, `secrets.yml.example` COA block. `--check --diff -t coa` against matou: ok=13 changed=2 failed=0 — the env renders from the vault values already present. Awaiting human merge of PR #10.
Author
Owner

Update: PR #10 is merged and main is mirrored to GitLab (GOTCHAS 12 done). No human merge needed after all.

Update: PR #10 is merged and `main` is mirrored to GitLab (GOTCHAS 12 done). No human merge needed after all.
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
Matou/matou-distributed-servers#7
No description provided.