Skip to content

chore(deploy): run factory v0.6.0 on the AWS kit - #284

Merged
gusfcarvalho merged 1 commit into
mainfrom
chore/deploy-aws-v0.6.0
Nov 25, 2026
Merged

gusfcarvalho merged 1 commit into
mainfrom
chore/deploy-aws-v0.6.0

Conversation

@ccf-lisa

@ccf-lisa ccf-lisa Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Task: none — deploys v0.6.0 to the AWS dispatcher

Changes

  1. deploy/aws/instance.tf, aws_ssm_parameter.image: pin ghcr.io/containersolutions/factory@sha256:a3adcb2e6285c1300ae52230759b09fab503f880d9db5fded3874bf3e5353a52 and set the version comment to # factory v0.6.0. That is the OCI image index digest of ghcr.io/containersolutions/factory:v0.6.0 (application/vnd.oci.image.index.v1+json with linux/amd64 + linux/arm64, so the t4g instance gets its arm64 image; labels org.opencontainers.image.version=v0.6.0, org.opencontainers.image.revision=cc87cf6a08865c1d2d774ce5de961704e18fe5b8, the tag's commit), the same kind of pin as the v0.5.0 one it replaces. Checked with crane digest, crane manifest and crane config --platform linux/arm64 (and linux/amd64, same labels). The release-image run for v0.6.0 completed successfully.

Nothing else in deploy/aws (or the rest of the repo) names the old release or digest.

What v0.6.0 changes for this kit

v0.6.0 is #281 and #282 on top of v0.5.0 (plus #280 itself).

  • No serve flag changes: git diff v0.5.0 v0.6.0 -- cmd/ is empty, so /factory/prod/args and factory-run need no change.
  • No state format change: git diff v0.5.0 v0.6.0 -- internal/store is empty.
  • Deploy prerequisite, fix(provider-github): roll up only the latest check suite per workflow #281 (checks roll-up): the author identity's read token (Observe, List) now asks for actions: read, to read each check suite's workflowRun. Per fix(provider-github): roll up only the latest check suite per workflow #281, an installation without Actions: read fails Observe, ReadContent and Project with ErrInvalid after deploy. The ccf-factory App's installation on compliance-framework already grants it: its permissions read actions: read (checked with gh api orgs/compliance-framework/installations). Nothing to do before the apply.
  • Deploy prerequisite, feat(provider-github): ci.rerun effect re-runs a PR head's failed workflow runs #282 (ci.rerun effect): the op mints {actions: write, pull_requests: read} for the author identity (ccf-factory). That installation has Actions: read only, so ci.rerun fails with ErrInvalid (naming Actions: write) until the App is given Actions: write in its settings and the installation accepts it. The catalog already uses it: compliance-framework/factory-catalog#21 (merged 2026-11-25 16:28Z) allows ci.rerun in bump-fix, whose prompt calls factory ci rerun on a flaky CI failure. Grant Actions: write to ccf-factory and accept it on the compliance-framework installation before (or together with) this apply; until then every bump-fix rerun fails with ErrInvalid and the run ends without the rerun.

Expected plan after merge

Deploy (README §9)

If #278 is already applied:

tofu apply -var aws_account_id=$ACCOUNT
aws ssm send-command --instance-ids "$(tofu output -raw instance_id)" \
  --document-name AWS-RunShellScript --parameters 'commands=["systemctl restart factory"]'

Then redeliver any webhooks from the restart window. If #278 isn't applied yet, the replaced instance starts on v0.6.0 directly: no restart needed, just the §9 switch steps.

Rollback

Restoring the v0.5.0 pin (sha256:029131f6de9b4d9582e15f254e1aca0b4302ad76256a9596c3519d6b4ef62d07) is safe for the store (no change between the two), but not on its own: /factory/prod/args sets no --catalog-ref, so serve loads catalog main, which since compliance-framework/factory-catalog#21 allows ci.rerun. v0.5.0 doesn't know that op (CAT100/CAT900), and after a restart nothing is cached, so serve finds no valid catalog and exits. Roll back the catalog too, in the same apply: either add --catalog-ref 04846cbca89686c7cead4e0c6532b187d7f94f93 (catalog main before #19–#21) to aws_ssm_parameter.args, or revert factory-catalog#21 first.

Why this deploy is urgent: the dispatcher running today (v0.5.0) rejects catalog main since 16:28Z and keeps serving its last good catalog from memory. It is one restart or reboot away from failing to start. Applying v0.6.0 removes that.

Decisions

Verification (CI's tofu job, in deploy/aws, OpenTofu v1.13.9)

Command Result
tofu fmt -check exit 0
tofu init -backend=false -input=false exit 0; .terraform.lock.hcl unchanged
tofu validate Success! The configuration is valid.
tofu test Success! 15 passed, 0 failed.

Nothing was planned against or applied to AWS.

🤖 Generated with Claude Code

Pin aws_ssm_parameter.image to the v0.6.0 image index digest
(linux/amd64 + linux/arm64).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gusfcarvalho
gusfcarvalho merged commit 0dabdb5 into main Nov 25, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant