Tweak some documentation around troubleshooting
This commit is contained in:
parent
abd9c242f6
commit
7c1d54bea7
@ -18,8 +18,9 @@ it means Workload Identity Federation is configured correctly and the issue is
|
|||||||
in subsequent actions. You can remove the `token_format` from your YAML. To
|
in subsequent actions. You can remove the `token_format` from your YAML. To
|
||||||
further debug:
|
further debug:
|
||||||
|
|
||||||
1. Look at the [debug logs][debug-logs] to see exactly which step is failing.
|
1. Enable [GitHub Actions debug logging][debug-logs] and re-run the workflow to
|
||||||
Ensure you are using the latest version of that GitHub Action.
|
see exactly which step is failing. Ensure you are using the latest version
|
||||||
|
of that GitHub Action.
|
||||||
|
|
||||||
1. Make sure you use `actions/checkout@v3` **before** the `auth` action in your
|
1. Make sure you use `actions/checkout@v3` **before** the `auth` action in your
|
||||||
workflow.
|
workflow.
|
||||||
@ -38,8 +39,9 @@ If your workflow _fails_ after adding the the step to generate an access token,
|
|||||||
it likely means there is a misconfiguration with Workload Identity. Here are
|
it likely means there is a misconfiguration with Workload Identity. Here are
|
||||||
some common sources of errors:
|
some common sources of errors:
|
||||||
|
|
||||||
1. Look at the [debug logs][debug-logs] to see exactly which step is failing.
|
1. Enable [GitHub Actions debug logging][debug-logs] and re-run the workflow to
|
||||||
Ensure you are using the latest version of that GitHub Action.
|
see exactly which step is failing. Ensure you are using the latest version
|
||||||
|
of that GitHub Action.
|
||||||
|
|
||||||
1. Ensure the value for `workload_identity_provider` is the full _Provider_
|
1. Ensure the value for `workload_identity_provider` is the full _Provider_
|
||||||
name, **not** the _Pool_ name:
|
name, **not** the _Pool_ name:
|
||||||
@ -49,6 +51,10 @@ some common sources of errors:
|
|||||||
+ projects/NUMBER/locations/global/workloadIdentityPools/POOL/providers/PROVIDER
|
+ projects/NUMBER/locations/global/workloadIdentityPools/POOL/providers/PROVIDER
|
||||||
```
|
```
|
||||||
|
|
||||||
|
1. Ensure the `workload_identity_provider` uses the Google Cloud Project
|
||||||
|
**number**. Workload Identity Federation does not accept Google Cloud
|
||||||
|
Project IDs.
|
||||||
|
|
||||||
1. Ensure you have created an **Attribute Mapping** for any **Attribute
|
1. Ensure you have created an **Attribute Mapping** for any **Attribute
|
||||||
Conditions** or **Service Account Impersonation** principals. You cannot
|
Conditions** or **Service Account Impersonation** principals. You cannot
|
||||||
create an Attribute Condition unless you map that value from the incoming
|
create an Attribute Condition unless you map that value from the incoming
|
||||||
@ -80,7 +86,7 @@ some common sources of errors:
|
|||||||
|
|
||||||
Try to authenticate again, and then explore the logs for your Workload
|
Try to authenticate again, and then explore the logs for your Workload
|
||||||
Identity Provider and Workload Identity Pool. Sometimes these error messages
|
Identity Provider and Workload Identity Pool. Sometimes these error messages
|
||||||
are helpful in hinting at the root problem.
|
are helpful in identifying the root cause.
|
||||||
|
|
||||||
1. Ensure you have waited at least 5 minutes between making changes to the
|
1. Ensure you have waited at least 5 minutes between making changes to the
|
||||||
Workload Identity Pool and Workload Identity Provider. Changes to these
|
Workload Identity Pool and Workload Identity Provider. Changes to these
|
||||||
|
Loading…
Reference in New Issue
Block a user