-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
GCP Service Account key unable to retrieve token #5794
Comments
Can you clarify how the service account is setup to be used for
If you have the key file locally ( Example:
Additionally if skaffold is correctly pointing to the key (as the logs suggest), can you verify the key is not expired or re-create the key and try again? |
I saw a similar error to what is posted when the
and the project inferred from the default repo:
were not the same |
Interesting. I did indeed get this going with |
Great, I'm going to close this for now as it seems using |
Expected behavior
Using only a GCP service account key, build using cloud build.
Actual behavior
Never able to auth service account key, always tries to fallback to gcloud application default credentials
Information
I am using skaffold in GitLab CI. Running in debug mode, I see that when skaffold starts the cloud build, it tries to auth after grabbing the gcloud credentials from
gcloud auth print-access-token
.Unfortunately, no matter the permissions of the service account, my debug log shows
unable to retrieve token: oauth2: token expired and refresh token is not set
.It then continues, tried to request information about the logging bucket, which times out.
Related PR: #2731
Steps to reproduce the behavior
gcloud auth activate-service-account .... && gcloud container clusters get-credentials ....
skaffold run -pdevelopment -vdebug
The text was updated successfully, but these errors were encountered: