Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use workload identity for prow #202

Open
6 of 7 tasks
fejta opened this issue Jan 7, 2020 · 4 comments
Open
6 of 7 tasks

Use workload identity for prow #202

fejta opened this issue Jan 7, 2020 · 4 comments

Comments

@fejta
Copy link
Contributor

fejta commented Jan 7, 2020

@fejta
Copy link
Contributor Author

fejta commented Jan 8, 2020

Merged #204

Binding:

fejta@fejta3:~/src/gh/test-infra$ experiment/workload-identity/bind-service-accounts.sh oss-prow us-west1-a prow default gerrit [email protected]
+ gcloud iam service-accounts add-iam-policy-binding --project=oss-prow --role=roles/iam.workloadIdentityUser '--member=serviceAccount:oss-prow.svc.id.goog[default/gerrit]' [email protected]
Updated IAM policy for serviceAccount [[email protected]].

@fejta
Copy link
Contributor Author

fejta commented Jan 9, 2020

Well that failed miserably, apparently because I cannot follow instructions: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity#enable_workload_identity_on_an_existing_cluster

@fejta
Copy link
Contributor Author

fejta commented Jan 10, 2020

GoogleCloudPlatform/testgrid:
- name: push-testgrid-images
cluster: test-infra-trusted

now uses

which authenticates as

iam.gke.io/gcp-service-account: [email protected]
name: testgrid-pusher

@fejta
Copy link
Contributor Author

fejta commented Jan 10, 2020

Now will migrate the prow updater to use workload identity:

console
bash-3.2$ ../test-infra/experiment/workload-identity/bind-service-accounts.sh oss-prow us-west1-a prow test-pods prow-deployer [email protected]
Error from server (NotFound): serviceaccounts "prow-deployer" not found
Service account has wrong/missing annotation, please declare the following to test-pods/prow-deployer in gke_oss-prow_us-west1-a_prow:
"{"metadata": {"annotations": "iam.gke.io/gcp-service-account": "[email protected]"}}

#221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant