provision-coilyco-ops-bot.sh: absorb the deploy-runner read-token mint/rotation #469

Closed
opened 2026-07-04 10:19:05 +00:00 by coilyco-ops · 4 comments
Member

The /forgejo/read-token PAT (FORGEJO_READ_TOKEN on the deploy runner, infra#468 + deploy#38) is currently minted ad hoc: an agent fetches the bot password from SSM, basic-auths POST /api/v1/users/coilyco-ops/tokens with scope read:repository, and put-parameters the sha1 - flow documented in docs/cd-runner-private-source-token.md.

Fold that into provision-coilyco-ops-bot.sh so the bot provisioning/rotation script owns it like the api-token and password: idempotent (delete-then-recreate the named token, date-suffixed), same SSM write, same never-echo discipline. Then the doc section shrinks to a pointer at the script.

Provenance: kai-desktop-tower session 2026-07-04, first mint was agent-driven with explicit operator consent.

The /forgejo/read-token PAT (FORGEJO_READ_TOKEN on the deploy runner, infra#468 + deploy#38) is currently minted ad hoc: an agent fetches the bot password from SSM, basic-auths POST /api/v1/users/coilyco-ops/tokens with scope read:repository, and put-parameters the sha1 - flow documented in docs/cd-runner-private-source-token.md. Fold that into provision-coilyco-ops-bot.sh so the bot provisioning/rotation script owns it like the api-token and password: idempotent (delete-then-recreate the named token, date-suffixed), same SSM write, same never-echo discipline. Then the doc section shrinks to a pointer at the script. Provenance: kai-desktop-tower session 2026-07-04, first mint was agent-driven with explicit operator consent.
Author
Member

WARD-RESERVATION: held 🔒

reservation details

Holder: container engineer-codex-infrastructure-469 on host kais-macbook-pro-2.local.

Reserved by ward agent --harness codex (reserved 2026-07-10T12:22:02Z). Concurrent ward agent runs are blocked until it finishes or the reservation goes stale (1h TTL). --force overrides.

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)
  • Resolved: coilyco-flight-deck/infrastructure#469 · branch issue-469 · harness codex · workflow direct-main
  • Run: engineer-codex-infrastructure-469 · ward v0.580.0 · dispatched 2026-07-10T12:22:02Z
  • Comment thread: 0 included in the pre-flight read, 0 stripped (ward's own automated comments).

Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.580.0).

— Codex, via ward agent

<!-- ward-agent-reservation --> WARD-RESERVATION: held 🔒 <details><summary>reservation details</summary> Holder: container `engineer-codex-infrastructure-469` on host `kais-macbook-pro-2.local`. Reserved by `ward agent --harness codex` (reserved 2026-07-10T12:22:02Z). Concurrent `ward agent` runs are blocked until it finishes or the reservation goes stale (1h TTL). `--force` overrides. **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). <details><summary>run seed context — what this run is carrying (ward#609)</summary> - **Resolved:** `coilyco-flight-deck/infrastructure#469` · branch `issue-469` · harness `codex` · workflow `direct-main` - **Run:** `engineer-codex-infrastructure-469` · ward `v0.580.0` · dispatched `2026-07-10T12:22:02Z` - **Comment thread:** 0 included in the pre-flight read, 0 stripped (ward's own automated comments). Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.580.0). </details> </details> <!-- ward-agent-signature --> — Codex, via `ward agent`
Author
Member

WARD-RESERVATION: held 🔒

reservation details

Holder: container engineer-codex-infrastructure-469 on host kais-macbook-pro-2.local.

Reserved by ward agent --harness codex (reserved 2026-07-10T12:35:05Z). Concurrent ward agent runs are blocked until it finishes or the reservation goes stale (1h TTL). --force overrides.

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)
  • Resolved: coilyco-flight-deck/infrastructure#469 · branch issue-469 · harness codex · workflow direct-main
  • Run: engineer-codex-infrastructure-469 · ward v0.580.0 · dispatched 2026-07-10T12:35:05Z
  • Comment thread: 0 included in the pre-flight read, 1 stripped (ward's own automated comments).

Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.580.0).

— Codex, via ward agent

<!-- ward-agent-reservation --> WARD-RESERVATION: held 🔒 <details><summary>reservation details</summary> Holder: container `engineer-codex-infrastructure-469` on host `kais-macbook-pro-2.local`. Reserved by `ward agent --harness codex` (reserved 2026-07-10T12:35:05Z). Concurrent `ward agent` runs are blocked until it finishes or the reservation goes stale (1h TTL). `--force` overrides. **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). <details><summary>run seed context — what this run is carrying (ward#609)</summary> - **Resolved:** `coilyco-flight-deck/infrastructure#469` · branch `issue-469` · harness `codex` · workflow `direct-main` - **Run:** `engineer-codex-infrastructure-469` · ward `v0.580.0` · dispatched `2026-07-10T12:35:05Z` - **Comment thread:** 0 included in the pre-flight read, 1 stripped (ward's own automated comments). - stripped: @coilyco-ops (2026-07-10T12:22:03Z) Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.580.0). </details> </details> <!-- ward-agent-signature --> — Codex, via `ward agent`
Author
Member

WARD-RESERVATION: held 🔒

reservation details

Holder: container engineer-codex-infrastructure-469 on host kais-macbook-pro-2.local.

Reserved by ward agent --harness codex (reserved 2026-07-10T12:49:26Z). Concurrent ward agent runs are blocked until it finishes or the reservation goes stale (1h TTL). --force overrides.

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)
  • Resolved: coilyco-flight-deck/infrastructure#469 · branch issue-469 · harness codex · workflow direct-main
  • Run: engineer-codex-infrastructure-469 · ward v0.580.0 · dispatched 2026-07-10T12:49:26Z
  • Comment thread: 0 included in the pre-flight read, 2 stripped (ward's own automated comments).

Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.580.0).

— Codex, via ward agent

<!-- ward-agent-reservation --> WARD-RESERVATION: held 🔒 <details><summary>reservation details</summary> Holder: container `engineer-codex-infrastructure-469` on host `kais-macbook-pro-2.local`. Reserved by `ward agent --harness codex` (reserved 2026-07-10T12:49:26Z). Concurrent `ward agent` runs are blocked until it finishes or the reservation goes stale (1h TTL). `--force` overrides. **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). <details><summary>run seed context — what this run is carrying (ward#609)</summary> - **Resolved:** `coilyco-flight-deck/infrastructure#469` · branch `issue-469` · harness `codex` · workflow `direct-main` - **Run:** `engineer-codex-infrastructure-469` · ward `v0.580.0` · dispatched `2026-07-10T12:49:26Z` - **Comment thread:** 0 included in the pre-flight read, 2 stripped (ward's own automated comments). - stripped: @coilyco-ops (2026-07-10T12:22:03Z), @coilyco-ops (2026-07-10T12:35:05Z) Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.580.0). </details> </details> <!-- ward-agent-signature --> — Codex, via `ward agent`
Author
Member

WARD-OUTCOME: done

details

workflow: direct-main; review summary: skipped (review gate skipped by ~/.ward/config.yaml default)
retrospective: this was mostly token plumbing plus a couple of rebases because origin/main kept moving.
confidence: high
surprises: the public actions API was enough to verify the run state, but the attended AWS helper had no credentials in this container.
follow-ups: none

WARD-OUTCOME: done <details><summary>details</summary> workflow: direct-main; review summary: skipped (review gate skipped by ~/.ward/config.yaml default) retrospective: this was mostly token plumbing plus a couple of rebases because origin/main kept moving. confidence: high surprises: the public actions API was enough to verify the run state, but the attended AWS helper had no credentials in this container. follow-ups: none </details>
Sign in to join this conversation.
No description provided.