Possible to run docker source without pull access? #32640
Replies: 2 comments 1 reply
-
Hi there, This issue or discussion is missing some logs, making it difficult or impossible to help you. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Mend Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsRead the Renovate docs, troubleshooting, self-hosted to learn how to find the logs. Insufficient logsSelect me to read instructionsIf you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the No logs at all section. Formatting your logsSelect me to read instructionsPlease put your logs in a
If you feel the logs are too large to paste here, please use a service like GitHub Gist and paste the link here. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Renovate is not performing any We'd need to work out which HTTP GET or HTTP HEAD we do which requires pull permissions. Potentially you could patch Renovate locally to not request pull permissions and then see which HTTP request fails, for example. |
Beta Was this translation helpful? Give feedback.
-
Tell us more.
I wonder if it would be possible to get the docker datasource working without the pull permissions?
Specifically I would like to run against private GCP artifact registry using a service account that only has list permissions:
I think those should be sufficient to get the list of available image tags, at least via the artifact registry REST API / gcloud CLI tool. Basically to minimize risk I only want to give the renovate CI access to list of images and tags, but not access to actually pull the images.
However this fails with permission error due to missing
artifactregistry.repositories.downloadArtifacts
. I believe that is because renovate asks for therepository:...:pull
scope.This comes from GCP itself:
I tried to find a definitive list of scopes that are available but got lost among the different specs... Maybe this is a limitation of the OCI / Docker registry API, and the lowest scope that will work is
pull
?If this can be done with some other scope, how about allowing to override what is returned in the
www-authenticate
header via some config option?And if there is no way to do it via docker, how about special-casing GCP artifact registry and using another API for listing the tags? I see there is already a special path for quay registry, so this would be similar.
(I might contribute PRs for either approach, but wanted to discuss the options and get agreement first)
Beta Was this translation helpful? Give feedback.
All reactions