Closed DRpandaMD closed 10 months ago
Hi there @DRpandaMD :wave:!
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.
Hi @DRpandaMD
Thank you for opening an issue. I believe that error is correct. As noted in the official WIF documentation:
Note: The prefix
gcp-
is reserved and can't be used in a pool or provider ID.
You are trying to create a provider named "gcp-python-tornado-gh-actions", but WIF providers cannot be prefixed with "gcp-".
I'll bring this up with the server team to return a more useful error message.
TL;DR
Could be bug could be user error. Basically I format my bash command with my entries instead of the samples and I am getting error messages that are unclear what is wrong and what exactly reserved by google.
Expected behavior
As Per the docs I expected this gcloud command to run so that I can continue on with my life.
See https://github.com/google-github-actions/auth?tab=readme-ov-file#preferred-direct-workload-identity-federation
As a sample here is what I have entered into my Google Cloud Shell
This last command returns 'ERROR: (gcloud.iam.workload-identity-pools.providers.create-oidc) INVALID_ARGUMENT: Invalid WorkloadIdentityPoolProvider ID. The given ID is reserved for use by Google.'
Observed behavior
ERROR: (gcloud.iam.workload-identity-pools.providers.create-oidc) INVALID_ARGUMENT: Invalid WorkloadIdentityPoolProvider ID. The given ID is reserved for use by Google.
Based on the section above, I believe its clear I have goofed somewhere. But the error messaging isn't clear as to what exactly is reserved or what it didn't like. Its also not clear what and where exactly
WorkloadIdentityPoolProvider ID
is coming from.Is that part of the flag
--workload-identity-pool='drpandamd-gh
?PRE-EDIT NOTE!!:
I changed the last bit of this command to now look like this:
So I believe the issue was in the first part of the create-odic "{THIS IS THE ID}": where I had gcp in the start of that name (ID). So it looks like its looking for some set of key words and then flags it and rejects the command and throws the error message.
It would be super nice to have that "gotcha" included in the docs here on GitHub and the big docs on the main GCP docs page.
Oh and if possible have the CLI team add response that is bit more verbose
Action YAML
Log output
No response
Additional information
This GH bug reporting wall acted as coding rubber duck and I just stumbled across the answer just by trying to explain the problem. However, I am leaving this all here in hopes that the docs do get updated with a bit more descriptive oomph in there. Surely I can't be only person who has unknowingly used a reserved ID key word with out knowing it right?