Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d556eca0
Commit
d556eca0
authored
Sep 10, 2018
by
Jarka Košanová
Committed by
Achilleas Pipinellis
Sep 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document permissions for different entities
parent
816e846a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
0 deletions
+64
-0
doc/development/README.md
doc/development/README.md
+1
-0
doc/development/permissions.md
doc/development/permissions.md
+63
-0
No files found.
doc/development/README.md
View file @
d556eca0
...
...
@@ -47,6 +47,7 @@ description: 'Learn how to contribute to GitLab.'
-
[
How to dump production data to staging
](
db_dump.md
)
-
[
Working with the GitHub importer
](
github_importer.md
)
-
[
Working with Merge Request diffs
](
diffs.md
)
-
[
Permissions
](
permissions.md
)
-
[
Prometheus metrics
](
prometheus_metrics.md
)
## Performance guides
...
...
doc/development/permissions.md
0 → 100644
View file @
d556eca0
# GitLab permissions guide
There are multiple types of permissions across GitLab, and when implementing
anything that deals with permissions, all of them should be considered.
## Groups and Projects
### General permissions
Groups and projects can have the following visibility levels:
-
public (20) - an entity is visible to everyone
-
internal (10) - an entity is visible to logged in users
-
private (0) - an entity is visible only to the approved members of the entity
The visibility level of a group can be changed only if all subgroups and
subprojects have the same or lower visibility level. (e.g., a group can be set
to internal only if all subgroups and projects are internal or private).
Visibility levels can be found in the
`Gitlab::VisibilityLevel`
module.
### Feature specific permissions
Additionally, the following project features can have different visibility levels:
-
Issues
-
Repository
-
Merge Request
-
Pipelines
-
Container Registry
-
Git Large File Storage
-
Wiki
-
Snippets
These features can be set to "Everyone with Access" or "Only Project Members".
They make sense only for public or internal projects because private projects
can be accessed only by project members by default.
### Members
Users can be members of multiple groups and projects. The following access
levels are available (defined in the
`Gitlab::Access`
module):
-
Guest
-
Reporter
-
Developer
-
Maintainer
-
Owner
If a user is the member of both a project and the project parent group, the
higher permission is taken into account for the project.
If a user is the member of a project, but not the parent group (or groups), they
can still view the groups and their entities (like epics).
Project membership (where the group membership is already taken into account)
is stored in the
`project_authorizations`
table.
### Confidential issues
Confidential issues can be accessed only by project members who are at least
reporters (they can't be accessed by guests). Additionally they can be accessed
by their authors and assignees.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment