feat(spartan): WIF + Artifact Registry for treasury-infra CI#24527
Merged
Conversation
Adds a GitHub Actions Workload Identity pool/provider restricted to the aztec-labs-eng/treasury-infra repository, a treasury-infra-ci service account it may impersonate, and a treasury-infra Docker repository the account can write to. Lets that repo's CI push its propose-watcher image keylessly; GKE nodes already read Artifact Registry project-wide. The pool/provider names (github / treasury-infra) are referenced by the GCP_WIF_PROVIDER variable already set on the treasury-infra repo.
alexghr
approved these changes
Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the IAM for
aztec-labs-eng/treasury-infraGitHub Actions to push Docker images (the propose-watcher service, treasury-infra#4) to Artifact Registry intestnet-440309— keyless via Workload Identity Federation, as requested by Alex instead of ad-hoc gcloud commands.What it declares (in
spartan/terraform/gke-cluster/):iam.tf: service accounttreasury-infra-ci, agithubWorkload Identity pool, an OIDC provider trusting GitHub-issued tokens with an attribute condition pinning it to exactly theaztec-labs-eng/treasury-infrarepository, and theworkloadIdentityUserbinding.docker-registry.tf: Docker repositorytreasury-infra(us-west1) and anartifactregistry.writerbinding for the CI service account scoped to that one repository — nothing project-wide.Notes for the applier:
terraform validatepasses; I don't have permissions to plan/apply against the live state (editor only).treasury-infraAR repo andtreasury-infra-ciSA were deleted before this PR, soterraform applycreates everything fresh — no imports needed. Expected plan: 6 to add, 0 to change, 0 to destroy.aztec-gke-nodes-saalready has project-levelartifactregistry.reader(managed in this same file).build-pushjob works immediately.