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
be583c74
Commit
be583c74
authored
Jan 28, 2022
by
Gerardo Gutierrez
Committed by
Russell Dickenson
Jan 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add alternative to mask token
parent
79a55663
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
doc/user/application_security/dast_api/index.md
doc/user/application_security/dast_api/index.md
+3
-0
No files found.
doc/user/application_security/dast_api/index.md
View file @
be583c74
...
@@ -478,6 +478,9 @@ Follow these steps to provide the bearer token with `DAST_API_OVERRIDES_ENV`:
...
@@ -478,6 +478,9 @@ Follow these steps to provide the bearer token with `DAST_API_OVERRIDES_ENV`:
`{"headers":{"Authorization":"Bearer dXNlcm5hbWU6cGFzc3dvcmQ="}}`
(substitute your token). You
`{"headers":{"Authorization":"Bearer dXNlcm5hbWU6cGFzc3dvcmQ="}}`
(substitute your token). You
can create CI/CD variables from the GitLab projects page at
**Settings > CI/CD**
, in the
can create CI/CD variables from the GitLab projects page at
**Settings > CI/CD**
, in the
**Variables**
section.
**Variables**
section.
Due to the format of
`TEST_API_BEARERAUTH`
it's not possible to mask the variable.
To mask the token's value, you can create a second variable with the token value's, and define
`TEST_API_BEARERAUTH`
with the value
`{"headers":{"Authorization":"Bearer $MASKED_VARIABLE"}}`
.
1.
In your
`.gitlab-ci.yml`
file, set
`DAST_API_OVERRIDES_ENV`
to the variable you just created:
1.
In your
`.gitlab-ci.yml`
file, set
`DAST_API_OVERRIDES_ENV`
to the variable you just created:
...
...
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