You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
infra: declare the R2 sccache bucket and its lifecycle rule in Terraform #910
First half of #909. Creates the bucket; does not repoint rust.yml, which
waits until the bucket exists and the two scoped credentials are in GitHub
secrets. Splitting them avoids the race where rust.yml on main runs against
a bucket whose apply has not finished.
infra/terraform/envs/core/r2.tf — cloudflare_r2_bucket (er-ci-sccache, enam, Standard) plus cloudflare_r2_bucket_lifecycle matching sccache.tfs 14-day expiry and 1-day multipart abort
envs/core/versions.tf — the cloudflare/cloudflare ~> 5.0 provider, pinned
to the same major envs/dev already carries, and provider "cloudflare" {}
reading CLOUDFLARE_API_TOKEN from the environment so the token never reaches
the plan file or state
Opt-in gated on var.cloudflare_account_id (null by default), the ses.tf
pattern: without a token the provider cannot authenticate and the WHOLE core
plan fails, leaving every resource that does plan cleanly unchecked. The gate
matters more here than for SES because this bucket is on the critical path of
every compile job, so the counts should come out as soon as #908 gives CI a
scoped read-only token.
Does NOT delete sccache.tf — the S3 bucket and both OIDC roles stay until the
migration is measured, because they are the rollback.
Activity
infra(core): declare the R2 sccache bucket and its lifecycle rule
infra(ci): give the core apply leg the Cloudflare credential and acco…
fix(ci): a job-level env: shadows $GITHUB_ENV, so the prod Cloudflare…