-
Notifications
You must be signed in to change notification settings - Fork 206
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
Cannot use impersonate with domain wide delegation #234
Comments
Hi there @damir-dezeljin 👋! Thank you for opening an issue. Our team will triage this as soon as we can. Please take a moment to review the troubleshooting steps which lists common error messages and their resolution steps. |
In order to support Domain-Wide Delegation via Workload Identity Federation, you must grant the external identity ("principalSet") What are your current IAM permissions for both |
I got bit by an upper-cased github org name. Github doesn't distinguish case on the gh CLI and url paths, but the principalSet mapping is case sensitive. |
Thank you @sethvargo , I overlooked the point I had to add IAM roles to the Still, this alone didn't solve my problem, but this had to be done as well:
|
TL;DR
Hello,
I setup a Federated identity between my GCP and a GitHub workflow.
The workload identity is set properly. I've tested it by installing gcloud SDK and running
gcloud auth list
. The later command outputs the correct SA being impersonated.Also the
google-github-actions/auth@v0
without impersonalization, usingtoken_format: 'access_token'
passes correctly.The impersonated SA has both
Service Account Token Creator
andWorkload Identity User
roles granted on thetools-iac-example
GCP project.Also, the SA has Domain Wide Delegation granted for all 4 specified scopes.
Am I missing something?
Thanks,
Damir Dezeljin
Expected behavior
The impersonation should work.
Observed behavior
The impersonalization fails with the following error:
Action YAML
Log output
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: