Skip to content
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

Feature Request: Read-Only Role for ALL Projects and Repositories #21306

Open
anokun7 opened this issue Dec 10, 2024 · 2 comments
Open

Feature Request: Read-Only Role for ALL Projects and Repositories #21306

anokun7 opened this issue Dec 10, 2024 · 2 comments
Labels
area/custom-role kind/requirement New feature or idea on top of harbor

Comments

@anokun7
Copy link

anokun7 commented Dec 10, 2024

Is your feature request related to a problem? Please describe.

Yes, there is currently no dedicated role in Harbor that provides read-only access to all projects and repositories, both private and public. This limitation poses challenges in scenarios where accounts need to scan images without the risk of altering them, potentially affecting the integrity of the data during security assessments.

Robot accounts seem to work, but since they are local accounts, they will not pass security team standards at enterprises. Ideally only AD/LDAP accounts should be used for everything and the role should be such that it can be assigned to any AD/LDAP account that can be managed.

Describe the solution you'd like

I would like Harbor to introduce a new role that grants read-only access across all projects and repositories. This role should enable accounts to perform image scans without any permissions to modify, delete, or alter the images in any way.

Describe the main design/architecture of your solution

The solution involves creating a new user role within Harbor's existing role management framework. This role would have global read-only permissions enforced at the database access layer, ensuring that it can view but not modify any project or repository content. Diagrammatic representations could illustrate the permission checks within the system architecture.

Additional context
This feature would greatly enhance Harbor's usability in environments that require strict compliance and audit capabilities without compromising the security or integrity of the container images stored within the registry.

@Vad1mo Vad1mo added the kind/requirement New feature or idea on top of harbor label Dec 10, 2024
@stonezdj
Copy link
Contributor

If you don't need to use the Harbor UI, you could customize a robot account, but the robot account can be used in REST API.

@anokun7
Copy link
Author

anokun7 commented Dec 17, 2024

There seems no way to specify a non-local robot account - like an LDAP/AD account. Local accounts can become a hurdle for security teams. Updated in the original description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/custom-role kind/requirement New feature or idea on top of harbor
Projects
None yet
Development

No branches or pull requests

3 participants