Commit Graph

9109 Commits

Author SHA1 Message Date
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
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
Mike Salvatore bdee3b9d8a UT: Improve formatting of test_mongo_credentials_repository.py 2022-07-12 11:57:30 -04:00
Mike Salvatore 9bee01917e
Merge pull request #2081 from guardicore/1965-reset-repository-encryptor
1965 reset repository encryptor
2022-07-12 11:39:48 -04:00
Mike Salvatore eac318ada0 Island: Rename _user_datastore -> user_repository 2022-07-12 11:26:48 -04:00
Mike Salvatore e8ebe845bf Island: Register RepositoryEncryptor with the DIContainer 2022-07-12 11:25:48 -04:00
Mike Salvatore eaddcdcf13 Island: Unlock RepositoryEncryptor in AuthenticationService 2022-07-12 11:25:00 -04:00
Mike Salvatore a20a7710aa Island: Use HTTPStatus Enum in registration resource 2022-07-12 09:55:33 -04:00
Mike Salvatore 6f2a750a13 Island: Use HTTPStatus Enum in Authenticate resource 2022-07-12 09:55:11 -04:00
Mike Salvatore 93deaebff3
Merge pull request #2080 from guardicore/1965-stateful-authentication-service
1965 stateful authentication service
2022-07-12 09:50:12 -04:00
Mike Salvatore 5fe232aaa1
Merge pull request #2079 from guardicore/1965-credential-serialization
1965 credential serialization
2022-07-12 09:40:24 -04:00
vakarisz 897221e47a Island: Add return type to the APIEncoder.default 2022-07-12 16:32:47 +03:00
Mike Salvatore 82d894f0c9 Island: Remove unnecessary services.authentication subpackage 2022-07-12 09:14:52 -04:00
Mike Salvatore c1a9ad1e6f Island: Move JSONFileUserRepository to the repository package 2022-07-12 09:14:52 -04:00
Mike Salvatore 735514d61f Island: Rename UserCreds -> UserCredentials 2022-07-12 09:14:52 -04:00
Mike Salvatore 8608b05c46 Island: Move UserCreds to models package 2022-07-12 09:14:49 -04:00