Commit Graph

9368 Commits

Author SHA1 Message Date
Shreya Malviya d49604274d Common: Add docstring to NetworkScanConfiguration dataclass 2022-07-27 16:54:28 +05:30
Shreya Malviya 775ef144a5
Merge pull request #2114 from guardicore/2004-validate-custom-pba-config
Custom PBA configuration validation
2022-07-27 13:03:59 +05:30
Mike Salvatore 4c86b1bd3d Common: Remove periods from CustomPBAConfiguration docstrings 2022-07-27 12:32:07 +05:30
Shreya Malviya 8361ed1453 UT: Update cases for CustomPBAConfigurationSchema's linux filename validation test 2022-07-27 12:32:07 +05:30
Shreya Malviya a017a66137 Common: Fix CustomPBAConfigurationSchema's linux filename validation regex to check for forward slashes instead of back slashes 2022-07-27 12:32:07 +05:30
Shreya Malviya 35c2cf26e8 UT: Add null byte case in CustomPBAConfigurationSchema linux filename validation test 2022-07-27 12:32:07 +05:30
Shreya Malviya a9b9a13c40 Common: Update CustomPBAConfigurationSchema's linux filename validation regex to prevent null bytes 2022-07-27 12:32:07 +05:30
Shreya Malviya 58ce293909 UT: Add cases to CustomPBAConfigurationSchema filename validation tests 2022-07-27 12:32:07 +05:30
Shreya Malviya 80d3aec1f8 Common: Simplify filename validation regex in CustomPBAConfigurationSchema 2022-07-27 12:32:07 +05:30
Shreya Malviya c4b5e9fb2d Common: Fix Windows filename regex in CustomPBAConfigurationSchema validation 2022-07-27 12:32:07 +05:30
Shreya Malviya 8d84bdafe1 Common: Modify filename validation regex in CustomPBAConfigurationSchema to allow empty strings 2022-07-27 12:32:07 +05:30
Shreya Malviya 9c7b69dd7b Project: Add 'validate_windows_filename_not_reserved' to Vulture's allowlist 2022-07-27 12:32:07 +05:30
Shreya Malviya 2b56f039ee Common: Add reserved filename validation for Windows in CustomPBAConfigurationSchema 2022-07-27 12:32:07 +05:30
Shreya Malviya cacfb7755d Common: Seperate regex for Windows and Linux filenames in CustomPBAConfigurationSchema 2022-07-27 12:32:07 +05:30
Shreya Malviya f823e9c7ae Common: Modify docstring format in CustomPBAConfiguration 2022-07-27 12:32:07 +05:30
Shreya Malviya 52643315e2 Common: Reword CustomPBAConfiguration docstring description 2022-07-27 12:32:07 +05:30
Shreya Malviya 5063512764 Common: Remove filename examples from CustomPBAConfiuration docstring 2022-07-27 12:32:07 +05:30
Shreya Malviya e7d9ed88be UT: Add Windows tests for CustomPBAConfiguration filename validation 2022-07-27 12:32:06 +05:30
Shreya Malviya 5b9ba9cd27 Common: Fix wording in CustomPBAConfiguration docstring 2022-07-27 12:32:06 +05:30
Shreya Malviya 83e56a9028 UT: Add tests for CustomPBAConfiguration filename validation 2022-07-27 12:32:06 +05:30
Shreya Malviya bcf7a2e8ff Common: Change CustomPBAConfigriguration's filename validation to allow empty strings 2022-07-27 12:32:06 +05:30
Shreya Malviya 626720ff9f Common: Add filename validation to CustomPBAConfigurationSchema 2022-07-27 12:32:06 +05:30
Shreya Malviya 4116ebd24d Common: Add docstring to CustomPBAConfiguration dataclass 2022-07-27 12:32:06 +05:30
Mike Salvatore 48e34049fe
Merge pull request #2118 from guardicore/2092-fix-bb-tests
2092 fix bb tests
2022-07-26 13:43:32 -04:00
Mike Salvatore 685c709fda Agent: Remove empty system_info package 2022-07-26 12:47:46 -04:00
Mike Salvatore b5691a33f6 Island: Rename _file_storage_service -> _file_repository 2022-07-26 12:18:20 -04:00
Mike Salvatore 2d86f1a3f1
Merge pull request #2117 from guardicore/2004-freeze-lists
2004 freeze lists
2022-07-26 10:50:21 -04:00
Mike Salvatore 7be4ea2893 Common: Fix type hint for variable-length homogeneous tuples
See https://docs.python.org/3/library/typing.html#typing.Tuple
2022-07-26 10:42:20 -04:00
Ilija Lazoroski 6bbb825873 Island: All node keywords should be lowercase 2022-07-26 16:32:58 +02:00
Ilija Lazoroski 02ebef56cf BB: Fix SMB_path configuration 2022-07-26 16:32:21 +02:00
Ilija Lazoroski 85deb6858c BB: Add __test__ to some untestable classes 2022-07-26 16:31:35 +02:00
Ilija Lazoroski 7ccab8e2f2 BB: Monkey object uses _id 2022-07-26 16:30:19 +02:00
vakarisz eaeb78a821 Common: Rename and improve freeze_lists_in_dict function 2022-07-26 17:29:43 +03:00
Ilija Lazoroski 371b020542 BB: Reset Island after finished test 2022-07-26 16:29:21 +02:00
vakarisz 0ab90aeaf5 Common: Fix configuration typehints to tuples
Configuration types need to be tuples, because that's what we expect on the object. They can stay as lists in the marshmallow schemas, because marshmallow schemas expect to take lists.
2022-07-26 17:25:08 +03:00
vakarisz 1252ad3b87 Common: Revert circular dependency in agent_configuration.py 2022-07-26 17:25:08 +03:00
vakarisz 91e8ce62db Common: Freeze lists to tuples in agent configuration 2022-07-26 17:25:06 +03:00
vakarisz 81101d4213 Common: Rename configuration package to agent_configuration 2022-07-26 09:38:58 -04:00
VakarisZ dd80e24112
Merge pull request #2113 from guardicore/terser-upgrade
Terser upgrade + typescript fixes
2022-07-26 10:34:16 +03:00
vakarisz d44730897f UI: Bump terser from 5.12.1 to 5.14.2 2022-07-26 08:51:26 +03:00
vakarisz a00ae6ad23 UI: Fix typescript errors 2022-07-25 17:29:23 +03:00
Mike Salvatore 4d3fb03da2
Merge pull request #2103 from guardicore/2092-modify-blackbox-tests
Modify BB tests to use new configuration objects
2022-07-25 07:04:10 -04:00
Ilija Lazoroski fd6f1db074 BB: Add todo and comment out broken code in ZerologonAnalyzer 2022-07-25 11:07:47 +02:00
Ilija Lazoroski 674ee02dda UI: Reformat empty payloads 2022-07-25 10:47:49 +02:00
Mike Salvatore f4dee02874 Island: Properly handle Credentials JSON in resource 2022-07-22 13:26:12 -04:00
Mike Salvatore 878f12736f BB: POST config and credentials as JSON 2022-07-22 13:26:12 -04:00
Mike Salvatore e1691b108f BB: Fix credentials object serialization 2022-07-22 13:26:12 -04:00
Mike Salvatore 5c60656f56 BB: Rename post_json(data) parameter to json 2022-07-22 17:24:53 +00:00
Mike Salvatore 2d338fc81f BB: Use to_mapping() to send agent configuration JSON 2022-07-22 17:24:53 +00:00
Mike Salvatore 9d6b0c5a61 UT: Use `json=` in calls to `POST /api/agent-configuration` 2022-07-22 17:24:53 +00:00