-
Notifications
You must be signed in to change notification settings - Fork 8k
admin: custom roles #23599
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
Merged
+338
−66
Merged
admin: custom roles #23599
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
520d41c
add custom roles docs
sarahsanders-docker 008f71f
update Teams
sarahsanders-docker d8c8d10
fix build issues
sarahsanders-docker 286458f
add WIP note
sarahsanders-docker e4b1767
feedback
sarahsanders-docker 15239c2
lint
sarahsanders-docker 6cd76ee
lint 2
sarahsanders-docker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
content/manuals/enterprise/security/roles-and-permissions/_index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| --- | ||
| title: Roles and permissions | ||
| linkTitle: Roles and permissions | ||
| description: Control access to content, registry, and organization management with Docker's role system | ||
| keywords: roles, permissions, custom roles, core roles, access control, organization management, docker hub, admin console, security | ||
| tags: [admin] | ||
| aliases: | ||
| - /admin/organization/roles/ | ||
| - /security/for-admins/roles-and-permissions/ | ||
| grid: | ||
| - title: "Core roles" | ||
| description: Learn about Docker's built-in Member, Editor, and Owner roles with predefined permissions. | ||
| icon: "admin_panel_settings" | ||
| link: /enterprise/security/roles-and-permissions/core-roles/ | ||
| - title: "Custom roles" | ||
| description: Create tailored permission sets that match your organization's specific needs. | ||
| icon: "tune" | ||
| link: /enterprise/security/roles-and-permissions/custom-roles/ | ||
| weight: 40 | ||
| --- | ||
|
|
||
| {{< summary-bar feature_name="General admin" >}} | ||
|
|
||
| Roles control what users can do in your Docker organization. When you invite users or create teams, you assign them roles that determine their permissions for repositories, teams, and organization settings. | ||
|
|
||
| Docker provides two types of roles to meet different organizational needs: | ||
|
|
||
| - [Core roles](/manuals/enterprise/security/roles-and-permissions/core-roles.md) with predefined permissions | ||
| - [Custom roles](/manuals/enterprise/security/roles-and-permissions/custom-roles.md) that you can tailor to your specific requirements | ||
|
|
||
| ## Docker roles | ||
|
|
||
| ### Core roles | ||
|
|
||
| Core roles are Docker's built-in roles with predefined permission sets: | ||
|
|
||
| - **Member**: Non-administrative role with basic access. Members can view other organization members and pull images from repositories they have access to. | ||
| - **Editor**: Partial administrative access. Editors can create, edit, and delete repositories, and manage team permissions for repositories. | ||
| - **Owner**: Full administrative access. Owners can manage all organization settings, including repositories, teams, members, billing, and security features. | ||
|
|
||
| ### Custom roles | ||
|
|
||
| Custom roles allow you to create tailored permission sets by selecting specific permissions from categories like user management, team management, billing, and Hub permissions. Use custom roles when Docker's core roles don't fit your needs. | ||
|
|
||
| ## When to use each role | ||
|
|
||
| Use core roles when: | ||
|
|
||
| - Docker's predefined permission sets match your organizational structure | ||
| - You want simple, straightforward role assignments | ||
| - You're getting started with Docker organization management | ||
| - Your access control needs are standard and don't require fine-grained permissions | ||
|
|
||
| Use custom roles when: | ||
|
|
||
| - You need specific permission combinations not available in core roles | ||
| - You want to create specialized roles like billing administrators, security auditors, or repository managers | ||
| - You need department-specific access control | ||
| - You want to implement the principle of least privilege with precise permission grants | ||
|
|
||
| ## How roles work together | ||
|
|
||
| Users and teams can be assigned either a core role or a custom role, but not both. However, roles work in combination with team permissions: | ||
|
|
||
| 1. **Role permissions**: Applied organization-wide (core or custom role). Custom roles can grant permissions to both organization-wide settings and repository access. | ||
| 2. **Team permissions**: Additional repository-specific permissions when users are added to teams. This is a separate permission system from role-based permissions. | ||
|
|
||
| This layered approach gives you flexibility to provide broad organizational access through roles and specific repository access through team memberships. | ||
|
|
||
| ## Next steps | ||
|
|
||
| Choose the role type that best fits your organization's needs: | ||
|
|
||
| {{< grid >}} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.