Commit Graph

10516 Commits

Author SHA1 Message Date
Mike Salvatore 996225deef Agent: Fix line length 2022-09-14 12:09:42 -04:00
Mike Salvatore fbd5bb9a9e Agent: Rename _agent_events_to_island_sender 2022-09-14 12:08:45 -04:00
Mike Salvatore 9471db378f UT: Reduce sleep time from 0.05 to 0.01 in test_agent_event_forwarder 2022-09-14 12:07:36 -04:00
Ilija Lazoroski 83f1e4cc2a Island: Use agent_event_handlers on island setup 2022-09-14 17:19:28 +02:00
Ilija Lazoroski 5a836daaa7 Island: Add agent_event_handlers 2022-09-14 17:18:55 +02:00
Ilija Lazoroski 26fc6fd5b9 Island: Add save_event_to_event_repository subscriber 2022-09-14 17:17:32 +02:00
Mike Salvatore ac4db7aaf6 CHANGELOG: Add entry for #2216 2022-09-14 11:03:06 -04:00
vakarisz b81f7ad69c Merge branch '2216-tcp-relay' into develop 2022-09-14 17:47:13 +03:00
Shreya Malviya 218363d40e UT: Reduce sleep time from 0.1 to 0.05 in test_agent_event_forwarder.py 2022-09-14 19:59:19 +05:30
Shreya Malviya 5c1613bc79 Agent: Add log statement when sending Agent events to Island 2022-09-14 19:54:36 +05:30
Shreya Malviya 7fed97530f UT: Use BatchingAgentEventForwarder instead of AgentEventsToIslandSender 2022-09-14 19:52:33 +05:30
Shreya Malviya c24fd9ddab Agent: Rename AgentEventsToIslandSender -> BatchingAgentEventForwarder 2022-09-14 19:52:10 +05:30
Shreya Malviya 83a828ada5 UT: Rename test_send_all_events_to_island.py -> test_agent_event_forwarder.py 2022-09-14 19:51:15 +05:30
Shreya Malviya 984ce2e8bc UT: Use agent_event_forwarder instead send_all_events_to_island in import 2022-09-14 19:50:33 +05:30
Shreya Malviya 04b1caeb4c Agent: Rename send_all_events_to_island.py -> agent_event_forwarder.py 2022-09-14 19:49:35 +05:30
Shreya Malviya 0775beda7a Agent: Rename SendAllAgentEventsToIsland -> AgentEventForwarder 2022-09-14 19:47:53 +05:30
Shreya Malviya 4eabf6e77b Agent: Use create_daemon_thread() instead of threading.Thread() in AgentEventsToIslandSender 2022-09-14 19:45:12 +05:30
vakarisz f3fd2fca8b Agent: Fix SSH exploiter to be able to exploit unknown OS
Previously if the agent couldn't detect the OS, agent failed with errors
2022-09-14 17:08:52 +03:00
Ilija Lazoroski bb0910371c Island: Refactor api/events to publish list of events
PR #2285
2022-09-14 09:48:16 -04:00
Mike Salvatore 2fe3a2ece3
Merge pull request #2287 from guardicore/2180-i-event-repository
Island: Add IEventRepository
2022-09-14 09:44:17 -04:00
Mike Salvatore c977d8c212 Island: Use TypeVar for IEventRepository.get_events_by_type() 2022-09-14 09:41:58 -04:00
Mike Salvatore 4bb914316f
Merge pull request #2283 from guardicore/2255-mongo-node-repository
2255 mongo node repository
2022-09-14 09:35:16 -04:00
Mike Salvatore f52f8eccd5 UT: Use sets for simpler sequence comparison 2022-09-14 09:19:56 -04:00
Mike Salvatore 1a8c285d8e UT: Use set.intersection() for simpler set comparison 2022-09-14 09:18:00 -04:00
Mike Salvatore 617a3273cd Merge branch 'omit-mongo-object-id' into 2255-mongo-node-repository 2022-09-14 09:10:12 -04:00
Mike Salvatore c2437464c6 Island: Omit the mongo object ID from Agent query results 2022-09-14 09:10:06 -04:00
Ilija Lazoroski 17e9c00180 UT: Add another test for AgentEventsToIslandSender 2022-09-14 15:09:00 +02:00
Mike Salvatore fa8736e2fe Island: Omit the mongo object ID from Machine query results 2022-09-14 09:05:42 -04:00
Mike Salvatore 3fb1ddaa74 Island: Omit the mongo object ID from Node query results 2022-09-14 09:02:21 -04:00
Mike Salvatore 5821d71ade Island: Omit the mongo object ID from credentials query results 2022-09-14 08:59:09 -04:00
Ilija Lazoroski c54d1b89ab Island: Add IEventRepository 2022-09-14 13:26:27 +02:00
Mike Salvatore d509ee7216 Build: Pull Python AppImage v3.7.14 2022-09-14 07:22:44 -04:00
Mike Salvatore 1e3e6c9052 Merge branch '2216-fix-connection-issues' into 2216-tcp-relay 2022-09-14 07:06:03 -04:00
Mike Salvatore e56d4c0ac7
Merge pull request #2284 from guardicore/2216-relay-bb-tests
2216 relay bb tests
2022-09-14 06:56:42 -04:00
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