Ilija Lazoroski
|
31f3c1a4d6
|
UT: Fix all unit tests that we creating events to use pydantic
|
2022-09-13 17:53:58 +02:00 |
Ilija Lazoroski
|
1799f1253c
|
Common: Make AbstractAgentEvent to be a pydantic modell
In this way we are saying that every event needs to be a pydantic model
for which we may pay the price later on.
|
2022-09-13 17:45:48 +02:00 |
Ilija Lazoroski
|
a68a765722
|
Common: Make CredentialsStolenEvent to be a class
|
2022-09-13 17:45:48 +02:00 |
Kekoa Kaaikala
|
1a96e9fd8d
|
Common: Make CredentialsStolenEvent a pydantic model
|
2022-09-13 17:45:48 +02:00 |
Kekoa Kaaikala
|
78d5094f90
|
Common: Use int instead of UUID in AbstractAgentEvent
|
2022-09-13 17:45:48 +02:00 |
Mike Salvatore
|
bde44f74f5
|
Merge pull request #2275 from guardicore/2179-implement-pydantic-event-serializer
2179 implement pydantic event serializer
|
2022-09-13 09:56:57 -04:00 |
Mike Salvatore
|
69e11d6b50
|
Common: Ignore mypy cyclical definition warning for JSONSerializable
|
2022-09-13 09:22:24 -04:00 |
Ilija Lazoroski
|
d3a4f255f0
|
Common: Use isinstance in PydanticEventSerializer
|
2022-09-13 14:09:54 +02:00 |
Mike Salvatore
|
ef2bac6de2
|
Merge pull request #2278 from guardicore/2234-remove-repository-service
Island: Remove RepositoryService
|
2022-09-13 08:01:36 -04:00 |
Mike Salvatore
|
6c0b63aa29
|
Common: Don't hide AttributeError from the caller
|
2022-09-13 07:55:15 -04:00 |
Mike Salvatore
|
780595cf19
|
Common: Use `simplify=True` in PydanticEventSerializer
|
2022-09-13 07:53:30 -04:00 |
Mike Salvatore
|
34e843f7f3
|
Common: Make PydanticEventSerializer generic
|
2022-09-13 07:50:38 -04:00 |
Ilija Lazoroski
|
dcd9cab0f4
|
Project: Remove clear_simulation_data entry from vulture_allowlist
|
2022-09-13 13:40:54 +02:00 |
Ilija Lazoroski
|
62ab6e5a77
|
Common: Add generic events to PydanticEventSerializer
|
2022-09-13 13:38:41 +02:00 |
Ilija Lazoroski
|
88d65f40ae
|
Project: Add PydanticEventSerializer to vulture_allowlist
|
2022-09-13 13:38:41 +02:00 |
Ilija Lazoroski
|
9e9160304c
|
UT: Add unit tests for PydanticEventSerializer
|
2022-09-13 13:38:41 +02:00 |
Ilija Lazoroski
|
1755d72ae7
|
Common: Export PydanticEventSerializer from __init__
|
2022-09-13 13:38:33 +02:00 |
Ilija Lazoroski
|
e756e0dbc3
|
Common: Implement EventSerializer for pydantic objects
|
2022-09-13 13:38:26 +02:00 |
Mike Salvatore
|
d58d8bb87b
|
Island: Remove RepositoryService
Issue #2234
|
2022-09-13 07:26:13 -04:00 |
Mike Salvatore
|
b226c84b6c
|
Merge pull request #2277 from guardicore/2234-refactor-clear-simulation-data
2234 refactor clear simulation data
|
2022-09-13 07:25:49 -04:00 |
Mike Salvatore
|
7c86bfc182
|
Island: Rename _handle_*_events() -> _subscribe_*_events()
|
2022-09-13 07:24:25 -04:00 |
Ilija Lazoroski
|
f944347644
|
UT: Test ResetAgentConfiguration endpoint
|
2022-09-13 11:41:08 +02:00 |
Ilija Lazoroski
|
f87fb39b0f
|
Project: Add clear_simulation_data to vulture_allowlist
Remove once #2277 is closed
|
2022-09-13 11:30:13 +02:00 |
Mike Salvatore
|
4e49e59447
|
Island: Rename local event_queue -> island_event_queue
Disambiguate Island event queues from Agent event queues
|
2022-09-13 11:07:35 +02:00 |
Mike Salvatore
|
6d297dc201
|
Island: Subscribe legacy Database.reset_db to CLEAR_SIMULATION_DATA
|
2022-09-13 11:07:35 +02:00 |
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 |