human: push credentials for coa-server + SMTP account (phase-2 plan Task 11a) #38
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/coa#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan
docs/superpowers/plans/2026-08-28-coa-phase-2.mdTask 11a. One-way door (ADR 0002: credential bytes; ADR 0003 needs a push identity).Why human
Minting a token, granting push on protected
main, and choosing the sender mailbox are irreversible from an agent's seat.Proposed default (change any line by commenting)
coa-server, token scopewrite:repositoryonly; stored inmatou-distributed-servers/secrets.yml(vault) ascoa_forgejo_push_token.Matou/coamainbranch protection: whitelistcoa-serverfor direct push; PR requirement stays for everyone else. Prove with an empty commit pushed and reverted.notifyaccount (stalwart_notify_app_password) as the SMTP credential — no new mailbox.coa-server <notify@mail.matou.nz>.Acceptance
coa_forgejo_push_token;stalwart_notify_app_passwordalready present.coa-serverlands onmainand is reverted.out_of_scope
Running the deploy (Task 12).
Done (Ben minted the identity; the session did the rest). Defaults kept / changed:
coa-server(id 76) exists, but the push credential is a repo-scoped deploy key (Matou/coa key id 1, write) rather than a user token — Forgejo only mints user tokens with basic auth, and a deploy key is bound to this one repo by construction. Vault var is thereforecoa_forgejo_deploy_key(private key, block scalar) inmatou-distributed-servers/secrets.yml(the vault is gitignored/local, per repo convention), notcoa_forgejo_push_token.maincurrently has no Forgejo branch protection (PR landing is harness policy), so there was nothing to whitelist against; introducing protection now would be a policy change for the factory too — left for a separate decision.notifyaccount (stalwart_notify_app_password, already in the vault); no new mailbox.coa-server <notify@mail.matou.nz>.Proof:
aa754d1onmain, authoredcoa-server <notify@mail.matou.nz>, pushed over mesh SSH (ssh://git@elitebook-distributed-server-01.netbird.selfhosted:2222/Matou/coa.git) with the deploy key. Kept as a STATUS.md log line rather than reverted.Notes for the role (matou-distributed-servers #3): git-over-SSH is mesh-only on :2222, so the container needs the mesh DNS remote above,
GIT_SSH_COMMANDwith the key fromcoa_forgejo_deploy_key,COA_GIT_PUSH=1, anduser.name/user.emailset to the identity in (4).