Skip to content

Commit

Permalink
[v14] Improve explanation of TBOT_GITLAB_JWT config in GitLab guide (
Browse files Browse the repository at this point in the history
…#32797)

* Improve explanation of `TBOT_GITLAB_JWT` config in GitLab guide

* Explain why

* Explain purpose of `id_tokens`

* Clarify a little further

* Update docs/pages/machine-id/guides/gitlab.mdx

Co-authored-by: Zac Bergquist <[email protected]>

---------

Co-authored-by: Zac Bergquist <[email protected]>
  • Loading branch information
strideynet and zmb3 authored Sep 29, 2023
1 parent 8f57a2e commit f7101b6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions docs/pages/machine-id/guides/gitlab.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,19 @@ stages:
deploy-job:
stage: deploy
# id_tokens configures ID Tokens that GitLab will automatically inject into
# the environment of your GitLab run.
#
# See https://docs.gitlab.com/ee/ci/secrets/id_token_authentication.html
# for further explanation of the id_tokens configuration in GitLab.
id_tokens:
# See https://docs.gitlab.com/ee/ci/secrets/id_token_authentication.html
# for further explanation of the id_tokens configuration.
TBOT_GITLAB_JWT:
# An environment variable named TBOT_GITLAB_JWT must exist and contain
# an ID token with an audience that matches your Teleport cluster's name.
# aud for TBOT_GITLAB_JWT must be configured with the name of your
# Teleport cluster. This is not necessarily the address of your Teleport
# cluster and will not include a port or scheme (http/https)
#
# This helps the Teleport Auth Server know that the token is intended for
# it, and not a different service or Teleport cluster.
aud: teleport.example.com
script:
- cd /tmp
Expand Down

0 comments on commit f7101b6

Please sign in to comment.