-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from HHS/owasp-remediation
OWASP finding remediation
- Loading branch information
Showing
6 changed files
with
61 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
[zap.conf] | ||
indent_size = 4 | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# | ||
# This script sets up a server as run-owasp-scan expects it | ||
|
||
# remove old build directory | ||
rm -r build/ | ||
|
||
# run a production style build (single BE server with static FE) | ||
docker-compose -f docker-compose.dss.yml run --rm server yarn install --production=false | ||
docker-compose -f docker-compose.dss.yml run --rm server yarn --cwd frontend install --production=false | ||
docker-compose -f docker-compose.dss.yml run --rm server yarn build | ||
docker-compose -f docker-compose.dss.yml run --rm server yarn --cwd frontend run build | ||
docker-compose -f docker-compose.dss.yml up -d | ||
docker-compose -f docker-compose.dss.yml run --rm server yarn db:migrate:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
########################### | ||
# | ||
# Allow running OWASP Zap scans on demand. This script expects | ||
# a server running at http://server:8080. This can be setup with | ||
# | ||
# ./bin/prod-style-server | ||
# | ||
# The only argument for this script is the network name docker will | ||
# find server on. For a default git clone, this should be | ||
# | ||
# ./bin/run-owasp-scan head-start-ttadp_smarthub | ||
# | ||
########################### | ||
|
||
declare network="project_smarthub" | ||
if [ -n "$1" ]; then | ||
network=$1 | ||
fi | ||
|
||
docker run \ | ||
-v $(pwd)/zap.conf:/zap/wrk/zap.conf:ro \ | ||
-v $(pwd)/reports:/zap/wrk:rw \ | ||
--rm \ | ||
--user zap:$(id -g) \ | ||
--network=$network \ | ||
-t owasp/zap2docker-weekly zap-baseline.py \ | ||
-t http://server:8080 \ | ||
-c zap.conf -I -i -r owasp_report.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters