-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Unable to replicate between two harbor instances using robot account in harbor v.2.5 #16863
Comments
It is by designed. When you enable the system admin only, no one besides admin users can create project. |
Hi, Yes I understand the differentiation between everyone and system admins only and it makes sense to me. only system admins can create projects (out of security reasons) AND robot accounts can create projects while used for replication (only). Best, Oliver |
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days. |
@wy65701436 so what you are saying is that by design replication using system robot account requires you to first create the projects on the mirror side? |
I mean when you Set "Project Creation" to "Admin only", the failure scenario is by designed since robot cannot create projects for replication. |
@wy65701436 is the suggested path forward to set Project Creation to Everyone if you want a robot account to do replication? what are the alternatives? use an Admin user cli token as this issue suggests #16794 (comment) ? Is there any other suggestions or future work regarding support for Robot Accounts? |
Expected behavior and actual behavior:
We want to replicate images between two separate harbor registries A,B using robot accounts (system accounts are not feasable for us). The robot account we created for replication on B has full permission in all namespaces.
As we are running harbor in enterprise we disabled "Project Creation" to "Everyone", only "Admin only" is allowed.
When we test the replication, it fails with the error message: 403 FORBIDDEN, only system admin can create project.
If we temporarily set "Project Creation" to "Everyone", replication works fine.
We want to make this work for "Project Creation" as "Admin only" .
In the following issue it is stated, that this feature (replication via robot account) should work with harbor v.2.4, see here . Here is another issue stating that it does not work in v.2.4 here.
Steps to reproduce the problem:
Versions:
The text was updated successfully, but these errors were encountered: