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
57b2486e
Commit
57b2486e
authored
Dec 15, 2020
by
Michael Eddington
Committed by
James Lopez
Dec 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable security report for API Fuzzing
parent
942746b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
3 deletions
+31
-3
ee/changelogs/unreleased/270207-api-fuzzing-report-ci-template.yml
...logs/unreleased/270207-api-fuzzing-report-ci-template.yml
+5
-0
lib/gitlab/ci/templates/Security/API-Fuzzing.gitlab-ci.yml
lib/gitlab/ci/templates/Security/API-Fuzzing.gitlab-ci.yml
+26
-3
No files found.
ee/changelogs/unreleased/270207-api-fuzzing-report-ci-template.yml
0 → 100644
View file @
57b2486e
---
title
:
API Fuzzing results integrated into security dashboard
merge_request
:
49434
author
:
type
:
added
lib/gitlab/ci/templates/Security/API-Fuzzing.gitlab-ci.yml
View file @
57b2486e
...
...
@@ -15,7 +15,8 @@ variables:
FUZZAPI_VERSION
:
latest
FUZZAPI_CONFIG
:
.gitlab-api-fuzzing.yml
FUZZAPI_TIMEOUT
:
30
FUZZAPI_REPORT
:
gl-api-fuzzing-report.xml
FUZZAPI_REPORT
:
gl-api-fuzzing-report.json
FUZZAPI_REPORT_ASSET_PATH
:
assets
#
FUZZAPI_D_NETWORK
:
testing-net
#
...
...
@@ -45,6 +46,7 @@ apifuzzer_fuzz:
variables
:
FUZZAPI_PROJECT
:
$CI_PROJECT_PATH
FUZZAPI_API
:
http://apifuzzer:80
FUZZAPI_NEW_REPORT
:
1
TZ
:
America/Los_Angeles
services
:
-
name
:
$FUZZAPI_IMAGE
...
...
@@ -75,6 +77,9 @@ apifuzzer_fuzz:
# Run user provided pre-script
-
sh -c "$FUZZAPI_PRE_SCRIPT"
#
# Make sure asset path exists
-
mkdir -p $FUZZAPI_REPORT_ASSET_PATH
#
# Start scanning
-
worker-entry
#
...
...
@@ -82,8 +87,12 @@ apifuzzer_fuzz:
-
sh -c "$FUZZAPI_POST_SCRIPT"
#
artifacts
:
when
:
always
paths
:
-
$FUZZAPI_REPORT_ASSET_PATH
-
$FUZZAPI_REPORT
reports
:
junit
:
$FUZZAPI_REPORT
api_fuzzing
:
$FUZZAPI_REPORT
apifuzzer_fuzz_dnd
:
stage
:
fuzz
...
...
@@ -115,6 +124,9 @@ apifuzzer_fuzz_dnd:
# Run user provided pre-script
-
sh -c "$FUZZAPI_PRE_SCRIPT"
#
# Make sure asset path exists
-
mkdir -p $FUZZAPI_REPORT_ASSET_PATH
#
# Start peach testing engine container
-
|
docker run -d \
...
...
@@ -155,6 +167,8 @@ apifuzzer_fuzz_dnd:
-e FUZZAPI_PROFILE \
-e FUZZAPI_CONFIG \
-e FUZZAPI_REPORT \
-e FUZZAPI_REPORT_ASSET_PATH \
-e FUZZAPI_NEW_REPORT=1 \
-e FUZZAPI_HAR \
-e FUZZAPI_OPENAPI \
-e FUZZAPI_POSTMAN_COLLECTION \
...
...
@@ -168,6 +182,8 @@ apifuzzer_fuzz_dnd:
-e FUZZAPI_SERVICE_START_TIMEOUT \
-e FUZZAPI_HTTP_USERNAME \
-e FUZZAPI_HTTP_PASSWORD \
-e CI_PROJECT_URL \
-e CI_JOB_ID \
-e CI_COMMIT_BRANCH=${CI_COMMIT_BRANCH} \
$FUZZAPI_D_WORKER_ENV \
$FUZZAPI_D_WORKER_PORTS \
...
...
@@ -193,6 +209,8 @@ apifuzzer_fuzz_dnd:
-e FUZZAPI_PROFILE \
-e FUZZAPI_CONFIG \
-e FUZZAPI_REPORT \
-e FUZZAPI_REPORT_ASSET_PATH \
-e FUZZAPI_NEW_REPORT=1 \
-e FUZZAPI_HAR \
-e FUZZAPI_OPENAPI \
-e FUZZAPI_POSTMAN_COLLECTION \
...
...
@@ -206,7 +224,10 @@ apifuzzer_fuzz_dnd:
-e FUZZAPI_SERVICE_START_TIMEOUT \
-e FUZZAPI_HTTP_USERNAME \
-e FUZZAPI_HTTP_PASSWORD \
-e CI_PROJECT_URL \
-e CI_JOB_ID \
-v $CI_PROJECT_DIR:/app \
-v `pwd`/$FUZZAPI_REPORT_ASSET_PATH:/app/$FUZZAPI_REPORT_ASSET_PATH:rw \
-p 81:80 \
-p 8001:8000 \
-p 515:514 \
...
...
@@ -239,7 +260,9 @@ apifuzzer_fuzz_dnd:
paths
:
-
./gl-api_fuzzing*.log
-
./gl-api_fuzzing*.zip
-
$FUZZAPI_REPORT_ASSET_PATH
-
$FUZZAPI_REPORT
reports
:
junit
:
$FUZZAPI_REPORT
api_fuzzing
:
$FUZZAPI_REPORT
# end
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