-
Notifications
You must be signed in to change notification settings - Fork 70
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
Feature 3141 implement first version of secret validator application #3280
Conversation
winzj
commented
Jul 8, 2024
- closes Implement first version of a spring application that helps to categorize and verify secretscan results #3141
- closes Sereco SarifV1Importer shall be able to import SARIF PropertyBag from Secret Scans #3276
- 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
There was a problem hiding this 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.
...java/com/mercedesbenz/sechub/wrapper/secret/validator/cli/SecretValidatorSpringBootTest.java
Outdated
Show resolved
Hide resolved
...om/mercedesbenz/sechub/wrapper/secret/validator/execution/ResponseValidationServiceTest.java
Outdated
Show resolved
Hide resolved
...a/com/mercedesbenz/sechub/wrapper/secret/validator/properties/SecretValidatorProperties.java
Outdated
Show resolved
Hide resolved
...m/mercedesbenz/sechub/wrapper/secret/validator/support/SecretValidatorHttpClientFactory.java
Show resolved
Hide resolved
...java/com/mercedesbenz/sechub/wrapper/secret/validator/cli/SecretValidatorSpringBootTest.java
Outdated
Show resolved
Hide resolved
...nz/sechub/wrapper/secret/validator/execution/SecretValidatorExecutionContextFactoryTest.java
Outdated
Show resolved
Hide resolved
...desbenz/sechub/wrapper/secret/validator/model/SecretValidatorConfigurationModelListTest.java
Outdated
Show resolved
Hide resolved
- 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
…ecret-validator-application
- 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
There was a problem hiding this 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.
...n/java/com/mercedesbenz/sechub/wrapper/secret/validator/execution/SecretValidationModul.java
Outdated
Show resolved
Hide resolved
.../mercedesbenz/sechub/wrapper/secret/validator/execution/SecretValidatorExecutionService.java
Outdated
Show resolved
Hide resolved
...mercedesbenz/sechub/wrapper/secret/validator/execution/SecretValidatorWebRequestService.java
Outdated
Show resolved
Hide resolved
...java/com/mercedesbenz/sechub/wrapper/secret/validator/cli/SecretValidatorSpringBootTest.java
Outdated
Show resolved
Hide resolved
- rename module to better fitting name service - rename tests - minor changes and typo fixes
There was a problem hiding this 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 👍