Commit Graph

9421 Commits

Author SHA1 Message Date
vakarisz 42e6039463 Common: Shorten the validator import statements 2022-08-01 16:54:45 +03:00
Mike Salvatore d2d9d4c4c3 Common: Reformat ScanTargetConfiguration docstrings 2022-08-01 09:16:00 -04:00
vakarisz 068a7e3b1f Common: Improve the style of filename validation 2022-08-01 14:33:19 +03:00
vakarisz 2503e83dde Common: Separate filename validation out of config schemas 2022-08-01 13:01:37 +03:00
vakarisz 3a6fcd670c Common: Style improvements in ip_ranges.py 2022-08-01 10:56:45 +03:00
vakarisz 16ac6b2e15 Common: Improve documentation of ScanTargetConfiguration 2022-08-01 10:50:29 +03:00
vakarisz a1760a8701 Common: Improve hostname pattern matching in scan target configuration 2022-07-28 16:42:52 +03:00
vakarisz ce33a7b2f4 Common: Improve network range validation (less regex) 2022-07-28 11:34:07 +03:00
vakarisz a1d9118433 UT: Split up ip range validation tests more 2022-07-28 11:34:07 +03:00
vakarisz 96af1e0135 Common: Add documentation to ScanTargetConfiguration dataclass 2022-07-28 11:34:07 +03:00
vakarisz a943891567 Common: Add validators for ScanTargetConfigurationSchema 2022-07-28 11:34:07 +03:00
Mike Salvatore 85211c3120 Agent: Add TODO about using Python's ipaddress library 2022-07-27 10:41:05 -04:00
Mike Salvatore 6377ff4c66 Agent: Add TODO about using Python's ipaddress library 2022-07-27 10:38:17 -04:00
Mike Salvatore 40b29ba99a
Merge pull request #2129 from guardicore/2004-propagation-configuration-validation
PropagationConfiguration docstring + validation
2022-07-27 09:42:15 -04:00
Shreya Malviya c2052a57a8 UT: Modify PropagationConfigurationSchema maximum depth validation test cases 2022-07-27 19:08:10 +05:30
Shreya Malviya a9fa7427f3 Common: Change minimum value of maximum_depth in PropagationConfigurationSchema to 0 2022-07-27 19:08:10 +05:30
Shreya Malviya b4243216a3 UI: Modify description of maximum_depth in the propagation schema 2022-07-27 19:08:07 +05:30
Mike Salvatore c65168b1d7
Merge pull request #2131 from guardicore/2004-agent-configuration-validation
AgentConfiguration docstring + validation
2022-07-27 09:22:35 -04:00
Mike Salvatore ddcc689d0f Agent: Pass only ExploitationConfiguration to _exploit_hosts() 2022-07-27 09:19:38 -04:00
Shreya Malviya a89741190f UI: Change minimum value of maximum_depth to 0 in the propagation schema 2022-07-27 18:44:57 +05:30
Shreya Malviya 6da238fe1d Common: Reword PropagationConfiguration docstring 2022-07-27 18:43:28 +05:30
Shreya Malviya e6108d0fc7 UT: Add test for AgentConfigurationSchema tunnel open time validation 2022-07-27 18:32:02 +05:30
Mike Salvatore 55c9b21e28
Merge pull request #2128 from guardicore/2004-exploitation-configuration-docstring
ExploitationConfiguration docstring
2022-07-27 08:59:21 -04:00
Shreya Malviya a603b16573 Common: Add maximum tunnel open time validation to AgentConfigurationSchema 2022-07-27 18:28:52 +05:30
Shreya Malviya 85a11b62bd Common: Add docstring to AgentConfiguration dataclass 2022-07-27 18:27:50 +05:30
Mike Salvatore e7b806c288
Merge pull request #2127 from guardicore/2004-exploitation-options-configuration-validation
ExploitationOptionsConfiguration docstring + validation
2022-07-27 08:53:47 -04:00
Shreya Malviya afc2021470 UT: Add test for PropagationConfigurationSchema maximum depth validation 2022-07-27 18:16:04 +05:30
Shreya Malviya c53d41645c Common: Add maximum depth validation to PropagationConfigurationSchema 2022-07-27 18:15:33 +05:30
Shreya Malviya 2ea3a27263 Common: Add docstring to PropagationConfiguration dataclass 2022-07-27 18:08:30 +05:30
Shreya Malviya 339b3a2232
Common: Reword ExploitationOptionsConfiguration docstring
Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
2022-07-27 18:05:20 +05:30
Shreya Malviya fa98631642
Common: Reword ExploitationConfiguration docstring
Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
2022-07-27 18:04:29 +05:30
Shreya Malviya 706b5758d4 Common: Add docstring to ExploitationConfiguration dataclass 2022-07-27 17:59:29 +05:30
Shreya Malviya ba1115cf79 UT: Extract invalid ports to a variable in test_agent_configuration.py 2022-07-27 17:52:01 +05:30
Shreya Malviya 95a6c14334 UT: Add test for ExploitationOptionsConfigurationSchema port validation 2022-07-27 17:48:36 +05:30
Shreya Malviya 20ab2c3eca Common: Add port number validation to ExploitationOptionsConfigurationSchema 2022-07-27 17:44:19 +05:30
Shreya Malviya 6307acb11b Common: Add docstring to ExploitationOptionsConfiguration dataclass 2022-07-27 17:40:24 +05:30
Shreya Malviya 643896bb5b
Merge pull request #2125 from guardicore/2004-tcp-scan-configuration-validation
TCPScanConfiguration docstring + validation
2022-07-27 17:24:07 +05:30
Mike Salvatore 8dc73c9739
Merge pull request #2115 from guardicore/2004-plugin-configuration-docstring
PluginConfiguration docstring
2022-07-27 07:50:30 -04:00
VakarisZ ffd1773e92
Merge pull request #2124 from guardicore/2004-icmp-scan-configuration-validation
ICMPScanConfiguration docstring
2022-07-27 14:25:39 +03:00
Shreya Malviya d49604274d Common: Add docstring to NetworkScanConfiguration dataclass 2022-07-27 16:54:28 +05:30
Shreya Malviya f870ce0ab3 UT: Add test for TCPScanConfigurationSchema timeout validation 2022-07-27 16:53:14 +05:30
Shreya Malviya fbf3e15f02 Common: Add validation that timeout >= 0 in TCPScanConfigurationSchema 2022-07-27 16:53:14 +05:30
Shreya Malviya 3533074a61 Common: Specify timeout is in seconds in TCPScanConfiguration docstring 2022-07-27 16:53:14 +05:30
Shreya Malviya 5a6173163b UT: Add test for TCPScanConfigurationSchema port validation 2022-07-27 16:53:07 +05:30
Shreya Malviya 65ce50cac1 UT: Add test for ICMPScanConfigurationSchema timeout validation 2022-07-27 16:51:17 +05:30
Shreya Malviya d8bccde276 Common: Add validation that timeout >= 0 in ICMPScanConfigurationSchema 2022-07-27 16:50:46 +05:30
Shreya Malviya af015c788c Common: Specify timeout is in seconds in ICMPScanConfiguration docstring 2022-07-27 16:44:30 +05:30
Shreya Malviya cb97e021a7 Common: Add port number validation to TCPScanConfigurationSchema 2022-07-27 16:02:05 +05:30
Shreya Malviya aff97886d4 Common: Reword ICMPScanConfiguration docstring 2022-07-27 15:56:07 +05:30
Shreya Malviya 7f78e52bf2 Common: Add docstring to TCPScanConfiguration dataclass 2022-07-27 15:55:35 +05:30