Custom datasource GCP authentication #25990
Replies: 2 comments 5 replies
-
Hi, please format any copy/pasted code or logs so they're readable. You can find a Markdown code formatting guide here as well as some GitHub-specific information formatting code blocks here. Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
-
The hostRules for googleapis.com looks correct. Once #25967 is part of a release, please upgrade as you will get a little more debug logging around hostRules and maybe an indication of whether the hostRules are input correctly. BTW you wrote vaguely "Revonate config" which is not really descriptive enough. e.g. is it in a |
Beta Was this translation helpful? Give feedback.
-
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us what version of Renovate you run.
37.68.4
If you're self-hosting Renovate, select which platform you are using.
GitLab self-hosted
What is your question?
Hello,
I need to use custom datasource to pull a list of VM images from GCP. It works if I use curl:
curl -H "Authorization: Bearer $GCP_TOKEN" https://compute.googleapis.com/compute/v1/projects/[VALUE REDACTED]/global/images
So I put this in Revonate config:
I know my token is good, because it works for gcr.io and artifact registry, but for some reason I got 401 when checking images. Also I know permissions are good, because curl command above works. I tried to change host rules to exactly match url, partially match url - it didn't help.
Any advise, please? I'm hitting the wall for several days.
Thank you,
Viacheslav
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions