Shreya Malviya
0e9397b283
Agent: Add RetrievalError to i_agent_binary_repository.py
2022-09-20 18:36:22 +05:30
Shreya Malviya
e8ecaa2169
UT: Add tests for HTTPIslandAPIClient.get_agent_binary()
2022-09-20 18:36:22 +05:30
Shreya Malviya
30cf360e98
Agent: Fix URL in HTTPIslandAPIClient.get_agent_binary()
2022-09-20 18:36:22 +05:30
Shreya Malviya
2cebc19843
Agent: Add get_agent_binary() to the IIslandAPIClient interface
2022-09-20 18:36:22 +05:30
Shreya Malviya
d84550ba23
Agent: Fix return type hint in CachingAgentBinaryRepository._download_binary_from_island()
2022-09-20 18:36:21 +05:30
Shreya Malviya
4605722874
Agent: Add logging in CachingAgentBinaryRepository._download_binary_from_island()
2022-09-20 18:36:21 +05:30
Shreya Malviya
3b3f39065d
Agent: Remove comment no longer relevant from monkey.py
2022-09-20 18:36:19 +05:30
Shreya Malviya
e23c6de745
Agent: Remove no longer needed `island_url` parameter from CachingAgentBinaryRepository
2022-09-20 14:59:35 +05:30
Shreya Malviya
1355c038b5
Agent: Add and use HTTPIslandAPIClient.get_agent_binary()
2022-09-20 14:56:10 +05:30
Shreya Malviya
9da1ad4c46
Agent: Pass and accept island_api_client in CachingAgentBinaryRepository's constructor
2022-09-20 14:54:25 +05:30
Shreya Malviya
3100e6c010
Project: Remove outdated entried from Vulture allowlist
2022-09-20 12:37:05 +05:30
Shreya Malviya
1480203627
Agent: Modify docstrings in IIslandAPIClient
2022-09-20 12:35:21 +05:30
Ilija Lazoroski
1b4f834f46
UT: Add status code tests for HTTIslandAPIClient
2022-09-20 08:50:55 +02:00
Ilija Lazoroski
0c13298bbb
UT: Add error handling tests for HTTPIslandAPIClient send_log and
...
get_pba_file
2022-09-20 07:52:48 +02:00
Mike Salvatore
107a15b5f0
Agent: Call raise_for_status() in HTTPIslandAPIClient
2022-09-19 20:05:19 -04:00
Mike Salvatore
a724758caa
Agent: Handle HTTPErrors in HTTPIslandAPIClient
2022-09-19 20:04:52 -04:00
Mike Salvatore
cb8fda0bec
Agent: Add HTTPIslandAPIClient._api_url attribute
2022-09-19 19:57:28 -04:00
Mike Salvatore
841183d8e7
Agent: Reimplement HTTPIslandAPIClient.get_pba_file() as a method
2022-09-19 19:55:07 -04:00
Mike Salvatore
aa3c6c2f4d
Agent: Add IIslandAPIClient.get_pba_file()
2022-09-19 19:52:58 -04:00
Mike Salvatore
92da3b78db
Agent: Reimplement HTTPIslandAPIClient.send_log() as member, not static
2022-09-19 19:44:16 -04:00
Mike Salvatore
aba342b3f2
Agent: Pass IIslandAPIClient to ControlClient.__init__()
2022-09-19 19:41:14 -04:00
Mike Salvatore
9936605242
Agent: Add IIslandAPIClient.send_log()
2022-09-19 19:39:00 -04:00
Shreya Malviya
393bec29e7
Agent: Remove comment from HTTPIslandAPIClient
2022-09-19 19:39:00 -04:00
Shreya Malviya
365376a190
Agent: Change exception handling and log message in ControlClient.get_pba_file()
2022-09-19 19:39:00 -04:00
Shreya Malviya
d07760fe60
Agent: Make HTTPIslandAPIClient.send_log() and HTTPIslandAPIClient.get_pba_file() static
2022-09-19 19:39:00 -04:00
Shreya Malviya
8ab17a96e3
Agent: Fix functions defined in HTTPIslandAPIClient and use the handle_island_errors() decorator on them
2022-09-19 19:39:00 -04:00
Shreya Malviya
fa9225370e
Agent: Add handle_island_errors() decorator to http_island_api_client.py
2022-09-19 19:39:00 -04:00
Shreya Malviya
d188b06980
Agent: Implement HTTPIslandAPIClient.get_pba_file and use in ControlClient
2022-09-19 19:39:00 -04:00
Shreya Malviya
1b92ec78fb
Agent: Implement HTTPIslandAPIClient.send_log and use in ControlClient
2022-09-19 19:39:00 -04:00
Mike Salvatore
e674f3ab24
Merge branch '2292-modify-find-server' into develop
...
PR #2314
2022-09-19 14:42:33 -04:00
Mike Salvatore
b9576db426
UT: Fix broken tests for find_available_island_apis()
2022-09-19 14:21:17 -04:00
Mike Salvatore
753ac739b0
Agent: rename find_servers() -. find_available_island_apis()
2022-09-19 14:20:40 -04:00
Mike Salvatore
2ebb7621e3
Agent: Fix server selection logic
2022-09-19 14:05:34 -04:00
Mike Salvatore
9ea291a7fa
Agent: Fix crash when connecting to IPv4Address
...
socket.connect() needs a string, not IPv4Address, otherwise the thread
will crash.
2022-09-19 14:01:51 -04:00
Mike Salvatore
51ecf52d4b
Agent: Add an ID (int) to relay control message thread name
2022-09-19 14:01:08 -04:00
Mike Salvatore
c6a5e294df
Agent: Add a timeout to notify disconnect socket
2022-09-19 13:57:25 -04:00
Mike Salvatore
6563be8222
Agent: Remove unnecessary local variable
2022-09-19 12:16:20 -04:00
Mike Salvatore
db75806a08
Agent: Rename _get_server() -> _connect_to_island_api()
2022-09-19 12:13:03 -04:00
Mike Salvatore
9a1b5b67b5
Agent: Default self._relay to None
2022-09-19 11:47:54 -04:00
Ilija Lazoroski
bc19b5ea93
Agent: Modify find_server to return tuple of server and IIslandAPIClient
2022-09-19 17:24:00 +02:00
Ilija Lazoroski
f4b47f8238
Agent: Use HTTPIslandAPIClient in find_server
2022-09-19 16:44:37 +02:00
Mike Salvatore
787af6ae1b
Agent: Fix send relay disconnect to unneeded relays
...
Since `find_server()` is parallelized, the iterator was completely
exhausted when `send_remove_from_waitlist_control_message_to_relays()`
was called, making it effectively a NOOP.
2022-09-19 16:40:04 +02:00
Shreya Malviya
9456a30bd9
Agent: Remove unnecessary logic in _check_if_island_server()
2022-09-19 16:40:04 +02:00
Shreya Malviya
69b26287b6
UT: Fix Island API errors' import in network/relay/test_utils.py
2022-09-19 16:40:04 +02:00
Shreya Malviya
8a4666fba2
Agent: Fix Island API client import in network/relay/utils.py
2022-09-19 16:40:04 +02:00
Ilija Lazoroski
11da608fe6
Agent: Modify find_server to use IslandApiClient
2022-09-19 16:40:04 +02:00
Mike Salvatore
310b58392f
Merge pull request #2313 from guardicore/2292-island-api-client
...
2292 island api client
2022-09-19 10:25:29 -04:00
Mike Salvatore
9f697e57d2
Merge pull request #2317 from guardicore/fix-zerologon
...
Fix zerologon
2022-09-19 10:16:19 -04:00
Ilija Lazoroski
2857e70fa2
Island: Change credentials stolen event subscriber argument name
2022-09-19 15:52:44 +02:00
Ilija Lazoroski
0c6997c147
BB: Get the secret value from credentials in ZerologonAnalyzer
2022-09-19 15:52:04 +02:00