Skip to content

Add Ability to Configure ZAP Advanced API Scans with Configs without Hardcoded URLs#569

Merged
rfelber merged 11 commits intomainfrom
feature/zap-advanced-generic-configs
Aug 7, 2021
Merged

Add Ability to Configure ZAP Advanced API Scans with Configs without Hardcoded URLs#569
rfelber merged 11 commits intomainfrom
feature/zap-advanced-generic-configs

Conversation

@J12934
Copy link
Member

@J12934 J12934 commented Jul 30, 2021

for each desired change, make the change easy (warning: this may be hard), then make the easy change https://twitter.com/KentBeck/status/250733358307500032

This PR adds the possibility to completely configure the ZAP Advanced Scanners API Scans using Configs files with no absolute URLs in them. This can be very useful when scanning a large number of similarly crafted services where you don't want to define a config for each service. I've added a working example for this here: https://github.com/secureCodeBox/secureCodeBox/blob/feature/zap-advanced-generic-configs/scanners/zap-advanced/examples/demo-petstoreapi-scan-authenticated-no-hardcoded-urls/scan.yaml

To make this change somewhat easy I had to do a larger refactoring of the code base to (hopefully) simplify the config handling.

@J12934 J12934 added enhancement New feature or request scanner Implement or update a security scanner labels Jul 30, 2021
@J12934 J12934 requested a review from rfelber July 30, 2021 19:42
@J12934 J12934 self-assigned this Jul 30, 2021
J12934 and others added 8 commits July 30, 2021 21:45
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
…ing the url hardcoded in the config

Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
This allows to keep all absolute urls out of the config.
This can be used to define a single config for a set of simmilarly build services and only cahnge the url via the config args.

Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: GitHub Actions <securecodebox@iteratec.com>
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
@J12934 J12934 force-pushed the feature/zap-advanced-generic-configs branch from a9ee4c0 to 73fc7e3 Compare July 30, 2021 19:45
rfelber added 3 commits August 7, 2021 18:55
Signed-off-by: Robert Seedorff <Robert.Seedorff@iteratec.com>
Signed-off-by: Robert Seedorff <Robert.Seedorff@iteratec.com>
@rfelber rfelber enabled auto-merge August 7, 2021 21:01
@rfelber rfelber merged commit 55ae934 into main Aug 7, 2021
@rfelber rfelber deleted the feature/zap-advanced-generic-configs branch August 7, 2021 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request scanner Implement or update a security scanner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants