Commit Graph

9259 Commits

Author SHA1 Message Date
vakarisz 1445bcf4ad UI: Reorganize and simplify configuration schema 2022-07-14 17:05:54 +03:00
vakarisz efbc1d3860 UI: Change PropagationConfig.tsx to use more trivial config schema 2022-07-14 16:54:43 +03:00
vakarisz a721508be2 UI: Remove unnecessary console log in ConfigurePage.js 2022-07-14 15:19:27 +03:00
vakarisz c0ecaa0096 UI: Simplify AdvancedMultiSelect.js
AdvancedMultiSelect.js no longer needs to pull data from definitions since we no longer need the definitions in schema
2022-07-14 15:18:21 +03:00
Mike Salvatore d11c8bfdbc Island: Remove disused config_key in technique_reports 2022-07-14 08:03:27 -04:00
Mike Salvatore 792d1f2e4d Island: Remove disused field_encryptors subpackage 2022-07-14 08:00:39 -04:00
Mike Salvatore de0e604518 Island: Remove disused IFieldEncryptor 2022-07-14 07:59:59 -04:00
Mike Salvatore 9639acffa5 Island: Remove disused StringEncryptor 2022-07-14 07:59:13 -04:00
Mike Salvatore 86ce7f2cf9 Island: Remove disused dict_encryptor 2022-07-14 07:59:11 -04:00
Mike Salvatore 80f2dfd590 Island: Ignore unused is_island 2022-07-14 07:55:36 -04:00
Mike Salvatore 5209d6982a Common: Remove disused config_value_paths.py 2022-07-14 07:53:34 -04:00
Mike Salvatore c57672b9ae
Merge pull request #2090 from guardicore/1662-remove-configservice
Remove ConfigService
2022-07-14 07:52:06 -04:00
Mike Salvatore 6b94d5c04a
Merge pull request #2089 from guardicore/1662-remove-configservice-from-utils
Remove `services/configuration/utils.py`, use AgentConfiguration
2022-07-14 07:51:33 -04:00
Mike Salvatore 753970f644
Merge pull request #2088 from guardicore/1662-remove-configservice-from-reportservice
1662 remove configservice from reportservice
2022-07-14 07:51:04 -04:00
Mike Salvatore dc73b11f6f
Merge pull request #2091 from guardicore/create-init-files
Create `__init__.py` files for proper code coverage
2022-07-14 07:36:42 -04:00
Mike Salvatore ea1414d0b5 Island: Remove encryption from report_dal.py
Since passwords were removed from the report in 60a1e791, there's no
need to encrypt any data in the report.
2022-07-14 07:28:53 -04:00
Mike Salvatore 7760520cc8 Island: Remove disused StringListEncryptor 2022-07-14 07:27:47 -04:00
Shreya Malviya 4bd90505c2 Island: Add __init__.py files to all source code directories for proper code coverage results 2022-07-14 16:56:04 +05:30
Shreya Malviya a2677a1a0e Agent: Add __init__.py files to all source code directories for proper code coverage results 2022-07-14 16:55:47 +05:30
Mike Salvatore 60a1e79179 Island: Remove config_passwords from report
Work being done in issue #1965 makes including config_passwords in the
report unnecessary.
2022-07-14 07:24:29 -04:00
Mike Salvatore 521396ff81 Island: Remove config_users from report
Work being done in issue #1965 makes including config_users in the
report unnecessary.
2022-07-14 07:22:24 -04:00
Mike Salvatore ac704471d3
Merge pull request #2087 from guardicore/1662-remove-configservice-from-pba-resource
1662 remove configservice from pba resource
2022-07-14 07:20:39 -04:00
Mike Salvatore d7a2a35c46 Island: Simplify a loop in get_config_exploits() 2022-07-14 07:12:08 -04:00
Mike Salvatore a979a372fc Island: Rename _is_target_os_supported -> _target_os_is_unsupported 2022-07-14 06:55:25 -04:00
Shreya Malviya 360b438f62 Island: Remove ConfigService (cc/services/config.py) 2022-07-14 15:09:08 +05:30
Shreya Malviya 68a7085ede UT: Add placeholder argument to function call in test_process_post_breach_telemetry 2022-07-14 14:49:11 +05:30
Shreya Malviya d6bd84ad66 Common: Remove unused config value path INACCESSIBLE_SUBNETS_PATH 2022-07-14 14:45:23 +05:30
Shreya Malviya 02a06787d0 Island: Remove monkey/monkey_island/cc/services/configuration/ 2022-07-14 14:45:17 +05:30
Shreya Malviya d534c64a3f Island: Use agent configuration in remaining ZT segmentation check function to get inaccessible subnets 2022-07-14 14:25:01 +05:30
Shreya Malviya 45151e7e19 Island: Modify scan telemetry processing function to accept agent configuration 2022-07-14 14:24:10 +05:30
Shreya Malviya df6296fc6b Island: Use agent configuration in ZT segmentation check to get inaccessible subnets 2022-07-14 14:20:40 +05:30
Shreya Malviya 8daa6db81f Island: Modify all telemetry processing functions to accept an extra agent configuration argument 2022-07-14 14:18:38 +05:30
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