UID2-7146: Switch GCP workflows to dedicated service accounts#2570
Open
BehnamMozafari wants to merge 4 commits into
Open
UID2-7146: Switch GCP workflows to dedicated service accounts#2570BehnamMozafari wants to merge 4 commits into
BehnamMozafari wants to merge 4 commits into
Conversation
…E2E_SERVICE_ACCOUNT Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Switches the GCP OIDC publish workflow to `vars.GCP_PUBLISH_SERVICE_ACCOUNT` and the E2E test workflow to `vars.GCP_E2E_SERVICE_ACCOUNT`. This removes the operator repo's dependency on the admin SA (`github@uid2-cicd`), which after gcp-infra PR 2 will be restricted to `gcp-infra` main-branch applies only.
Note (manual step required before this PR is functional): Add `GCP_PUBLISH_SERVICE_ACCOUNT` and `GCP_E2E_SERVICE_ACCOUNT` as repo-level variables in GitHub Actions settings. The legacy `GCP_SERVICE_ACCOUNT` variable can be deleted after this PR merges and the new vars are confirmed working.
Part of UID2-7146 (step 2 of 4 — gated on gcp-infra PR 1 being applied to create the new SAs).
🤖 Generated with Claude Code
Smoke tests (run on
bmz-UID2-7146-restrict-deployment-role)Both new service accounts validated before review.
GCP_PUBLISH_SERVICE_ACCOUNTandGCP_E2E_SERVICE_ACCOUNTrepo vars are set.✅ Publish —
github-publish@uid2-cicd— run 26856360314 (publish-gcp-oidc-enclave-docker.yaml, Snapshot)github-publish@uid2-cicdus-docker.pkg.dev/uid2-prod-project/iabtechlab/uid2-operator:5.70.118-alpha-228-SNAPSHOT-gcp-oidc✅ E2E —
github-e2e@uid2-cicd— run 26856542004 (run-e2e-tests-on-operator.yaml, gcp/UID2/mock,operator_image_version=5.70.118-alpha-228-SNAPSHOT-gcp-oidc)ci-test-32653created with--service-account github-e2e@uid2-cicdand reached RUNNING;gcloud compute instances describereturned its IP; cleanup deleted it (no lingering VM)/ops/healthcheck, "Max attempts reached") — a VM-boot/attestation/mock-connectivity issue, independent of the SA swap (the VM was already provisioned under the new SA before the healthcheck began)operator_image_version; the defaultlatesthas no GCP image in GAR (first attempt failed at "Prepare GCP metadata" for that reason)