8000 Migrate Zap Advanced to ZAPs new Reporting Addon by J12934 · Pull Request #1005 · secureCodeBox/secureCodeBox · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@J12934
Copy link
Member
@J12934 J12934 commented Mar 1, 2022

Description

This PR migrates the Zap Advanced ScanType to use ZAPs new Reporting API.

This allows to properly scope the results to the configured context.

To allow this change we had to make some changes to the way results are passed to the secureCodeBox Lurker:

Previously the Results were fetched by the zap-advanced python script and written to disk. This is not possible with the new reporting addon as it only supports writing the report directly to disk and isn't returned in the api.
This limitation is worked around by mounting the zap-results volume also into the zap-sidecar so that zap can write the results directly to disk / the shared results volume.

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make sure npm test runs for the whole project.

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>
Due to the placement of the ports section these would have been added to the last extraContainers entry, not on the sidecar

Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Scan results are now written in its filesystem rather than the one of the zap-advanced-scan container

Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
@J12934 J12934 added scanner Implement or update a security scanner maintenance labels Mar 1, 2022
@J12934 J12934 requested a review from rfelber March 1, 2022 09:16
@J12934 J12934 self-assigned this Mar 1, 2022
@Weltraumschaf Weltraumschaf added the planned Issues we will do in the next sprint. label Mar 2, 2022
@J12934 J12934 removed the planned Issues we will do in the next sprint. label Mar 3, 2022
@J12934 J12934 merged commit 5c84aa3 into main Mar 3, 2022
@J12934 J12934 deleted the maintanace/migrate-to-reporting-addon branch March 3, 2022 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance scanner Implement or update a security scanner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

0