Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear error message "GCP: OIDC token request failed (code=404)" #738

Closed
laurentsimon opened this issue Aug 25, 2023 · 2 comments · Fixed by di/id#93 or #767
Closed

Unclear error message "GCP: OIDC token request failed (code=404)" #738

laurentsimon opened this issue Aug 25, 2023 · 2 comments · Fixed by di/id#93 or #767
Assignees
Labels
enhancement New feature or request

Comments

@laurentsimon
Copy link
Contributor

laurentsimon commented Aug 25, 2023

I tried signing on a GCE machine. I received error "GCP: OIDC token request failed (code=404)"

Running:

$curl -H "Metadata-Flavor: Google" http://metadata/computeMetadata/v1/instance/service-accounts/default/identity
{"error":"invalid_request","error_description":"Service account not enabled on this instance"}

Maybe it would help to relay this error to the user, at least if the tool is run in a debug / verbose mode?

/cc @di

@woodruffw
Copy link
Member

Thanks for the report @laurentsimon!

This has been fixed upstream in di/id#93; we'll need to cut a new release there and bump here. I'll reopen this to track that, and close when we do.

@woodruffw woodruffw reopened this Aug 26, 2023
@woodruffw woodruffw self-assigned this Aug 26, 2023
woodruffw added a commit that referenced this issue Sep 11, 2023
Closes #738.

Signed-off-by: William Woodruff <[email protected]>
@woodruffw
Copy link
Member

#767 bumps id, which will address the ambiguous error message here. Thanks again @laurentsimon!

woodruffw added a commit that referenced this issue Sep 11, 2023
* pyproject: bump id

Closes #738.

Signed-off-by: William Woodruff <[email protected]>

* CHANGELOG: record changes

Signed-off-by: William Woodruff <[email protected]>

---------

Signed-off-by: William Woodruff <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants