coa_shared: role — matou-infrastructure coa mode on matou, Caddy coa-infra.<domain>, ufw (coa phase-3 plan Task 16) #6

Closed
opened 2026-08-31 05:21:35 +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_shared/{defaults/main.yml, tasks/main.yml, templates/coa-infra.caddy.j2, templates/anysync-config.env.j2, templates/keri-env-secrets.j2} (plan text): git checkout of Matou/matou-infrastructure at coa_shared_infra_ref into /opt/coa-shared/src, any-sync config.env (coa mode, external host coa-infra.<domain>), keri/.env.coa via generate-env.sh coa with CONFIG_PUBLIC_URL, keri/.env.secrets with CONFIG_ADMIN_TOKEN from vault coa_config_admin_token, make up-coa, wait/probe 127.0.0.1:5904, ufw tcp 5901–5903, 7642–7647, 9723, 3001–3006 + udp 3011–3016, Caddy snippet coa-infra.<domain> → 127.0.0.1:5904. Wired in playbooks/host.yml after coa (coa_shared_enabled, tags coa_shared, routing); inventory/host_vars/matou.yml coa_shared_enabled: true + coa_shared_infra_ref; secrets.yml.example gains coa_config_admin_token, coa_shared_minio_access_key, coa_shared_minio_secret_key.

Acceptance

  • make host LIMIT=matou --check --diff -t coa_shared renders cleanly; after the approved real run (coa Task 18b/19): curl https://coa-infra.<domain>/api/health 200 and a tenant can be created with the vault token.

depends_on

  • matou-infrastructure coa mode (Task 15) merged and pinned in coa_shared_infra_ref.
## 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_shared/{defaults/main.yml, tasks/main.yml, templates/coa-infra.caddy.j2, templates/anysync-config.env.j2, templates/keri-env-secrets.j2}` (plan text): git checkout of `Matou/matou-infrastructure` at `coa_shared_infra_ref` into `/opt/coa-shared/src`, any-sync `config.env` (coa mode, external host `coa-infra.<domain>`), `keri/.env.coa` via `generate-env.sh coa` with `CONFIG_PUBLIC_URL`, `keri/.env.secrets` with `CONFIG_ADMIN_TOKEN` from vault `coa_config_admin_token`, `make up-coa`, wait/probe `127.0.0.1:5904`, ufw tcp 5901–5903, 7642–7647, 9723, 3001–3006 + udp 3011–3016, Caddy snippet `coa-infra.<domain>` → `127.0.0.1:5904`. Wired in `playbooks/host.yml` after `coa` (`coa_shared_enabled`, tags `coa_shared, routing`); `inventory/host_vars/matou.yml` `coa_shared_enabled: true` + `coa_shared_infra_ref`; `secrets.yml.example` gains `coa_config_admin_token`, `coa_shared_minio_access_key`, `coa_shared_minio_secret_key`. ## Acceptance - `make host LIMIT=matou --check --diff -t coa_shared` renders cleanly; after the approved real run (coa Task 18b/19): `curl https://coa-infra.<domain>/api/health` 200 and a tenant can be created with the vault token. ## depends_on - matou-infrastructure `coa` mode (Task 15) merged and pinned in `coa_shared_infra_ref`.
Author
Owner

Depends on matou-infrastructure Matou/matou-infrastructure#5 (which depends on Matou/matou-infrastructure#4 and Matou/matou-infrastructure#3). Deploy proof: Matou/coa#81

Depends on matou-infrastructure https://git.matou.nz/Matou/matou-infrastructure/issues/5 (which depends on https://git.matou.nz/Matou/matou-infrastructure/issues/4 and https://git.matou.nz/Matou/matou-infrastructure/issues/3). Deploy proof: https://git.matou.nz/Matou/coa/issues/81
Author
Owner

Triaged needs-triage → ready-for-session (no factory agent on this repo; protected host paths). Blocked on matou-infrastructure #5 (coa environment mode) for coa_shared_infra_ref. Deploy itself is coa #79 door 18b. Plan: coa phase-3 Task 16.

Triaged `needs-triage` → `ready-for-session` (no factory agent on this repo; protected host paths). Blocked on matou-infrastructure #5 (`coa` environment mode) for `coa_shared_infra_ref`. Deploy itself is coa #79 door 18b. Plan: coa phase-3 Task 16.
ben closed this issue 2026-09-01 00:54:30 +00:00
Author
Owner

Session report (2026-09-01): done in PR #10 (branch coa-phase-3). roles/coa_shared as in the plan, wired after coa, enabled on matou with coa_shared_infra_ref: ff581b7c (the tip of matou-infrastructure PR #6 = infra #3–#5; pushed to both remotes). One change of plan: Forgejo's matou-infrastructure is private, so the role clones the public GitLab remote anonymously — the pin must be on GitLab (mirror after merging infra PR #6). --check --diff -t coa_shared against matou: ok=12 changed=8 failed=0. Real run is coa Task 18b/19. PR #10 needs a human merge, then git push gitlab origin/main:main (GOTCHAS 12).

Session report (2026-09-01): done in PR #10 (branch `coa-phase-3`). `roles/coa_shared` as in the plan, wired after `coa`, enabled on matou with `coa_shared_infra_ref: ff581b7c` (the tip of matou-infrastructure PR #6 = infra #3–#5; pushed to both remotes). One change of plan: Forgejo's matou-infrastructure is **private**, so the role clones the **public GitLab** remote anonymously — the pin must be on GitLab (mirror after merging infra PR #6). `--check --diff -t coa_shared` against matou: ok=12 changed=8 failed=0. Real run is coa Task 18b/19. **PR #10 needs a human merge**, then `git push gitlab origin/main:main` (GOTCHAS 12).
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#6
No description provided.