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
059bbec5
Commit
059bbec5
authored
Dec 15, 2021
by
Evan Read
Committed by
Suzanne Selhorn
Dec 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify information about personal access token prefixes
parent
da5bc97c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
doc/user/admin_area/settings/account_and_limit_settings.md
doc/user/admin_area/settings/account_and_limit_settings.md
+10
-10
doc/user/project/settings/project_access_tokens.md
doc/user/project/settings/project_access_tokens.md
+3
-0
No files found.
doc/user/admin_area/settings/account_and_limit_settings.md
View file @
059bbec5
...
...
@@ -75,21 +75,21 @@ If you choose a size larger than the configured value for the web server,
you may receive errors. See the
[
troubleshooting section
](
#troubleshooting
)
for more
details.
## Personal
Access T
oken prefix
## Personal
access t
oken prefix
> [Changed](https://gitlab.com/gitlab-org/gitlab/-/issues/342327) in GitLab 14.5. Default prefix added.
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20968) in GitLab 13.7.
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/342327) in GitLab 14.5, a default prefix.
You can set a global prefix for all generated Personal Access Tokens.
You can specify a prefix for personal access tokens. You might use a prefix
to find tokens more quickly, or for use with automation tools.
A prefix can help you identify PATs visually, as well as with automation tools
.
The default prefix is
`glpat-`
but administrators can change it
.
NOTE:
For GitLab.com and self-managed instances, the default prefix is
`glpat-`
.
[
Project access tokens
](
../../project/settings/project_access_tokens.md
)
also inherit this prefix.
### Set a prefix
Only a GitLab administrator can set the prefix, which is a global setting applied
to any PAT generated in the system by any user:
To change the default global prefix:
1.
On the top bar, select
**Menu > Admin**
.
1.
On the left sidebar, select
**Settings > General**
.
...
...
@@ -97,8 +97,8 @@ to any PAT generated in the system by any user:
1.
Fill in the
**Personal Access Token prefix**
field.
1.
Click
**Save changes**
.
It is also possible to configure the prefix via the
[
settings API
](
../../../api/settings.md
)
using the
`personal_access_token_prefix`
field
.
You can also configure the prefix by using the
[
settings API
](
../../../api/settings.md
)
.
## Repository size limit **(PREMIUM SELF)**
...
...
doc/user/project/settings/project_access_tokens.md
View file @
059bbec5
...
...
@@ -32,6 +32,9 @@ You can use project access tokens:
-
Consider
[
disabling project access tokens
](
#enable-or-disable-project-access-token-creation
)
to
lower potential abuse.
Project access tokens inherit the
[
default prefix setting
](
../../admin_area/settings/account_and_limit_settings.md#personal-access-token-prefix
)
configured for personal access tokens.
## Create a project access token
To create a project access token:
...
...
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