run-gemini-cli icon indicating copy to clipboard operation
run-gemini-cli copied to clipboard

Audience should be exposed when using WIF

Open DucretJe opened this issue 8 months ago • 2 comments

TL;DR

We want to be able to use a custom audience to use our WIF.

Detailed design

If a Workload Identity Federation filters on a non default audience, this action will fail because it will present //iam.googleapis.com/projects/xxx/locations/global/workloadIdentityPools/yyy/providers/zzz where x is the project number, y the project id and z the provider id.

We need to expose the audience parameter (same as auth)

Additional information

No response

DucretJe avatar Mar 16 '26 08:03 DucretJe

🤖 Hi @DucretJe, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

gemini-cli[bot] avatar Mar 16 '26 08:03 gemini-cli[bot]

I can pick this up. Plan is to add a gcp_audience input and hand it to the auth action's existing audience input, which already falls back to the provider when it's empty so nothing changes for anyone who leaves it unset. I'd also make the input validation step warn if it's set without a workload identity provider, since it would just be ignored otherwise. Shout if you'd rather it be named differently.

rootkiller6788 avatar Sep 21 '26 09:09 rootkiller6788