Harbor: Why the registry auth changes between version 1 and 2?

Created on 14 May 2020  ·  4Comments  ·  Source: goharbor/harbor

Hi team!

I am trying to use (almost) the same configuration i already have in Harbor 1 but with the new version (2.0.0).

And I have some issues while trying to connect to the registry.
Seems to be related with:

https://github.com/goharbor/harbor/blob/v1.10.2/make/photon/prepare/templates/registry/config.yml.jinja

and

https://github.com/goharbor/harbor/blob/v2.0.0/make/photon/prepare/templates/registry/config.yml.jinja

In v1.10.2 the registry auth configuration was based in tokens issued by core while in v2 is hardcoded to be httpasswd....

What is the reason? I can not find any docs around this topic in the changelog/docs site

Thanks!

Most helpful comment

This looks like it's intentional to me based on the comments in this commit: https://github.com/goharbor/harbor/commit/2064a1cd6d9b97fd2c7445885cdc4eb461455af9

All 4 comments

I found this commit while comparing tags:

https://github.com/goharbor/harbor/commit/c303dcf61747ebac1b0eee665d04fa2a0a16b5e9

Could be related?

This looks like it's intentional to me based on the comments in this commit: https://github.com/goharbor/harbor/commit/2064a1cd6d9b97fd2c7445885cdc4eb461455af9

This looks like it's intentional to me based on the comments in this commit: 2064a1c

Hmm yeah... looks intentional, but what was the reason? just curiosity.

It's part of the effort to let Harbor core control the auth scheme and treat distribution as storage

Was this page helpful?
0 / 5 - 0 ratings