Commit 642deeb
authored
fix: remove unused service and redundant IAM bindings in workload identity setup script (#481)
The original fix for
#444 dated
in January is incomplete.
This change removes an unused Google internal service
`cloudcode-pa.googleapis.com` for users in the setup script for Workload
Identity Federation.
It also removes redundant IAM bindings on the Workload Identity Pool's
principal in Step 4. These IAM bindings are added in Step 5 on a
connected service account to the Workload Identity Pool, different from
its principal. GitHub Actions "impersonates" this connected service
account, which has access to Google Cloud resources and services.
Lastly, it updates the description to correctly reflect the content of
the shell script.
I have published this
[codelab](https://codelabs.developers.google.com/gemini-cli/gemini-cli-security-review#0)
that teaches about this setup.
Signed-off-by: Tianzi Cai <[email protected]>1 parent b0c9501 commit 642deeb
1 file changed
Lines changed: 7 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
224 | | - | |
225 | 226 | | |
226 | | - | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 325 | + | |
354 | 326 | | |
355 | 327 | | |
356 | 328 | | |
| |||
0 commit comments