-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Token specific to project #6201
Comments
For automation or CI integration, do you only want the bot-accounts do push/pull, or any other manage API calls. We did have some feedback requiring the bot account, but it's mainly focusing on push/pull actions, if the token is introduced, but it can only do push and pull with that token, will it satisfy your scenario? |
Thanks for your reply. We may require the other API calls too. For example, let's look our approach of Automation specific to harbor (Prod):
Right now we are doing this with the Harbor admin through our CI. But it may be a potential risk if the someone exposes the token. We want the teams will have more authority to configure their own projects. Also, we do have the worker in place which is doing the deletion of the images with some specific rules. Please share your opinions. |
But even I think this approach can also work. For push and pull at least.. |
This ask is essentially customisable fine-grained permission control over API, this is a valid scenario, but requires heavy refactory that may not happen very soon. |
Even I think in any case is it possible to have the combination of DB account and LDAP Account ? Like if I can create the DB account and if we can set the relationship of the DB account in postgres itself. What you think about this ? I am curious the admin account itself is DB Account. |
I understand you want to avoid setting credentials of LDAP in your automation scripts/tools. |
The major security risk we are facing now that in Kubernetes we are providing the secret which is created by the admin username and password. Which is ultimately not a good practice. Talking about the token I am okay if I 'll get the token for only push or pull to a specific project. Will it be possible with respect to the project? |
I think this can be done. Is this something you're willing to contribute @jakirpatel ? If not we'll work on adding it to the roadmap. |
@clouderati Happy to contribute if possible... For time being could you please add to the roadmap? I'll pick it ASAP when I get the time for it... |
The robot account will be part of 1.8.0: |
Is your feature request related to a problem? Please describe.
Yes. We do have the LDAP in place. The current relationship between harbor and teams is differentiated through projects in the harbor.So one team is having N number of mailing lists and we have assigned the one project --> one team.
Our problem:
Teams don't have common accounts. So either we should be dependent on username/password in LDAP of some member which is not a feasible way to do automation.
Describe the solution you'd like
There is the concept called as bot-accounts. In my opinion for reliable CI/CD automation, there should be token specific to the project. The lifecycle of the project can be managed by the Harbor admin and project admin.
Also, it will be really helpful if the token can be assigned with the current role like admin, developer, and guest.
Any thoughts about this?
The text was updated successfully, but these errors were encountered: