Mike Salvatore
56ead43c11
Changelog: Add entry for #2299
2022-09-28 15:43:07 -04:00
Mike Salvatore
83f0ebfda4
Merge pull request #2356 from guardicore/2299-local-network-scan-ui-tooltip
...
Info box in UI for Scan Agent's networks
2022-09-28 15:41:09 -04:00
Mike Salvatore
e8449817ad
Island: Reword Scan Agent's networks tool tip wording
2022-09-28 15:38:05 -04:00
Mike Salvatore
1b4f72e5e3
Merge pull request #2364 from guardicore/2274-agent-logs-endpoint
...
Use new agent logs endpoint
2022-09-28 15:28:40 -04:00
Mike Salvatore
ff8c8bd0a0
Agent: Use PUT instead of POST to send agent logs
2022-09-28 15:24:46 -04:00
Kekoa Kaaikala
ab919f6d57
UI: Use colors from existing warning theme
2022-09-28 19:21:09 +00:00
Mike Salvatore
87d25d2ac8
Agent: Remove disused send_log() from ControlClient
2022-09-28 15:15:32 -04:00
Mike Salvatore
fab67d893f
Agent: Call IIslandAPIClient.send_log() directly
...
ControlClient is going away. It's been replaced by IIslandAPIClient.
Now is a good time to remove ControlClient.send_log()
2022-09-28 15:11:42 -04:00
Mike Salvatore
a1516535f9
Agent: Add InfectionMonkey._agent_id attribute
2022-09-28 15:08:59 -04:00
Shreya Malviya
21f01292f7
Agent: Fix type hint in IIslandAPIClient.send_log()
2022-09-28 15:03:32 -04:00
Shreya Malviya
8dc8a516d5
Agent: Fix type hint in HTTPIslandAPIClient.send_log()
2022-09-28 15:03:32 -04:00
Shreya Malviya
29c08ff40c
Agent: Simplify logic for sending logs in ControlClient
2022-09-28 15:03:32 -04:00
Shreya Malviya
8e3918cebe
UT: Fix island_api_client.send_log() calls in test_http_island_api_client.py
2022-09-28 15:03:32 -04:00
Shreya Malviya
539f4e1c82
Agent: Fix self._island_api_client.send_log() call in ControlClient
2022-09-28 15:03:32 -04:00
Shreya Malviya
74e30a2f88
Agent: Update API endpoint in HTTPIslandAPIClient.send_log()
2022-09-28 15:03:32 -04:00
Shreya Malviya
a9e1b99f2f
Agent: Add agent_id parameter to IIslandAPIClient.send_log()
2022-09-28 15:03:32 -04:00
Mike Salvatore
4f3fd6987e
Merge branch '2274-implement-new-agent-logs-endpoint' into develop
...
PR #2365
2022-09-28 14:19:21 -04:00
Kekoa Kaaikala
2f7f4fef9c
UI: Fix warning icon spacing
2022-09-28 18:18:35 +00:00
Mike Salvatore
05b8f2bb4b
Agent: Fix typo occured -> occurred
2022-09-28 14:17:04 -04:00
Mike Salvatore
f7f4440b61
Island: Fix typo occured -> occurred
2022-09-28 14:15:41 -04:00
Mike Salvatore
078574998a
Merge pull request #2363 from guardicore/2274-file-agent-log-repo
...
FileAgentLogRepository
2022-09-28 14:11:31 -04:00
Mike Salvatore
93b0fe0f6e
UT: Fix UnknownRecordError message in InMemoryAgentLogRepository
2022-09-28 14:10:30 -04:00
Kekoa Kaaikala
09cf2762f9
UI: Use yellow warning icon
2022-09-28 18:07:31 +00:00
Mike Salvatore
3202404e46
Changelog: Update agent-logs to use uuid instead of str
...
This was missed in 10954e0a6e
.
2022-09-28 14:06:50 -04:00
Mike Salvatore
c69a414a4d
Island: Fix typo occured -> occurred
2022-09-28 14:06:09 -04:00
Mike Salvatore
2e8afe218e
UT: Add test of multiple agent logs
2022-09-28 14:00:16 -04:00
Kekoa Kaaikala
4038622e83
UI: Remove redundant info from info box
2022-09-28 17:55:53 +00:00
Kekoa Kaaikala
05e9c2af62
UI: Add WarningBox
2022-09-28 17:40:56 +00:00
Mike Salvatore
412a58f1f2
UT: Use InMemoryFileRepository in test_file_agent_log_repository.py
2022-09-28 13:30:01 -04:00
Mike Salvatore
bddee026fe
UT: Add InMemoryFileRepository
2022-09-28 13:29:34 -04:00
Mike Salvatore
20d5fb3748
Island: Use re.Pattern for IFileRepository.delete_files_by_regex()
2022-09-28 13:29:07 -04:00
Mike Salvatore
0e2d82a7ad
UT: Add comment
2022-09-28 12:57:21 -04:00
Mike Salvatore
35d0cbc3b0
UT: Add type hints to test_file_agent_log_repository.py
2022-09-28 12:55:58 -04:00
Mike Salvatore
d49d16bc37
Island: Allow RepositoryErrors to be reraised
...
Previously, FileAgentLogRepository.get_agent_log() wrapped all errors as
RetrievalError, which is not necessarily correct. This commit allows all
repository errors raised by IFileRepository to be reraised, and all
other, unexpected errors to be reraised as RetrievalError.
2022-09-28 12:54:45 -04:00
Mike Salvatore
3c2ee32bdf
Island: Add RepositoryError
2022-09-28 12:21:41 -04:00
Ilija Lazoroski
10954e0a6e
Island: Use UUID for AgentSignals endpoint parameter
2022-09-28 16:45:28 +02:00
Ilija Lazoroski
1a8306af1b
Island: Change log level in AgentLogs endpoint
2022-09-28 16:43:33 +02:00
Ilija Lazoroski
d0293b4edc
UT: Move and rename StubAgentLogRepository to InMemoryAgentLogRepository
2022-09-28 16:42:23 +02:00
Ilija Lazoroski
e4d45b25cb
Island: AgentLogs.GET to return 404 if not agent log is found
2022-09-28 16:42:23 +02:00
Ilija Lazoroski
96662f3f66
UT: Fix AgentLogs tests
2022-09-28 16:41:30 +02:00
Ilija Lazoroski
b705e33af3
Island: Add AgentID type for agent_id to AgentLogs endpoint
2022-09-28 16:41:30 +02:00
Shreya Malviya
e374341ce1
UT: Fix tests in test_file_agent_log_repository.py
2022-09-28 20:01:13 +05:30
Shreya Malviya
8f46b3b9fd
Island: Make FileNotFoundError inherit UnknownRecordError instead of RetrievalError + add TODO for updating the rest of the code
2022-09-28 19:55:52 +05:30
Shreya Malviya
64990eea0e
UT: Update tests as per changes to file repositories
2022-09-28 19:50:17 +05:30
Shreya Malviya
7823759cf8
Island: delete_files_by_pattern -> delete_files_by_regex
2022-09-28 19:50:17 +05:30
Shreya Malviya
2707605622
Island: Add AGENT_LOG_FILE_NAME_REGEX and modify some logic in FileAgentLogRepository
2022-09-28 19:50:13 +05:30
Shreya Malviya
1c486c6571
Island: Modify delete_files_by_pattern -> delete_files_by_regex in LocalStorageFileRepository
2022-09-28 19:27:25 +05:30
Mike Salvatore
fa13ca8df8
Island: Rename agent_log -> log_contents
2022-09-28 09:31:38 -04:00
Shreya Malviya
c5d26749b7
Island: Change agent log file name in FileAgentLogRepository
2022-09-28 18:29:53 +05:30
Shreya Malviya
30d3124cb4
UT: Fix assert logic in test_delete_files_by_pattern()
2022-09-28 18:28:05 +05:30