Secure access with role-based access control (RBAC) in Container Registry
Last updated on
Managing who has access to your container images is critical for security and collaboration. STACKIT Container Registry offers flexible Role-Based Access Control (RBAC) through two primary methods: centralized assignment with the STACKIT Portal, and project-specific assignment with magic links in the registry UI.
Centralized Assignment with the STACKIT Portal (recommended)
Section titled “Centralized Assignment with the STACKIT Portal (recommended)”The most efficient way to manage access is by assigning internal Container Registry roles directly to users within the STACKIT Portal.
When you assign a specific STACKIT role to a user inside a STACKIT Project, that user is automatically granted the corresponding role across all Container Registry projects contained within that STACKIT Project.
For general instructions on how to assign roles in the portal, please refer to the STACKIT Role Assignment Documentation.
Explicit role mappings
Section titled “Explicit role mappings”When assigning explicit Container Registry roles in the STACKIT Portal, they map to the underlying Harbor project roles as follows:
| STACKIT Portal Role | Harbor Project Role | Access Level Description |
|---|---|---|
| Container Registry Artifactory Admin | Admin | Full control over the project, including policy and member management. |
| Container Registry Artifactory Maintainer | Maintainer | Can scan images, manage webhooks, and push/pull artifacts. |
| Container Registry Artifactory Developer | Developer | Can push and pull artifacts. |
| Container Registry Artifactory Guest | Guest | Read-only access to pull artifacts. |
| Container Registry Artifactory Limited Guest | Limited Guest | Can pull artifacts but cannot see logs or members. |
Implicit role mappings
Section titled “Implicit role mappings”Even if you do not assign a specific Container Registry role, users inherit base permissions depending on their overarching role within the STACKIT Project:
| STACKIT project role | Inherited harbor project role |
|---|---|
| Owner | Admin |
| Editor | Developer |
| Reader | Guest |
Project-specific assignment with a magic link
Section titled “Project-specific assignment with a magic link”If you need to grant access to a specific registry project without modifying overarching STACKIT Portal roles, you can assign roles directly within the registry UI using the “Members” folder.
How to invite users with a magic link
Section titled “How to invite users with a magic link”- Open your project in the Container Registry UI. 2. Navigate to the Members tab/folder.
- Click the button to Add User. 4. A form will appear. Enter the list of email addresses you want to invite and select the wanted role for these users.
- Once the form is fulfilled and submitted, the system will generate a magic link. 6. Copy this magic link and send it directly to the users. They must use this link to complete their first login and activate their access to the project.
Role conflict resolution
Section titled “Role conflict resolution”Because users can be granted access through both the STACKIT Portal (Method 1) and magic links (Method 2), role conflicts may occur.