Commit Graph

10180 Commits

Author SHA1 Message Date
Mike Salvatore 9479b56722 Island: Subscribe ICredentialsRepository to CLEAR_SIMULATION_DATA 2022-09-13 11:07:35 +02:00
Mike Salvatore 745027bf93 Island: Wrap island event handler setup in separate function 2022-09-13 11:07:35 +02:00
Mike Salvatore 7f29e0342d Island: Use interface instead of concrete in island_event_handlers 2022-09-13 11:07:35 +02:00
Mike Salvatore ba724db969 Island: Publish IslandEventTopic.CLEAR_SIMULATION_DATA from resource 2022-09-13 11:07:35 +02:00
Mike Salvatore 2c750acc7a Island: Return 204 No Content from ClearSimulationData POST 2022-09-13 11:07:35 +02:00
ilija-lazoroski e0fb651c69
Merge pull request #2276 from guardicore/2234-refactor-reset-agent-config
2234 refactor reset agent config
2022-09-13 10:55:47 +02:00
Ilija Lazoroski afa6c6b159 Island: Rename event_queue to island_event_queue 2022-09-13 10:44:52 +02:00
Ilija Lazoroski 2bfb85a652 UT: Add typehints to test_reset_agent_configuration 2022-09-13 09:33:48 +02:00
Ilija Lazoroski 599c753cf7 Island: Add docstrings to reset_agent_configuration event handler 2022-09-13 09:31:38 +02:00
Mike Salvatore ea47fc326a Island: Remove extra newline from server_setup.py 2022-09-12 14:15:08 -04:00
Mike Salvatore 0e112cc31a Island: Wire up event handlers before starting the island server
_start_island_server() blocks, so event handlers need to be
wired/subscribed before the server starts.
2022-09-12 14:12:30 -04:00
Mike Salvatore ecab1be70e Island: Change IslandEventTopic definition from dynamic to static
My code completion tool doesn't play well with dynamically defined
Enums.
2022-09-12 13:35:47 -04:00
Mike Salvatore 8b49554cb5 Island: Add island_event_handlers package 2022-09-12 12:00:05 -04:00
Mike Salvatore 3e67f5696c Island: Move setup_island_event_handlers to monkey_island.cc.setup 2022-09-12 11:56:34 -04:00
Mike Salvatore c02f87add0 Merge branch '2234-extract-network-utils-from-services' into 2234-refactor-reset-agent-config 2022-09-12 11:53:19 -04:00
Mike Salvatore ad3dd6ba36 Island: Move network_utils from services/ -> server_utils/ 2022-09-12 11:52:53 -04:00
Mike Salvatore 285e6aaa35 Island: Remove disused local_ips() functions 2022-09-12 11:48:36 -04:00
Mike Salvatore 4bc9f735be Island: Rename setup_island_event_{subscribers,handlers} 2022-09-12 11:25:58 -04:00
Mike Salvatore fd7a00a225 Island: Rename subscribe_to_topics() -> setup_island_event_subscribers() 2022-09-12 11:20:17 -04:00
Ilija Lazoroski 0ca13eb93d Island: Add subscribe_to_topics on server setup 2022-09-12 15:59:58 +02:00
Ilija Lazoroski b834bfe7f7 Island: Publish RESET_AGENT_CONFIGURATION from endpoint 2022-09-12 15:22:09 +02:00
Ilija Lazoroski f9b1c5ebd2 Island: Export reset_agent_configuration from __init__ 2022-09-12 13:21:52 +02:00
Ilija Lazoroski e50b034324 Island: Create callable reset_agent_configuration class 2022-09-12 13:21:44 +02:00
Mike Salvatore bc769ee6b8 Common: Define del_key() in terms of MutableMapping.pop() 2022-09-11 22:59:58 -04:00
Ilija Lazoroski e690eb7c61 Project: Lock the windows pipenv version to 2022.7.4 2022-09-09 09:16:45 -04:00
Mike Salvatore d009bc458c Island: Import TypeAlias from typing_extensions in node.py 2022-09-07 11:15:07 -04:00
Mike Salvatore fa8a72dc86 Island: Remove unused import from node.py 2022-09-07 11:13:06 -04:00
Mike Salvatore 0310c737d7 UT: Remove unused imports from test_node.py 2022-09-07 11:12:30 -04:00
Mike Salvatore 588b740970
Merge pull request #2253 from guardicore/2217-remove-marshmallow
2217 remove marshmallow
2022-09-07 10:57:29 -04:00
Mike Salvatore 68bc73d86a Merge branch 'i-node-repository' into develop 2022-09-07 10:25:00 -04:00
Mike Salvatore 4e4e4cf97d Island: Export INodeRepository from monkey_island.cc.repository 2022-09-07 10:22:54 -04:00
Mike Salvatore 5f874356b1 Island: Remove INetworkMapRepository
Replaced by monkey_island.cc.models.Node and INodeRepository
2022-09-07 10:22:54 -04:00
Mike Salvatore 8c69780f4e Island: Add INodeRepository 2022-09-07 10:22:54 -04:00
Mike Salvatore 35ecdb11ab Island: Add docstrings to Node model 2022-09-07 10:22:52 -04:00
Mike Salvatore 094a0b1a8d Island: Use Mapping for tracking node connections 2022-09-07 10:21:51 -04:00
VakarisZ 6891c82a46
Merge pull request #2252 from guardicore/2217-remove-unused-code
2217 remove unused code
2022-09-07 16:58:42 +03:00
vakaris_zilius f0b50b254e Island: Refactor simulation to use pydantic 2022-09-07 13:48:19 +00:00
Ilija Lazoroski 6fe501195b Island: Remove marshmallow-enum from Pipfile 2022-09-07 15:33:09 +02:00
Ilija Lazoroski 6fb77694ef Island: Remove marshmallow from Pipfile 2022-09-07 15:31:51 +02:00
Ilija Lazoroski 62982459b0 Agent: Remove marshmallow-enum from Pipfile 2022-09-07 15:30:17 +02:00
Ilija Lazoroski 8aad9701cd Agent: Remove marshmallow for Pipfile 2022-09-07 15:28:18 +02:00
vakaris_zilius 895de8c720 Common: Delete IJSONSerializable.py
This interface is no longer used (replaced by pydantic objects)
2022-09-07 13:19:39 +00:00
vakaris_zilius b7e6435ced UI: Delete InternalConfig.js
This is no longer used, advanced tab only contains a couple of fields now
2022-09-07 13:17:01 +00:00
vakaris_zilius c73fe7a3a9 Island: Remove unused CustomJSONEncoder
This is replaced by APIEncoder in representations.py
2022-09-07 13:16:57 +00:00
Mike Salvatore d39d6ea10f
Merge pull request #2240 from guardicore/2217-pydantic-credentials
2217 pydantic credentials
2022-09-07 09:10:56 -04:00
vakaris_zilius d7dde14cae Agent, Island: Update pydantic version to 1.10.2 from 1.9.2 2022-09-07 13:01:46 +00:00
vakaris_zilius adca1683c8 UI: Improve style in ReformatHook.js 2022-09-07 13:01:46 +00:00
Mike Salvatore 1fc0718554 Agent: Use isinstance() to check if identity is Username 2022-09-07 07:50:39 -04:00
vakaris_zilius c8f131e6b0 Common: Small style improvements in credentials.py 2022-09-07 11:48:34 +00:00
vakaris_zilius 5608bb3f11 Common, Agent: Rename get_plain_text to get_plaintext 2022-09-07 11:48:34 +00:00