Closed JordoHeffernan closed 3 months ago
Completed development and unit tests for steps 1-4, work in linked branch feature/secureli-460-custom-regex
. Steps 5-6 must still be completed.
Use secureli update --new-pattern --help
to view current tool tip. Option is functional, so use secureli update --new-pattern test_pattern
to see how it works.
The new patterns are written to scan_patterns -> custom_scan_patterns in the .secureli.yaml file. This may be reducible to a top level list by playing with the CustomScanSettings
class or the SecureliFile.scan patterns member in repository.py.
If the yaml does not have the section, it will be created.
Error handling: When a user submits an invalid or previously saved regex pattern, there is a warning message output, but no error. This allows for partial successes.
When any number of patterns is successfully added, the total list of custom scan patterns is printed out, for clarity.
As a user, I want to be able to have SeCureLi scan for custom patterns specific for my security concerns
AC
.secureli.yaml
calledcustom_scan_patterns
that is an empty listCreate a new command calledExpand Update command to include pattern additionsadd_custom_scan_pattern
(name suggestions?)Notes