Commit Graph

8257 Commits

Author SHA1 Message Date
Mike Salvatore 98033c96c0 UT: Remove unnecessary monkeypatch fixtures from test_pba_file_upload.py 2022-04-26 13:50:22 -04:00
Mike Salvatore fefdd9f024 UT: Remove mocking of private method in test_pba_file_upload.py 2022-04-26 13:49:17 -04:00
Mike Salvatore 55c4f68902 Island: Rename file_type -> target_os in FileUpload resource 2022-04-26 13:41:16 -04:00
Mike Salvatore 1d938e58f8 Island: Prefix private functions with "_" in FileUpload resource 2022-04-26 13:39:21 -04:00
Mike Salvatore e296cd5225 UT: Refactor PBA resource upload/download tests to use DI 2022-04-26 12:58:22 -04:00
Ilija Lazoroski 30e27b4e9a Zoo: Add timeout to zerologon bb test
* Fix log message in smb tools
2022-04-26 11:40:48 -04:00
Mike Salvatore d084b00367 Island: Use DIContainer to construct custom PBA resources 2022-04-26 02:36:17 -04:00
Mike Salvatore 8c3477a000 Common: Raise TypeError if DIContainer.register() called with instance 2022-04-26 02:35:00 -04:00
Mike Salvatore 9b52f3f21b Island: Add missing type hint to LocalMonkeyRunService constructor 2022-04-26 02:19:55 -04:00
Mike Salvatore 3d931b11f9 Island: Fix incorrect type hint in AuthenticationService 2022-04-26 02:18:43 -04:00
Mike Salvatore c16705241a Common: Use a more precise, custom UnregisteredTypeError in DIContainer 2022-04-26 01:42:17 -04:00
Mike Salvatore 7382407be0 Common: Add DIContainer.resolve_dependencies() 2022-04-26 01:37:41 -04:00
Mike Salvatore e78bffb414 Common: Add note about varargs and kwargs to resolve() docstring 2022-04-26 01:27:17 -04:00
Mike Salvatore 7a62434364 Common: Resolve registered instances and types directly 2022-04-26 01:21:36 -04:00
Mike Salvatore 435b619a5d Common: Add recursive resolution to DIContainer 2022-04-25 15:56:59 -04:00
Mike Salvatore 379a71d8e2 Common: Add DIContainer 2022-04-25 14:46:26 -04:00
Mike Salvatore cd8fa699b0 Common: Move get_all_regular_files_in_directory() to utils.file_utils 2022-04-25 12:32:59 -04:00
Mike Salvatore 2f4ffad3f6 Island: Skip directories in DirectoryFileStorageService.delete_all_files 2022-04-25 12:15:57 -04:00
Mike Salvatore a487aa4058 Island: Modify PostBreachFilesService to wrap IFileStorageService 2022-04-25 12:06:23 -04:00
Mike Salvatore d157bf7a40 Island: Use IFileStorageService in FileUpload resource 2022-04-25 12:06:21 -04:00
Mike Salvatore d1e18e9dbd Island: Use IFileStorageService in PBAFileDownload resource 2022-04-25 10:57:17 -04:00
Mike Salvatore c03a5aac4b Island: Pass the data directory to init_app_resources() 2022-04-25 10:26:32 -04:00
Mike Salvatore 6cfdcaaec7 UT: Change flask_client() fixture from session- to function-scoped 2022-04-25 10:23:37 -04:00
Mike Salvatore 3355455c9b Project: Ignore .mypy_cache directories 2022-04-25 10:21:44 -04:00
Mike Salvatore 88df935c77 Island: Add DirectoryFileStorageService 2022-04-25 09:39:16 -04:00
Mike Salvatore 80a305ea81 Island: Add IFileStorageService 2022-04-25 09:39:16 -04:00
Mike Salvatore 3c1e25b88c UT: Move Linux directory permissions check to a utility function 2022-04-25 09:39:16 -04:00
VakarisZ b9efc2d552
Merge pull request #1909 from guardicore/957-island-reset-improvements
957 island reset improvements
2022-04-22 10:48:28 +03:00
vakarisz 193bcdbf58 UI: Change the contents of running monkeys warning on reset modal
This change makes the warning more actionable
2022-04-22 10:45:03 +03:00
vakarisz 2cac1f836b Docs: Change start over screenshot and wording to "Reset" 2022-04-22 10:45:03 +03:00
Mike Salvatore 2ba94fde7d Island: Remove disused remote_port_check service 2022-04-21 14:24:34 -04:00
Ilija Lazoroski 53b405a115 Island: Fix automatic jumping in telemetry feed
Fixes #1850
2022-04-21 13:42:08 -04:00
Mike Salvatore 57c5457a17 CHANGELOG: Replace some PR numbers with the correct Issue numbers 2022-04-21 13:06:12 -04:00
Mike Salvatore ab46525f6d Changelog: Change "less" to "fewer" 2022-04-21 12:40:22 -04:00
Mike Salvatore a6603c64d6 UT: Add test_all_keys_if_credentials_empty() test 2022-04-21 12:21:33 -04:00
vakarisz 976417dd5c Changelog: Add entry about changed Island's reset button 2022-04-21 17:49:31 +03:00
vakarisz 75034f37f6 UI: Replace startOverPage with an improved Island reset modal
New modal allows to save clicks, explains the situation better, offers to export the config and allows deleting agent data without deleting config
2022-04-21 17:41:24 +03:00
vakarisz 551439dcc2 Island: Add endpoint to delete agent data
This endpoint allows to delete the data gathered by agents without resetting config related databases
2022-04-21 17:38:10 +03:00
vakarisz fb2f85ba24 Island: Add collection name properties to config and mode models
Collection name properties are useful for queries related to these specific collections
2022-04-21 17:36:41 +03:00
Shreya Malviya e06e855a48 Island: Check if machine responded before processing scan telemetry
Fixes part of #1850
2022-04-21 08:09:54 -04:00
VakarisZ 20ee887886
Merge pull request #1905 from guardicore/1850-telemetry-overview-line-num-logic
Fix line number in telemetry overview window
2022-04-21 14:35:25 +03:00
Shreya Malviya 94c151bc56 Changelog: Add entry for telemetry overview line number bugfix 2022-04-21 16:15:03 +05:30
Shreya Malviya bb238de037 UI: Fix current line number in telemetry overview window 2022-04-21 16:14:58 +05:30
Mike Salvatore d1ac07b7a4 Merge pull request #1900 from guardicore/1763-fix-windows-exe-removal 2022-04-20 15:04:59 -04:00
Mike Salvatore 53d1c55bba Agent: Refactor InfectionMonkey._build_windows_delete_command()
* Replace references to "monkey" with "agent"
* Improve comments
2022-04-20 12:27:08 -04:00
Mike Salvatore 6d51f17f29 Agent: Improve whitespace and formatting in _self_delete_windows() 2022-04-20 12:27:08 -04:00
Ilija Lazoroski 838848bc3a Agent: Move delay delete commands to monkey.py 2022-04-20 12:27:08 -04:00
Mike Salvatore c2e01eaea7 Agent: Refactor InfectionMonkey._self_delete() 2022-04-20 12:27:08 -04:00
Ilija Lazoroski 2568a46790 Changelog: Add entry for fixing windows self deleting executable 2022-04-20 12:27:06 -04:00
Ilija Lazoroski f2527b4d89 Agent: Change windows removal command 2022-04-20 12:26:48 -04:00