-
Notifications
You must be signed in to change notification settings - Fork 106
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
[Bug]: Cannot sync from an Harbor registry #2882
Comments
@pedroosorio can you also report logs from harbor side? |
Hello @pedroosorio I need to know how the www-authenticate header looks if you make an unathenticated GET on the catalog endpoint. like Thank you! |
|
Got the same problem, and the source is here: if len(auth) > 0 || lib.V2CatalogURLRe.MatchString(req.URL.Path) {
// Return basic auth challenge by default, incl. request to '/v2/_catalog'
return `Basic realm="harbor"`
} |
At the same time it's unclear to me, why Zot uses bearer protocol for basic auth. Podman, Docker, Scopeo works well with the Harbor. |
Added a patch that is fixing this issue.
Because zot is taking the auth scheme from /v2/ route, maybe we should change that. |
Why? That is what the OCI community decided to do. |
And here's the relevant harbor issue: goharbor/harbor#13573 |
@vooon Can you try the patch. I already tested it with harbor's demo instance and it.s working. |
@eusebiu-constantin-petu-dbk i applied your patch on top of #2865 (as i need that functionality). Works fine! Both, onDemand: true and false! |
Hi all ! Wasn't expecting this much traction, but i really appreciate it. As i understand your comments, it is a bug in Harbor as much as it is a bug in Zot ? Got a little bit confused 💃 |
zot version
v2.1.0
Describe the bug
I'm configuring Zot to mirror from an Harbor registry - https://harbor.skao.int. The pull-through (on demand) is working fine, but i cannot get the scheduled scan to work.
To reproduce
My configuration is:
Expected behavior
I would expect the sync to actually work. I suspect this might come from the fact that we have custom Nginx code in front of Harbor to allow it to "answer" to other domains on a specific project. Although, the registry works just fine with podman/docker CLI login and pull/push wise. It also works with ORAS cli, so if there was something really wrong under the hood, some of these would fail i guess.
Screenshots
Additional context
No response
The text was updated successfully, but these errors were encountered: