You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **⚠️ NOTE!** Changing the `permissions` block may remove some default
66
-
> permissions. See the [permissions documentation][github-perms] for more
67
-
> information.
65
+
> [!NOTE]
66
+
>
67
+
> Changing the `permissions` block may remove some default permissions. See the
68
+
> [permissions documentation][github-perms] for more information.
68
69
69
70
For more usage options, see the [examples](docs/EXAMPLES.md).
70
71
@@ -73,9 +74,11 @@ For more usage options, see the [examples](docs/EXAMPLES.md).
73
74
74
75
### Inputs: Workload Identity Federation
75
76
76
-
> **⚠️ WARNING!** This option is [not supported by Firebase Admin
77
-
> SDK](https://github.com/firebase/firebase-admin-node/issues/1377). Use
78
-
> Service Account Key JSON authentication instead.
77
+
> [!WARNING]
78
+
>
79
+
> This option is [not supported by Firebase Admin
80
+
> SDK](https://github.com/firebase/firebase-admin-node/issues/1377). Use Service
81
+
> Account Key JSON authentication instead.
79
82
80
83
The following inputs are for _authenticating_ to Google Cloud via Workload
81
84
Identity Federation.
@@ -108,8 +111,10 @@ Identity Federation.
108
111
109
112
### Inputs: Service Account Key JSON
110
113
111
-
> **⚠️ WARNING!** Service Account Key JSON credentials are long-lived
112
-
> credentials and must be treated like a password.
114
+
> [!CAUTION]
115
+
>
116
+
> Service Account Key JSON credentials are long-lived credentials and must be
117
+
> treated like a password.
113
118
114
119
The following inputs are for _authenticating_ to Google Cloud via a Service
115
120
Account Key JSON.
@@ -319,10 +324,12 @@ This section describes the three configuration options:
319
324
1. [Workload Identity Federation through a Service Account](#indirect-wif)
320
325
1. [Service Account Key JSON](#sake)
321
326
322
-
> **⚠️ NOTE!** It can take up to 5 minutes for Workload Identity Pools, Workload
323
-
> Identity Providers, and IAM permissions to propagate. Please wait at least
324
-
> five minutes and follow all [Troubleshooting steps](docs/TROUBLESHOOTING.md)
325
-
> before opening an issue.
327
+
> [!IMPORTANT]
328
+
>
329
+
> It can take up to 5 minutes for Workload Identity Pools, Workload Identity
330
+
> Providers, and IAM permissions to propagate. Please wait at least five minutes
331
+
> and follow all [Troubleshooting steps](docs/TROUBLESHOOTING.md) before opening
332
+
> an issue.
326
333
327
334
328
335
<a name="direct-wif" id="direct-wif"></a>
@@ -337,8 +344,10 @@ information.
337
344
338
345
[](docs/google-github-actions-auth-direct-workload-identity-federation.svg)
339
346
340
-
> **⚠️ NOTE!** To generate OAuth 2.0 access tokens or ID tokens, you _must_
341
-
> provide a service account email, and the Workload Identity Pool must have
347
+
> [!IMPORTANT]
348
+
>
349
+
> To generate OAuth 2.0 access tokens or ID tokens, you _must_ provide a service
350
+
> account email, and the Workload Identity Pool must have
342
351
> `roles/iam.workloadIdentityUser` permissions on the target Google Cloud
343
352
> Service Account. Follow the steps for Workload Identity Federation through a
344
353
> Service Account instead.
@@ -389,9 +398,10 @@ These instructions use the [gcloud][gcloud] command-line tool.
389
398
the principal invoking the GitHub Action). These can be used to further
390
399
restrict the authentication using `--attribute-condition` flags.
391
400
392
-
> **❗️ NOTE!** You must map any claims in the incoming token to attributes
393
-
> before you can assert on those attributes in a CEL expression or IAM
394
-
> policy!**
401
+
> [!IMPORTANT]
402
+
>
403
+
> You must map any claims in the incoming token to attributes before you can
404
+
> assert on those attributes in a CEL expression or IAM policy!
395
405
396
406
1. Extract the Workload Identity **Provider** resource name:
397
407
@@ -413,10 +423,12 @@ These instructions use the [gcloud][gcloud] command-line tool.
> **⚠️ NOTE!** The `project_id` input is optional, but may be required by
417
-
> downstream authentication systems such as the `gcloud` CLI. Unfortunately
418
-
> we cannot extract the project ID from the Workload Identity Provider,
419
-
> since it requires the project _number_.
426
+
> [!IMPORTANT]
427
+
>
428
+
> The `project_id` input is optional, but may be required by downstream
429
+
> authentication systems such as the `gcloud` CLI. Unfortunately we cannot
430
+
> extract the project ID from the Workload Identity Provider, since it
431
+
> requires the project _number_.
420
432
>
421
433
> It is technically possible to convert a project _number_ into a project
422
434
> _ID_, but it requires permissions to call Cloud Resource Manager, and we
@@ -512,9 +524,10 @@ These instructions use the [gcloud][gcloud] command-line tool.
512
524
the principal invoking the GitHub Action). These can be used to further
513
525
restrict the authentication using `--attribute-condition` flags.
514
526
515
-
> **❗️ NOTE!** You must map any claims in the incoming token to attributes
516
-
> before you can assert on those attributes in a CEL expression or IAM
517
-
> policy!**
527
+
> [!IMPORTANT]
528
+
>
529
+
> You must map any claims in the incoming token to attributes before you can
530
+
> assert on those attributes in a CEL expression or IAM policy!**
518
531
519
532
1. Allow authentications from the Workload Identity Pool to your Google Cloud
520
533
Service Account.
@@ -576,7 +589,9 @@ as a secret.
576
589
577
590
[](docs/google-github-actions-auth-service-account-key-export.svg)
578
591
579
-
> **❗️ WARNING!** Google Cloud Service Account Key JSON files must be secured
592
+
> [!CAUTION]
593
+
>
594
+
> Google Cloud Service Account Key JSON files must be secured
580
595
> and treated like a password. Anyone with acess to the JSON key can
581
596
> authenticate to Google Cloud as the underlying Service Account. By default,
582
597
> these credentials never expire, which is why the former authentication options
0 commit comments