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
26a4edb5
Commit
26a4edb5
authored
Apr 22, 2021
by
Michael Eddington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move defaults into script for DAST API
parent
2fc93a86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
45 deletions
+10
-45
ee/changelogs/unreleased/324734-defaults-to-script-dastapi.yml
...angelogs/unreleased/324734-defaults-to-script-dastapi.yml
+5
-0
lib/gitlab/ci/templates/Security/DAST.latest.gitlab-ci.yml
lib/gitlab/ci/templates/Security/DAST.latest.gitlab-ci.yml
+5
-45
No files found.
ee/changelogs/unreleased/324734-defaults-to-script-dastapi.yml
0 → 100644
View file @
26a4edb5
---
title
:
Move defaults into script for DAST API
merge_request
:
60064
author
:
type
:
changed
lib/gitlab/ci/templates/Security/DAST.latest.gitlab-ci.yml
View file @
26a4edb5
...
...
@@ -23,17 +23,7 @@ variables:
# (SAST, Dependency Scanning, ...)
SECURE_ANALYZERS_PREFIX
:
"
registry.gitlab.com/gitlab-org/security-products/analyzers"
#
DAST_API_PROFILE
:
Full
DAST_API_VERSION
:
"
1"
DAST_API_CONFIG
:
.gitlab-dast-api.yml
DAST_API_TIMEOUT
:
30
DAST_API_REPORT
:
gl-dast-api-report.json
DAST_API_REPORT_ASSET_PATH
:
assets
#
# Wait up to 5 minutes for API Security and target url to become
# available (non 500 response to HTTP(s))
DAST_API_SERVICE_START_TIMEOUT
:
"
300"
#
DAST_API_IMAGE
:
registry.gitlab.com/gitlab-org/security-products/analyzers/api-fuzzing:${DAST_API_VERSION}-engine
dast
:
...
...
@@ -76,16 +66,7 @@ dast:
dast_api
:
stage
:
dast
image
:
name
:
$DAST_API_IMAGE
entrypoint
:
[
"
/bin/bash"
,
"
-l"
,
"
-c"
]
variables
:
API_SECURITY_MODE
:
DAST
DAST_API_NEW_REPORT
:
1
DAST_API_PROJECT
:
$CI_PROJECT_PATH
DAST_API_API
:
http://127.0.0.1:5000
DAST_API_LOG_SCANNER
:
gl-dast-api-scanner.log
TZ
:
America/Los_Angeles
image
:
$DAST_API_IMAGE
allow_failure
:
true
rules
:
-
if
:
$DAST_API_BETA ==
null
...
...
@@ -110,33 +91,12 @@ dast_api:
-
if
:
$CI_COMMIT_BRANCH &&
$GITLAB_FEATURES =~ /\bdast\b/
script
:
#
# Run user provided pre-script
-
sh -c "$DAST_API_PRE_SCRIPT"
#
# Make sure asset path exists
-
mkdir -p $DAST_API_REPORT_ASSET_PATH
#
# Start API Security background process
-
dotnet /peach/Peach.Web.dll &> $DAST_API_LOG_SCANNER &
-
APISEC_PID=$!
#
# Start scanning
-
worker-entry
#
# Run user provided post-script
-
sh -c "$DAST_API_POST_SCRIPT"
#
# Shutdown API Security
-
kill $APISEC_PID
-
wait $APISEC_PID
#
-
/peach/analyzer-dast-api
artifacts
:
when
:
always
paths
:
-
$DAST_API_REPORT_ASSET_PATH
-
$DAST_API_REPORT
-
$DAST_API_LOG_SCANNER
-
gl-assets
-
gl-dast-api-report.json
-
gl-*.log
reports
:
dast
:
$DAST_API_REPORT
dast
:
gl-dast-api-report.json
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