Cannot Look Up Images in Self Hosted Gitlab Container Registry #24084
Replies: 3 comments 2 replies
-
|
Does it appear that Renovate is querying the correct endpoints to begin with? If so then it's likely an auth issue and not a path/url issue |
Beta Was this translation helpful? Give feedback.
-
|
I did a test running renovate outside the pipeline, against a single repo with the same credentials and it seems to authenticate fine docker run \
--env RENOVATE_TOKEN=glpat-1234567 \
--env RENOVATE_PLATFORM=gitlab \
--env RENOVATE_ENDPOINT=https://git.company.com/api/v4/ \
--env RENOVATE_ONBOARDING=false \
--env RENOVATE_LOG_FILE_LEVEL=DEBUG \
--env GITHUB_COM_TOKEN=ghp_1234567 \
-v $(pwd)/renovate/:/tmp/renovate/ \
-ti \
--rm \
renovate/renovate:36.60.0-slim@sha256:661ad6cb0ee3274b02c524dad1ee916982b81cd16c6487f400bcc6497d4db1c4 \
--host-rules='[{"hostType": "docker", "username": "renovate-bot", "password": "glpat-1234567","matchHost": "git-registry.company.com"}]' \
--log-file=/tmp/renovate/renovate.log \
docker/image-builder{
"gitlabci": [
{
"packageFile": ".ci/default.yml",
"deps": [
{
"depName": "git-registry.company.com/docker/image-builder/debian-buildx",
"currentValue": "0.0.1",
"replaceString": "git-registry.company.com/docker/image-builder/debian-buildx:0.0.1",
"autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"datasource": "docker",
"depType": "image",
"updates": [],
"packageName": "git-registry.company.com/docker/image-builder/debian-buildx",
"versioning": "docker",
"warnings": [],
"sourceUrl": "https://git.company.com/docker/image-builder",
"registryUrl": "https://git-registry.company.com",
"currentVersion": "0.0.1",
"fixedVersion": "0.0.1"
}
]
}
]
} |
Beta Was this translation helpful? Give feedback.
-
|
Hope someone is looking at this too old topic :) How can we solve it ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us what version of Renovate you run.
36.60.0
If you're self-hosting Renovate, select which platform you are using.
GitLab self-hosted
Was this something which used to work for you, and then stopped?
I am trying to get this working for the first time
Describe the problem
I cannot get renovate to lookup images in our private registry. All the configuration is done though CI/CD env vars.
renovate.json
Relevant debug logs
Logs
[ { "name": "renovate", "hostname": "runner-kx4nhkle-project-877-concurrent-0", "pid": 16, "level": 20, "logContext": "WkDgedbvtK0ghAo1bfFtx", "repository": "docker/image-builder", "msg": "GET https://git.company.com/jwt/auth?scope=repository%3Adocker%2Fimage-builder%2Fdebian-buildx%3Apull&service=container_registry = (code=ERR_NON_2XX_3XX_RESPONSE, statusCode=403 retryCount=0, duration=61)", "time": "2023-08-25T16:17:10.148Z", "v": 0 }, { "name": "renovate", "hostname": "runner-kx4nhkle-project-877-concurrent-0", "pid": 16, "level": 20, "logContext": "WkDgedbvtK0ghAo1bfFtx", "repository": "docker/image-builder", "registryHost": "https://git-registry.company.com", "dockerRepository": "docker/image-builder/debian-buildx", "msg": "Not allowed to access docker registry", "time": "2023-08-25T16:17:10.149Z", "v": 0 }, { "name": "renovate", "hostname": "runner-kx4nhkle-project-877-concurrent-0", "pid": 16, "level": 20, "logContext": "WkDgedbvtK0ghAo1bfFtx", "repository": "docker/image-builder", "err": { "name": "HTTPError", "code": "ERR_NON_2XX_3XX_RESPONSE", "timings": { "start": 1692980230086, "socket": 1692980230086, "lookup": 1692980230087, "connect": 1692980230101, "secureConnect": 1692980230104, "upload": 1692980230104, "response": 1692980230146, "end": 1692980230147, "phases": { "wait": 0, "dns": 1, "tcp": 14, "tls": 3, "request": 0, "firstByte": 42, "download": 1, "total": 61 } }, "message": "Response code 403 (Forbidden)", "stack": "HTTPError: Response code 403 (Forbidden)\n at Request.<anonymous> (/opt/containerbase/tools/renovate/36.60.0/node_modules/got/dist/source/as-promise/index.js:118:42)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)", "options": { "headers": { "user-agent": "RenovateBot/36.60.0 (https://github.com/renovatebot/renovate)", "accept": "application/json", "accept-encoding": "gzip, deflate, br" }, "url": "https://git.company.com/jwt/auth?scope=repository%3Adocker%2Fimage-builder%2Fdebian-buildx%3Apull&service=container_registry", "hostType": "docker", "username": "", "password": "", "method": "GET", "http2": false }, "response": { "statusCode": 403, "statusMessage": "Forbidden", "body": { "errors": [ { "code": "DENIED", "message": "access forbidden" } ], "http_status": 403 }, "headers": { "cache-control": "no-cache, no-cache=\"set-cookie\"", "content-security-policy": "", "content-type": "application/json; charset=utf-8", "date": "Fri, 25 Aug 2023 16:17:10 GMT", "page-title": "GitLab", "permissions-policy": "interest-cohort=()", "server": "nginx", "set-cookie": [ "AWSELB=1501DDD908F3FC572F89A3ABEBAEB28B4CE45618A39E833AFCD7654709C6E395A6058F1347D86E650CBF1F4F7FDBA7634DA261814205FEA0F2D9536822A5AAA2A4EF70B2CC;PATH=/;MAX-AGE=300", "AWSELBCORS=1501DDD908F3FC572F89A3ABEBAEB28B4CE45618A39E833AFCD7654709C6E395A6058F1347D86E650CBF1F4F7FDBA7634DA261814205FEA0F2D9536822A5AAA2A4EF70B2CC;PATH=/;MAX-AGE=300;SECURE;SAMESITE=None" ], "vary": "Accept", "x-content-type-options": "nosniff", "x-download-options": "noopen", "x-frame-options": "SAMEORIGIN", "x-gitlab-custom-error": "1", "x-permitted-cross-domain-policies": "none", "x-request-id": "01H8PQRDYTSF3N9X9B2TDXSJTF", "x-runtime": "0.022665", "x-ua-compatible": "IE=edge", "x-xss-protection": "1; mode=block", "content-length": "77", "connection": "Close" }, "httpVersion": "1.1", "retryCount": 0 } }, "msg": "Response code 403 (Forbidden)", "time": "2023-08-25T16:17:10.152Z", "v": 0 } ]Have you created a minimal reproduction repository?
I have explained in the description why a minimal reproduction is impossible
Beta Was this translation helpful? Give feedback.
All reactions