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
9e6ab241
Commit
9e6ab241
authored
Sep 21, 2020
by
Jackie Porter
Committed by
Amy Qualls (slowly returning after surgery)
Sep 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments for scopes in CI_JOB_JWT
parent
e17236c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
doc/ci/examples/authenticating-with-hashicorp-vault/index.md
doc/ci/examples/authenticating-with-hashicorp-vault/index.md
+8
-9
No files found.
doc/ci/examples/authenticating-with-hashicorp-vault/index.md
View file @
9e6ab241
...
...
@@ -41,15 +41,14 @@ The JWT's payload looks like this:
"nbf"
:
1585798372
,
#
Not
valid
before
"exp"
:
1585713886
,
#
Expire
at
"sub"
:
"job_1212"
,
#
Subject
(job
id)
"namespace_id"
:
"1"
,
"namespace_path"
:
"mygroup"
,
"project_id"
:
"22"
,
"project_path"
:
"mygroup/myproject"
,
"user_id"
:
"42"
,
"user_login"
:
"myuser"
,
"user_email"
:
"myuser@example.com"
,
"pipeline_id"
:
"1212"
,
"job_id"
:
"1212"
,
"namespace_id"
:
"1"
,
#
Use
this
to
scope
to
group
or
user
level
namespace
by
id
"namespace_path"
:
"mygroup"
,
#
Use
this
to
scope
to
group
or
user
level
namespace
by
path
"project_id"
:
"22"
,
#
"project_path"
:
"mygroup/myproject"
,
#
"user_id"
:
"42"
,
#
Id
of
the
user
executing
the
job
"user_email"
:
"myuser@example.com"
,
#
Email
of
the
user
executing
the
job
"pipeline_id"
:
"1212"
,
#
"job_id"
:
"1212"
,
#
"ref"
:
"auto-deploy-2020-04-01"
,
#
Git
ref
for
this
job
"ref_type"
:
"branch"
,
#
Git
ref
type
,
branch
or
tag
"ref_protected"
:
"true"
#
true
if
this
git
ref
is
protected
,
false
otherwise
...
...
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