coa_shared: render FORGEJO_TOKEN and bump the infra pin to PR #27 (POST CORS on /api/v1/issues) — infra #28 #24

Merged
ben merged 2 commits from coa-shared-forgejo-token into main 2026-10-23 05:30:32 +00:00
Owner

Closes the deploy half of Matou/matou-infrastructure#28 for good, and lets Matou/matou-app#727 land.

Two commits

  1. coa_shared: keri/.env.secrets now renders FORGEJO_TOKEN / FORGEJO_REPO from the vault var coa_forgejo_token (optional; default repo Matou/matou-app). Without this the token hand-appended on coa-infra on 2026-10-21 would be dropped by the next run, and the config server's /api/v1/issues proxy would fail closed with 503 again.
  2. matou: coa_shared_infra_ref d59951a → a57b421, the matou-infrastructure main merge of PR #27 (CORS for POST on /api/v1/issues; the preflight on coa-infra still advertises GET, OPTIONS, so the app's JSON POST is refused by the browser before it is sent). Also brings config-server 1.1 (PR #24) and the pairing mailbox (PR #22) onto coa-infra. Mirrored to GitLab (the role clones from there).

Verified

  • ansible-playbook playbooks/host.yml -l matou -t coa_shared --check — ok=12 changed=2 (the checkout and the secrets render), failed=0.
  • Vault: coa_forgejo_token added (awa prod's existing kaimahi token, so reports keep the same author).
  • matou-infrastructure test suite at a57b421: 208 checks green, incl. the new test_config_server_issues_cors.py.

After apply: preflight on https://coa-infra.matou.nz/api/v1/issues should advertise GET, POST, OPTIONS, and a POST should return 200 with the issue number.

🤖 Generated with Claude Code

Closes the deploy half of Matou/matou-infrastructure#28 for good, and lets Matou/matou-app#727 land. **Two commits** 1. `coa_shared`: `keri/.env.secrets` now renders `FORGEJO_TOKEN` / `FORGEJO_REPO` from the vault var `coa_forgejo_token` (optional; default repo `Matou/matou-app`). Without this the token hand-appended on coa-infra on 2026-10-21 would be dropped by the next run, and the config server's `/api/v1/issues` proxy would fail closed with 503 again. 2. `matou`: `coa_shared_infra_ref` d59951a → a57b421, the matou-infrastructure main merge of PR #27 (CORS for POST on `/api/v1/issues`; the preflight on coa-infra still advertises `GET, OPTIONS`, so the app's JSON POST is refused by the browser before it is sent). Also brings config-server 1.1 (PR #24) and the pairing mailbox (PR #22) onto coa-infra. Mirrored to GitLab (the role clones from there). **Verified** - `ansible-playbook playbooks/host.yml -l matou -t coa_shared --check` — ok=12 changed=2 (the checkout and the secrets render), failed=0. - Vault: `coa_forgejo_token` added (awa prod's existing kaimahi token, so reports keep the same author). - matou-infrastructure test suite at a57b421: 208 checks green, incl. the new `test_config_server_issues_cors.py`. **After apply:** preflight on `https://coa-infra.matou.nz/api/v1/issues` should advertise `GET, POST, OPTIONS`, and a POST should return 200 with the issue number. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The coa-infra config server proxies the app's /api/v1/issues POSTs to
Forgejo with FORGEJO_TOKEN, and fails closed with 503
issue_reporting_not_configured without it. The role rendered only
CONFIG_ADMIN_TOKEN, so the token had to be hand-appended on the host and
the next run would have dropped it.

Render it from the vault secret coa_forgejo_token when set (optional —
a fork without one keeps the 503), with FORGEJO_REPO from coa_forgejo_repo
(default Matou/matou-app).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
coa-infra's preflight still advertised GET, OPTIONS, so the app's
JSON POST was refused by the browser before it was sent. Pin the
matou-infrastructure merge of PR #27, which also brings config-server
1.1 and the pairing mailbox onto coa-infra. Mirrored to GitLab.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ben merged commit 3b1cdaf685 into main 2026-10-23 05:30:32 +00:00
Sign in to join this conversation.
No reviewers
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!24
No description provided.