cloud-tofu: apply identity/forgejo on merge to main #198

Merged
founder merged 1 commit from tofu-apply-on-merge into main 2026-08-23 07:13:31 +00:00
Owner

Apply-on-merge for the OpenTofu stacks that the fleet depends on (identity, forgejo), so landing infra changes no longer needs a founder-dispatched apply.

  • Resolve Request decides the run: a dispatch keeps today's stack/mode; a push to main validates every stack (as before) and auto-applies the AUTO_APPLY_STACKS a push touched (infra/<stack>/**, Scripts/<stack>-tofu.sh, or this workflow file).
  • Auto-apply = plan -out, refuse if the plan contains any destroy/replace (those stay manual), then apply the saved plan. Results land in the job outputs like a plan run.
  • Authority: push runs take cloud-tofu-apply through the Forgejo job token with forgejo-ci-trust-guard --mode trusted-main; the OpenBao role and the WIF provider are already bound to the main subject, so no infra change.
  • Every other stack (cloud-signing, cloud-data, hq-hcloud, grafana, openbao) stays validate-only on push and apply-by-dispatch.

First effect of merging: the push applies the pending identity (resident KMS signing keys + IAM, KSE-0192) and forgejo (residents team, main push/merge whitelists) changes from #171/#175.

Apply-on-merge for the OpenTofu stacks that the fleet depends on (`identity`, `forgejo`), so landing infra changes no longer needs a founder-dispatched apply. - `Resolve Request` decides the run: a dispatch keeps today's stack/mode; a push to main validates every stack (as before) **and** auto-applies the `AUTO_APPLY_STACKS` a push touched (`infra/<stack>/**`, `Scripts/<stack>-tofu.sh`, or this workflow file). - Auto-apply = `plan -out`, refuse if the plan contains any destroy/replace (those stay manual), then `apply` the saved plan. Results land in the job outputs like a plan run. - Authority: push runs take `cloud-tofu-apply` through the Forgejo job token with `forgejo-ci-trust-guard --mode trusted-main`; the OpenBao role and the WIF provider are already bound to the main subject, so no infra change. - Every other stack (`cloud-signing`, `cloud-data`, `hq-hcloud`, `grafana`, `openbao`) stays validate-only on push and apply-by-dispatch. First effect of merging: the push applies the pending `identity` (resident KMS signing keys + IAM, KSE-0192) and `forgejo` (residents team, main push/merge whitelists) changes from #171/#175.
cloud-tofu: apply identity/forgejo on merge to main (plan on PR stays the review; destroys still manual)
Some checks failed
Deploy: API / Deploy (API) (push) Failing after 4s
Release: Signing Preflight / Release (Signing Preflight) (push) Successful in 57s
Infra: Cloud OpenTofu / Infra (Cloud OpenTofu) (push) Failing after 1m45s
Deploy: Web / Deploy (Web) (push) Successful in 2m29s
Release: If Needed / Check (Release Needed) (push) Has been cancelled
83117d0873
founder deleted branch tofu-apply-on-merge 2026-08-23 07:13:31 +00:00
Sign in to join this conversation.
No labels
No milestone
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
key-store/key.store!198
No description provided.