Remove site-admin Forgejo PAT from non-interactive runner paths #513
Labels
No labels
burndown-2026-06
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/infrastructure#513
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?
Problem
The broad
/forgejo/api-tokenadmin PAT is used in non-interactive paths:deploy/forgejo-runner.ymlsyncs it intoforgejo-runner-secretsand each runner init container uses it to call/api/v1/admin/runners/registration-token.deploy/forgejo-runner-deploy.ymlsyncs it intoforgejo-runner-deploy-secretsfor the same registration-token call.deploy/forgejo-runner-tap-writer.ymlsyncs it intoforgejo-tap-writer-secretsfor the same registration-token call.This puts a broad admin PAT inside long-running automation where a narrower credential or operator-only path should be used.
Desired behavior
Reduce non-interactive dependence on
/forgejo/api-token:.runner; this issue reduces the credential used to mint/register the runner.Verification
rg /forgejo/api-token deploy scripts systemdshould show no long-running non-interactive consumer unless it is explicitly documented as unavoidable.WARD-RESERVATION: held 🔒
reservation details
Holder: container
engineer-codex-infrastructure-513on hostkais-macbook-pro-2.local.Reserved by
ward agent --harness codex(reserved 2026-07-09T22:21:51Z). Concurrentward agentruns are blocked until it finishes or the reservation goes stale (1h TTL).--forceoverrides.Do not comment on or edit this issue to steer the run while it is reserved. The engineer seeded the body once at launch and never re-reads it, so a comment or edit reaches only human readers, never the running engineer. A correction goes to a new issue, dispatched fresh. That is the only channel that reaches a run in flight. Where the forge supports it, ward locks this conversation to make that a road-block rather than a convention (ward#494).
run seed context — what this run is carrying (ward#609)
coilyco-flight-deck/infrastructure#513· branchissue-513· harnesscodex· workflowdirect-to-mainengineer-codex-infrastructure-513· wardv0.493.0· dispatched2026-07-09T22:21:51ZStatic container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.493.0).
— Codex, via
ward agentWARD-OUTCOME: done ✅
details
review summary: skipped by ~/.ward/config.yaml default.
workflow: direct-to-main; review summary: skipped by ~/.ward/config.yaml default.
felt: straightforward token split with a small docs pass.
confidence: high.
surprises: pre-commit needed a local UV_PYTHON_INSTALL_DIR override in this container.
follow-ups: legacy mirror cleanup stays on infrastructure#365.