Skip to content

Move FilOzone Terraform state to FilOz AWS with OIDC - #81

Merged
beck-8 merged 1 commit into
masterfrom
beck-8/filozone-terraform-oidc
Nov 26, 2026
Merged

beck-8 merged 1 commit into
masterfrom
beck-8/filozone-terraform-oidc

Conversation

@beck-8

@beck-8 beck-8 commented Nov 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Point FilOzone's Terraform backend at the FilOz-owned filoz-github-mgmt-filozone bucket in us-east-1 and use S3 lock files.
  • Use GitHub OIDC before terraform init. The Plan, Comment and Fix jobs assume the read-only role. Apply, Sync and Clean assume the read-write role.
  • Record the bootstrap configuration used to provision the bucket and roles, and update the setup guide. The GitHub App secrets migration is tracked separately.

Cutover checklist

  1. Pause other PR merges and disable automatic Apply before merging this PR. Keep the old backend and AWS repository secrets available for rollback.
  2. From master, manually run Sync for FilOzone with locking enabled and refresh disabled. It rebuilds Terraform state from the live GitHub configuration in the new bucket.
  3. After Sync succeeds, re-enable Apply. Open a small verification PR and review Plan for unexpected changes before merging. Confirm Apply succeeds against the new backend.
  4. Remove the four old AWS repository secrets after verification. Repeat the rollout for filecoin-project separately.

The Plan and Fix checks on this PR run the workflows from the current base branch, so their results do not confirm the new OIDC connection.

Validation

  • Terraform 1.12.0 formatting and validation passed for the bootstrap and root configuration. Root validation used a local state fixture and placeholder GitHub App inputs, with no cloud backend access. The existing default_branch deprecation warning remains.
  • Verified all six OIDC role assignments and the removal of static AWS secret references from the workflows. Confirmed that the write and push environments only allow the master branch.
  • Actionlint reported no new diagnostics. The existing matrix.workspace reference in the non-matrix Apply prepare job remains.

@github-actions

Copy link
Copy Markdown
Contributor

The following access changes will be introduced as a result of applying the plan:

Access Changes
There will be no access changes

@github-actions

Copy link
Copy Markdown
Contributor

Before merge, verify that all the following plans are correct. After merge, Apply will regenerate the plans from the merged commit and continue only if they match.

Terraform plans

FilOzone
No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

@beck-8
beck-8 marked this pull request as ready for review November 26, 2026 12:15
@beck-8
beck-8 merged commit f5f6051 into master Nov 26, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from 📌 Triage to 🎉 Done in FOC Nov 26, 2026
@beck-8
beck-8 deleted the beck-8/filozone-terraform-oidc branch November 26, 2026 12:17

This branch was successfully deployed

2 active deployments
push — 294209f1 Deployed Nov 26, 2026 by beck-8 via Push #341
read — 294209f1 Deployed Nov 26, 2026 by beck-8 via Comment #184
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

1 participant