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
dc57bbf9
Commit
dc57bbf9
authored
Mar 11, 2019
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Emphasize trigger token security concerns
parent
fb2c672e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
doc/ci/triggers/README.md
doc/ci/triggers/README.md
+6
-3
No files found.
doc/ci/triggers/README.md
View file @
dc57bbf9
...
...
@@ -17,6 +17,12 @@ The following methods of authentication are supported.
A unique trigger token can be obtained when
[
adding a new trigger
](
#adding-a-new-trigger
)
.
DANGER:
**Danger:**
Passing plain text tokens in public projects is a security issue. Potential
attackers can impersonate the user that exposed their trigger token publicly in
their
`.gitlab-ci.yml`
file. Use
[
variables
](
../variables/README.md#variables
)
to protect trigger tokens.
### CI job token
You can use the
`CI_JOB_TOKEN`
[
variable
][
predef
]
(used to authenticate
...
...
@@ -110,9 +116,6 @@ The action is irreversible.
>
> - Valid refs are only the branches and tags. If you pass a commit SHA as a ref,
> it will not trigger a job.
> - If your project is public, passing the token in plain text is probably not the
> wisest idea, so you might want to use a
> [variable](../variables/README.md#variables) for that purpose.
To trigger a job you need to send a
`POST`
request to GitLab's API endpoint:
...
...
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