Repository navigation
Migrate Docker image registry from GCP Artifact Registry to AWS ECR Public - #1003
Conversation
…ublic The Flow Foundation node software registry moved from GCP to AWS ECR Public (forum announcement: https://forum.flow.com/t/flow-foundation-node-software-registry-has-moved-to-aws-ecr-public/8819). flow-evm-gateway nodes on mainnet and testnet are already pulling from ECR, but this repo still pushed to the old GCP Artifact Registry and referenced it everywhere else. GCP is being fully deprecated. Changes: - .github/workflows/build.yml: swap GCP WIF + gcloud docker auth for GitHub OIDC -> AWS role (aws-actions/configure-aws-credentials@v4) + aws-actions/amazon-ecr-login@v2 with registry-type: public. Target: public.ecr.aws/onflow/flow-evm-gateway. - Makefile: CONTAINER_REGISTRY -> public.ecr.aws/onflow. - docker-compose.yml, deploy/systemd-docker/flow-evm-gateway.service: image URL -> public.ecr.aws/onflow/flow-evm-gateway. Before merging, the matching OIDC IAM role needs to exist in flow-common (onflow/ff-sre-infrastructure#1433) and the output ARN dropped into this repo's AWS_ECR_PUBLIC_PUSH_ROLE_ARN variable. The now-unused GCP vars (REPO_DOCKER_IMAGE_URL, GHA_IDENTITY_POOL, REPO_SERVICE_ACCOUNT, GAR_PROJECT_ID, GAR_LOCATION) can be deleted from repo settings after this lands.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Kay-Zee
left a comment
There was a problem hiding this comment.
lgtm — the swap is consistent across all four files (workflow, Makefile, compose, systemd), the ecr-public login uses registry-type public correctly, and the node-side anonymous pulls work on ECR Public. one operator note: the role trust (ff-sre-infrastructure#1433) matches refs/tags/v*, so the dispatch must run FROM the tag ref — dispatching from main while naming the tag in the input fails the assume. that's the intended guard, just worth saying in the runbook.
Summary
us-west1-docker.pkg.dev/dl-flow-devex-production/development/flow-evm-gateway) to AWS ECR Public (public.ecr.aws/onflow/flow-evm-gateway). GCP is being fully deprecated; see the Flow Foundation node software registry announcement. FF nodes on mainnet and testnet are already pulling from ECR — this is the rest of the move.gcloud auth configure-dockersteps in.github/workflows/build.ymlwith GitHub OIDC → AWS role +amazon-ecr-login@v2(registry-type: public).Makefile(CONTAINER_REGISTRY),docker-compose.yml, anddeploy/systemd-docker/flow-evm-gateway.service.Prerequisites before merge
flow-evm-gateway-ecr-public-pushin flow-common, federated via GitHub OIDC, scoped torepo:onflow/flow-evm-gateway:ref:refs/tags/v*and the singleevm_gatewayECR Public repo ARN).AWS_ECR_PUBLIC_PUSH_ROLE_ARN= the ARN output by that apply.REPO_DOCKER_IMAGE_URL,GHA_IDENTITY_POOL,REPO_SERVICE_ACCOUNT,GAR_PROJECT_ID,GAR_LOCATION.Behavior change for operators dispatching the workflow
The trust policy on the AWS side only accepts OIDC tokens whose
subclaim isrepo:onflow/flow-evm-gateway:ref:refs/tags/v*. GitHub setssubfrom the ref the workflow runs on, so the workflow must be dispatched against av*tag — dispatching againstmain(or any branch) will fail at the AWS credentials step. The existinginputs.taginput is still used to label the built image and check out the right commit.Test plan
AWS_ECR_PUBLIC_PUSH_ROLE_ARNrepo varbuild.ymlagainst a throwawayv*tag; confirm it:amazon-ecr-login@v2public.ecr.aws/onflow/flow-evm-gateway:<tag>(verify anonymously viacurl public.ecr.aws/v2/onflow/flow-evm-gateway/tags/list)mainis rejected at STS (negative test)Flow-AWS-Public-Registry(SRE's call)Summary by CodeRabbit