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
62ce8c48
Commit
62ce8c48
authored
Mar 09, 2018
by
Fabien Catteau
Committed by
Dmitriy Zaporozhets
Mar 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Add DAST authentication example"
parent
c773f1f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
doc/ci/examples/dast.md
doc/ci/examples/dast.md
+22
-1
No files found.
doc/ci/examples/dast.md
View file @
62ce8c48
...
...
@@ -14,7 +14,7 @@ called `dast`:
```
yaml
dast
:
image
:
owasp/zap2docker-stable
image
:
registry.gitlab.com/gitlab-org/security-products/zaproxy
variables
:
website
:
"
https://example.com"
script
:
...
...
@@ -30,6 +30,27 @@ the tests on the URL defined in the `website` variable (change it to use your
own) and finally write the results in the
`gl-dast-report.json`
file. You can
then download and analyze the report artifact in JSON format.
It's also possible to authenticate the user before performing DAST checks:
```
yaml
dast
:
image
:
registry.gitlab.com/gitlab-org/security-products/zaproxy
variables
:
website
:
"
https://example.com"
login_url
:
"
https://example.com/sign-in"
script
:
-
mkdir /zap/wrk/
-
/zap/zap-baseline.py -J gl-dast-report.json -t $website \
--auth-url $login_url \
--auth-username "john.doe@example.com" \
--auth-password "john-doe-password" ||
true
-
cp /zap/wrk/gl-dast-report.json .
artifacts
:
paths
:
[
gl-dast-report.json
]
```
See
[
zaproxy documentation
](
https://gitlab.com/gitlab-org/security-products/zaproxy
)
to learn more about authentication settings.
TIP:
**Tip:**
Starting with
[
GitLab Ultimate
][
ee
]
10.4, this information will
be automatically extracted and shown right in the merge request widget. To do
...
...
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