Commit Graph

9227 Commits

Author SHA1 Message Date
Shreya Malviya c70627c74b Island: Pass agent configuration to telemetry processing function in Telemetry resource 2022-07-14 14:16:19 +05:30
Shreya Malviya 093e6fa3a6 Island: Add init and IAgentConfigurationRepository dependency to Telemetry resource 2022-07-14 14:14:33 +05:30
vakarisz e525fbe330 UI: Fix PropagationConfig.tsx to save state between tabs 2022-07-14 11:14:21 +03:00
Shreya Malviya b237d258e5 Island: Use AgentConfiguration to get inaccessible subnets in ReportService 2022-07-14 13:39:33 +05:30
VakarisZ c5dfd9c3e6
Merge pull request #2086 from guardicore/repository-service-clear-simulation-data
Repository service clear simulation data
2022-07-14 09:46:09 +03:00
Mike Salvatore 6e60722adc Island: Remove unlock() and reset_key() from RepositoryService
These two methods violate SRP and ISP.
2022-07-13 19:35:19 -04:00
Mike Salvatore e48e2cb9af UT: Add typehints to test_pba_file_upload.py 2022-07-13 15:08:34 -04:00
Mike Salvatore 9c7bf6c8b5 Island: Use HTTPStatus Enum in PBA FileUpload resource 2022-07-13 15:08:34 -04:00
Mike Salvatore 0d45c5fb3e Island: Add notes and comments to PBA FileUpload resource 2022-07-13 15:08:34 -04:00
Mike Salvatore 2e7bcd54df Island: Remove ConfigService from PBA FileUpload resource 2022-07-13 15:08:34 -04:00
Mike Salvatore b4ced896b6 UT: Improve formatting in test_pba_file_upload_endpoint() 2022-07-13 15:08:34 -04:00
Mike Salvatore 57b97d09f4 Common: Remove disused EXPLOITER_CLASSES_PATH 2022-07-13 15:05:47 -04:00
Mike Salvatore 4fd5f0a8a5 Island: Use ICredentialsRepository to get configured passwords 2022-07-13 15:04:49 -04:00
Mike Salvatore e349a78334 Island: Fix string/bytes bug in StringListEncryptor
For some reason, bytes objects do not come out of mongo the same way
they go in. This class will be removed when reporting is reworked, so
rather than spend the time on figuring out exactly what's going on, just
use strings.
2022-07-13 14:59:27 -04:00
Mike Salvatore e1c5972ccc Island: Use ICredentialsRepository to get configured usernames 2022-07-13 14:02:30 -04:00
Mike Salvatore 65686190dd Island: Use AgentConfiguration to get configured exploiters 2022-07-13 13:20:42 -04:00
Mike Salvatore 46a71ff8f1 Island: Remove "default" exploits display in report
I'm not sure why this decision was made. It seems to me you'd always
want to display which exploiters were enabled during the simulation.
Telling me it was "default" means I need to go look up what the defaults
are in order to understand the report.
2022-07-13 13:20:42 -04:00
Mike Salvatore db4520af50 Common: Remove disused network scan paths from config_value_paths.py 2022-07-13 13:20:42 -04:00
Mike Salvatore 91a65ee58c Island: Use AgentConfiguration to get network scan settings 2022-07-13 13:20:41 -04:00
Mike Salvatore 16c95e05ec UT: Remove unused conftest.py 2022-07-13 12:42:02 -04:00
Mike Salvatore b30112562a UT: Remove unused conftest.py 2022-07-13 12:39:30 -04:00
Mike Salvatore 2074c37081 Merge branch '1662-repository-service' into develop
PR #2085
2022-07-13 11:58:42 -04:00
Mike Salvatore 6ca09d5c94 Island: Use RepositoryService in ClearSimulationData resource 2022-07-13 11:25:18 -04:00
Mike Salvatore fcff724eaa Island: Implement RepositoryService.clear_simulation_data() 2022-07-13 11:25:00 -04:00
Mike Salvatore 37885b786f UT: Add missing type hints to test_repository_service 2022-07-13 11:09:46 -04:00
Mike Salvatore 28b01a0d0e UI: Remove superseded calls to remove PBA files
These calls were made unnecessary by 826d409d.
2022-07-13 10:48:50 -04:00
Mike Salvatore 33e68979d9 UT: Fix copy/paste error
Co-authored-by: VakarisZ <36815064+VakarisZ@users.noreply.github.com>
2022-07-13 10:38:50 -04:00
Mike Salvatore 45a52077a0 Island: Remove disused ConfigService.init_config() 2022-07-13 10:33:55 -04:00
Mike Salvatore fe9cc86d8b Island: Remove disused PostBreachFilesService 2022-07-13 10:33:15 -04:00
Mike Salvatore 70b404b9f5 Island: Remove the Database service's dependency on ConfigService 2022-07-13 10:33:13 -04:00
Mike Salvatore 2940cc51e8
Merge pull request #2084 from guardicore/1965-delete-configured-creds-on-config-reset
Use DELETE /api/propagation-credentials/configured-credentials
2022-07-13 09:46:42 -04:00
Shreya Malviya cc17a57e20 UI: Extract URL to constant in ConfigurePage.js 2022-07-13 19:06:48 +05:30
Mike Salvatore 738d4ef3e1 Island: Register the RepositoryService with the DI container 2022-07-13 09:36:06 -04:00
Mike Salvatore 826d409dd2 Island: Use RepositoryService in ResetAgentConfiguration resource 2022-07-13 09:36:06 -04:00
Mike Salvatore 5283864c09 Island: Raise NotImplementedError in RepositoryService
This class is still under development.
2022-07-13 09:36:06 -04:00
Mike Salvatore 726f2bbaa2 Island: Implement RepositoryService.reset_agent_configuration() 2022-07-13 09:36:06 -04:00
Mike Salvatore a4b8c94480 Island: Add empty RepositoryService 2022-07-13 09:36:06 -04:00
Mike Salvatore a1b617cda3 UT: Remove disused monkey_configs/flat_config.json 2022-07-13 09:36:06 -04:00
Mike Salvatore dbb8a5535a UT: Remove disused load_monkey_config() fixture 2022-07-13 09:36:06 -04:00
Mike Salvatore 3f428b1555 UT: Remove disused flat_monkey_config() fixture 2022-07-13 09:36:03 -04:00
Shreya Malviya 060250e021 UI: Fix formatting in ConfigurePage.js for consistency 2022-07-13 19:04:57 +05:30
Ilija Lazoroski 891041d15b TEMP 2022-07-13 15:33:34 +02:00
Shreya Malviya 6eed07dd36 UI: Clear configured credentials on configuration reset 2022-07-13 19:00:11 +05:30
Shreya Malviya 1e9d193a6d UI: Clear configured credentials on Island reset 2022-07-13 18:54:13 +05:30
Mike Salvatore c90c8654dd Island: Remote T1216_random_executable.exe
This file should have been removed in 8b39a789.
2022-07-13 09:22:57 -04:00
Mike Salvatore ef25dd936b Island: Remove {to,from}_json_array()
It turns out nothing needs these functions. VakarisZ was right.
2022-07-13 06:50:21 -04:00
Mike Salvatore 07a8d6194c
Merge pull request #2083 from guardicore/1965-encrypt-credentials
1965 encrypt credentials
2022-07-13 06:07:50 -04:00
Mike Salvatore a9799de1ba Island: Remove extra ')' from strings 2022-07-13 06:07:08 -04:00
Mike Salvatore fe7188798f Island: Add note about encryption decorator in
MongoCredentialsRepository
2022-07-13 06:04:12 -04:00
Mike Salvatore cee52ab12c Island: Encrypt credentials in MongoCredentialsRepository 2022-07-13 06:04:10 -04:00