Harbor: replication of private projects doesn't work

Created on 5 Dec 2019  路  4Comments  路  Source: goharbor/harbor

If you are reporting a problem, please make sure the following information are provided:

Expected behavior and actual behavior:
Whenever try to replicate private project between two Harbor instances it finishes with status Success - no resources need to be replicated. Once I make the project to be public, I'm able to replicate all repositories in that project.
Source Harbor uses OIDC method for authentication.

Steps to reproduce the problem:

  1. Setup registry endpoint with user who has administrator rights in source Harbor or with robot account created with pull permissions on the project you want to replicate. Provider: Harbor
  2. Make sure registry endpoint status is Healthy.
  3. Create replication rule
    a) Source resource filter
  4. /** or /
  5. tag: empty
  6. label: empty
  7. resource: both
    b) destination namespace: empty (empty project with the same name as source project exists on destination Harbor)
    c) Trigger Mode: Manual
    d) checked-in "Override" and "Enable rule" check-boxes
    4) Run manually the replication rule
    5) See the Status: Success - no resources need to be replicated

Once I make the project to be public, I'm able to replicate all repositories in that project.

Versions:
Please specify the versions of following systems.

  • harbor version: [1.9.3]
  • docker engine version: [18.09.2]
areoidc targe2.1.0 targeFC

Most helpful comment

I'm also facing this issue. Replication of private projects for OIDC backed users does not work.
Edit: same problem for robot accounts

All 4 comments

I have exactly the same problem.
If i look into the harbor log files, it seems like the listing of private repositories is not working.

For public repositories i see lines like:
[DEBUG] [/replication/filter/filter.go:135]: "public_test/ubuntu" doesn't match the pattern "private_test/a*" of name filter, skip

I don't see any similar message for private repositories.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I'm also facing this issue. Replication of private projects for OIDC backed users does not work.
Edit: same problem for robot accounts

Fixed in https://github.com/goharbor/harbor/pull/12596

You'll be able to do the replication using the username you set for the OIDC user and the CLI secret.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mramanathan picture mramanathan  路  3Comments

xiaosadexiaohai picture xiaosadexiaohai  路  3Comments

moooofly picture moooofly  路  3Comments

adomenech73 picture adomenech73  路  3Comments

Poil picture Poil  路  3Comments