Commit Graph

10582 Commits

Author SHA1 Message Date
Shreya Malviya 97a9f2d156 UT: Fix import in test_send_all_events_to_island.py 2022-09-14 16:14:53 +05:30
Shreya Malviya c72d34b7ad Agent: Fix import in monkey.py 2022-09-14 16:12:39 +05:30
Mike Salvatore 1affc3fe5e Common: Add "raises" docstrings to IEventSerializer.deserialize() 2022-09-14 06:33:31 -04:00
Shreya Malviya bb8b4742af Agent: Implement event serializer logic for SendAllAgentEventsToIsland 2022-09-14 16:00:56 +05:30
Shreya Malviya aeda96db06 UT: Add test for AgentEventsToIslandSender 2022-09-14 15:45:40 +05:30
Shreya Malviya 37c4362b60 Agent: Add default argument and type hint in send_all_events_to_island.py 2022-09-14 15:43:38 +05:30
Ilija Lazoroski b129833e57 Island: Remove ITelemtryRepository 2022-09-14 06:13:29 -04:00
vakarisz bc6da3d402 BB: Add documentation about changes to tunneling-11 2022-09-14 12:13:36 +03:00
vakarisz c281666504 BB: Remove tunneling-12 from depth-3 2022-09-14 12:10:06 +03:00
vakarisz 7a33802b7c BB: Add tunneling machines to the list of depth 3 test 2022-09-14 12:06:46 +03:00
Shreya Malviya fe63b28ee1 Agent: Restructure SendAllAgentEventsToIsland and _AgentEventsToIslandSender 2022-09-14 14:31:55 +05:30
Shreya Malviya 404f6d954f Agent: Replace SendAllAgentEventsToIsland's __call__() with send_event() 2022-09-14 13:46:45 +05:30
Shreya Malviya 8256322a29 Agent: Rename _batch_and_send_events_thread -> _BatchAndSendEventsThread 2022-09-14 13:34:34 +05:30
Shreya Malviya 1ad13db758 Agent: Rename send_all_events_to_island -> SendAllAgentEventsToIsland 2022-09-14 13:33:34 +05:30
Shreya Malviya 5152b9a3cc Agent: Use threading.Event instead of flag in send_all_events_to_island.py 2022-09-14 12:29:07 +05:30
Shreya Malviya a561195508 Agent: Use `json` instead of `data` in POST request in send_all_events_to_island.py 2022-09-14 12:14:25 +05:30
Shreya Malviya 4381716e54 Agent: Remove unused variables in send_all_events_to_island.py 2022-09-14 12:14:25 +05:30
Shreya Malviya 39a7ae0964 Agent: Rename DEFAULT_TIME_PERIOD -> DEFAULT_TIME_PERIOD_SECONDS in send_all_events_to_island.py 2022-09-14 12:14:25 +05:30
Shreya Malviya 5ecc3e992a Agent: Remove send_all_events_to_island's dependency on pubsub 2022-09-14 12:14:25 +05:30
Shreya Malviya 83c7f10859 Agent: Simplify batching and sending logic in send_all_events_to_island.py 2022-09-14 12:14:25 +05:30
Shreya Malviya 1d60cb160b Agent: Clear event batches set and use correct variable name in send_all_events_to_island.py 2022-09-14 12:14:25 +05:30
Shreya Malviya 239b2e2550 Agent: Extract API URL to variable EVENTS_API_URL in send_all_events_to_island.py 2022-09-14 12:14:25 +05:30
Shreya Malviya 39f8bafd46 Agent: Add docstrings in send_all_events_to_island.py 2022-09-14 12:14:25 +05:30
Shreya Malviya de68f21fdf Agent: Subscribe `send_all_events_to_island` to all events 2022-09-14 12:14:25 +05:30
Shreya Malviya 1abf323b14 Agent: Add type annotation for `send_all_events_to_island._batch_and_send_events_thread._event_batch` 2022-09-14 12:14:25 +05:30
Shreya Malviya 8f4aefda74 Agent: Rename some variables in `send_all_events_to_island` 2022-09-14 12:14:25 +05:30
Shreya Malviya 6520fe2c90 Agent: Rename push_events_to_island.py -> send_all_events_to_island.py for consistency 2022-09-14 12:14:25 +05:30
Shreya Malviya 9475c86fba Agent: Rename `push_all_events_to_island` -> `send_all_events_to_island` for consistency 2022-09-14 12:14:25 +05:30
Shreya Malviya 5542f67ceb Agent: Finish implementing threading/batching in `push_all_events_to_island` 2022-09-14 12:14:25 +05:30
Shreya Malviya e51a717bdf Agent: Add a very crude outline of using a queue and threading in `push_all_events_to_island` 2022-09-14 12:14:25 +05:30
Shreya Malviya a06c6a622e Agent: Add log statements in class `push_all_events_to_island`'s `__call__()` 2022-09-14 12:14:25 +05:30
Shreya Malviya 1462e832b0 Agent: Add subscriber to push all events to the Island 2022-09-14 12:14:25 +05:30
Mike Salvatore cd6a46a304 Island: Add MongoNodeRepository 2022-09-13 20:43:24 -04:00
Mike Salvatore 76b51d25b9 Island: Use frozenset instead of tuple for communication types 2022-09-13 20:42:37 -04:00
Mike Salvatore 6cc8948ebf Island: Add INodeRepository.reset() 2022-09-13 19:09:55 -04:00
Mike Salvatore ed0e8c4870 Common: Add event type to serialized agent events 2022-09-13 17:15:52 -04:00
Mike Salvatore 03989e1964 Common: Add EVENT_TYPE_FIELD 2022-09-13 17:04:44 -04:00
Mike Salvatore 010a630c4f
Merge pull request #2282 from guardicore/2179-register-credentials-stolen-event-serializer
2179 register credentials stolen event serializer
2022-09-13 17:02:25 -04:00
Kekoa Kaaikala e7bb5ce535 BB: Add interface to tunneling-11 2022-09-13 19:52:04 +00:00
Kekoa Kaaikala b865c13a3b BB: Revert depth_3_a test 2022-09-13 19:45:57 +00:00
Mike Salvatore d30dfd3396 Agent: Setup EventSerializerRegistry 2022-09-13 15:16:27 -04:00
Mike Salvatore ca23c94c8e Island: Setup EventSerializerRegistry 2022-09-13 15:12:07 -04:00
Mike Salvatore 905fb3563e
Merge pull request #2281 from guardicore/2216-prevent-port-collisions
Agent: Add TCPPortSelector
2022-09-13 15:08:56 -04:00
Mike Salvatore 0f0f50208d
Agent: Add missing "param" in docstring
Co-authored-by: Kekoa Kaaikala <kekoa.kaaikala@gmail.com>
2022-09-13 15:07:25 -04:00
Mike Salvatore 5905d3bf5b Common: Add register_common_agent_event_serializers() 2022-09-13 15:04:45 -04:00
Mike Salvatore ad01003480 Common: Rename i_event_serialize{,r}.py 2022-09-13 14:58:15 -04:00
Mike Salvatore 1c742c3f96
Merge pull request #2280 from guardicore/2179-credentialsstolenevent-pydantic
2179 credentialsstolenevent pydantic
2022-09-13 14:47:10 -04:00
Mike Salvatore 1503c3f0ba Common: Switch AbstractAgentEvent.source from int to AgentID 2022-09-13 13:25:47 -04:00
Mike Salvatore 80cd5a05a1 Common: Move AgentID definition to common 2022-09-13 13:25:45 -04:00
Mike Salvatore 1998d492eb Agent: Remove disused credential_collectors.credential_components pkg 2022-09-13 13:17:02 -04:00