Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 3141 implement first version of secret validator application #3280

Conversation

winzj added 2 commits July 8, 2024 13:13
- basic structure and first version of config model
- validation section
- categorization section
- unit tests and spring boot tests
- README with documentation
…ties #3276

- extend workaround classes with te ability to resolve
  secret validation wrapper custom severities
- add necessary changes to SarifV1JSONImporter and added test cases with test report files
@winzj winzj marked this pull request as ready for review July 9, 2024 05:39
@winzj winzj requested a review from de-jcup July 9, 2024 05:39
Copy link
Member

@de-jcup de-jcup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work, but I found some things to discuss.

Additionally: Even when we have no pds solution currently for the validation, we still could write an an integration test by enhancing existing secrect scan integration test (which just returns a sarif result) and call here the wrapper application from build folder (when a variant is set). So we could check this works together with SecHub at all.

winzj added 5 commits July 17, 2024 14:50
- fix typos
- improve documentation
- change sereco Sarif import to use enum instead of strings
- simplify response validation service and add unit test
- refactor categorization with better readability
- split execution service into multiple methods
- split validation web request service into multiple methods
- improve spring boot with custom assert method
- improve setters for list fields of configuration model
- improve readability of execution context factory test
- fix naming of sarif custom property key
- add integrationtest profile to secret validator wrapper application
  and implement another validation module that is only available with the
  integrationtest profile. This module does not perform real web requests
- extend existing integrationtest with a call to the secret validator wrapper application
  by using the the gitleaks.sh from the pds gitleaks
@winzj winzj requested a review from de-jcup July 22, 2024 05:05
Copy link
Member

@de-jcup de-jcup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - found only some minor parts which should be changed.

- rename module to better fitting name service
- rename tests
- minor changes and typo fixes
@winzj winzj requested a review from de-jcup August 5, 2024 13:22
Copy link
Member

@de-jcup de-jcup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done - looks good to me 👍

@winzj winzj merged commit 2a93245 into develop Aug 5, 2024
2 checks passed
@winzj winzj deleted the feature-3141-implement-first-version-of-secret-validator-application branch August 5, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants