Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2019-03-12 06:37:06 +0300
committerEvan Read <eread@gitlab.com>2019-03-12 06:37:06 +0300
commit3ad300377ba4dcfd8e5280a12af084519c5991a7 (patch)
treee2567581c63748481217c6ea93f01ac8445ee86c
parent54df720039616f413a8820d12d0f1ff5d08c3daf (diff)
parent9756a6cc0ca8dbe5587c665724fde218ff5fdf6f (diff)
Merge branch 'mc/docs/trigger-token-warning' into 'master'
Resolve "A lot of Trigger Token is Accessible from Internet because of the Documentation" Closes #52261 See merge request gitlab-org/gitlab-ce!25945
-rw-r--r--doc/ci/triggers/README.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/ci/triggers/README.md b/doc/ci/triggers/README.md
index bceccf4d40d..398b017277f 100644
--- a/doc/ci/triggers/README.md
+++ b/doc/ci/triggers/README.md
@@ -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.
+
## Adding a new trigger
You can add a new trigger by going to your project's
@@ -53,9 +59,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: