8000 Introduce Makefile For All Scanners & Hooks by EndPositive · Pull Request #622 · secureCodeBox/secureCodeBox · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@EndPositive
Copy link
Contributor
@EndPositive EndPositive commented Sep 1, 2021

Description

This PR continues the effort of #601, however only applies changes unrelated to the pipeline. This makes intermediate merging, reviewing and testing easier.

This PR does NOT break the current pipeline and works as is locally.

This PR contains the following changes

  • Created generic scanner makefile
  • Implemented makefiles for all scanners (except Nikto, but won't implement until 🏗 Migrate Nikto Build to be in line with other 3rd party scanners #610 is solved)
  • Implemented makefiles for all hooks
  • Added unit-test targets for Java
  • Added unit-test targets for Python
  • Update cleanup target to also clean cluster
  • Add target to existing root Makefile to run all tests

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.
  • Make codeclimate checks happy

@EndPositive EndPositive marked this pull request as ready for review September 1, 2021 16:06
@EndPositive EndPositive changed the title Introduce Makefile For All Scanners Introduce Makefile For All Scanners & Hooks Sep 1, 2021
@EndPositive EndPositive marked this pull request as draft September 1, 2021 21:20
@J12934
Copy link
Member
J12934 commented Sep 3, 2021

Awesome work, yeah good idea to keep the Makefile and pipeline changes seperate for now to not block releases.
Can I / we help you in any way to complete the remaining tasks in this PR?

@J12934 J12934 added architecture Architecture changes enhancement New feature or request maintenance testing Improvements or additions regarding the test setup labels Sep 3, 2021
This was linked to issues Sep 3, 2021
@EndPositive
Copy link
Contributor Author

I'm planning to finish this during the weekend and I'll tag you for a review on/before Monday!

Although not necessary for this PR, it would be really nice if you could take a look at #610.

@J12934
Copy link
Member
J12934 commented Sep 3, 2021

Awesome 👏

Plan for #610 is to migrate the Nikto image to be "docker build'able" just like the other 3rd party scanners. Until then wen can just pin the Nikto image used for the integration tests to 2.1.6.
Hopefully we'll able to do it next week.

@EndPositive
Copy link
Contributor Author
EndPositive commented Sep 5, 2021

@J12934 I think that should do it. Could you take a look and make changes wherever neccessary?

@J12934
Copy link
Member
J12934 commented Sep 6, 2021

Yes 👍
Will do, thank you for the awesome work on this 👌

@EndPositive
Copy link
Contributor Author
EndPositive commented Sep 10, 2021

@J12934 awesome, thank you for the fixes! 👏

The Makefile for Nikto is still missing, but we can fix that once its version is pinned.

Another thing I wanted to mention is the integration tests for cascading scans. Currently they are set up in a manner that requires them to run separately (due to different scanner installs; i.e. ncrack vs sslyze). If you look at the Makefile for cascading scans, you'll notice there's also a test-2 target. With this setup, that test-2 won't run in a matrix job. Did you have any thoughts on that?

Besides that, I think it's ready to be merged. It's bound to have issues, but let's give it a shot. It's only for development purposes currently anyways.

I'll take a look at updating the integration tests documentation coming week.

@J12934 J12934 marked this pull request as ready for review September 13, 2021 07:52
Jop Zitman added 9 commits September 14, 2021 13:29
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
… makefile)

Signed-off-by: Jop Zitman <jop.zitman@secura.com>
…ring all generic integration tests)

Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
…o the integration-tests namespace

Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Jop Zitman and others added 19 commits September 14, 2021 13:29
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
…st suites

Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
Required for hook integration tests, as the require ts-jest to be installed

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>
Integration-Tests should be executed using the Makefile structure to
install all needed dependencies

Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Jop Zitman <jop.zitman@secura.com>
@J12934 J12934 merged commit fde0d94 into secureCodeBox:main Sep 17, 2021
@EndPositive EndPositive deleted the makefile-scanners branch October 22, 2021 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

architecture Architecture changes enhancement New feature or request maintenance testing Improvements or additions regarding the test setup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Makefile For All Hooks Makefile For All Scanners

3 participants

0