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
Ilija Lazoroski
08bc43e0c4
Changelog: Add entry for adding new AgentLogs endpoint
2022-09-28 14:57:09 +02:00
Ilija Lazoroski
546c44f501
UT: Add tests for AgentLogs endpoint
2022-09-28 14:55:37 +02:00
Ilija Lazoroski
89ae9824d0
Island: Add the new AgentLogs endpoint to the island
2022-09-28 14:53:24 +02:00
Ilija Lazoroski
543c063f7b
Island: Add AgentLogs endpoint
2022-09-28 14:52:19 +02:00
Shreya Malviya
f61e734d29
Island: Subscribe IAgentLogRepository.reset() to IslandEventTopic.CLEAR_SIMULATION_DATA
2022-09-28 17:53:30 +05:30
Shreya Malviya
cadf0d61d0
Island: Implement delete_files_by_pattern() in FileRepositoryCachingDecorator
2022-09-28 16:26:37 +05:30
Shreya Malviya
5f11008b40
Island: Implement delete_files_by_pattern() in FileRepositoryLockingDecorator
2022-09-28 16:25:13 +05:30
Shreya Malviya
d5b62651a0
Island: Implement delete_files_by_pattern() in FileRepositoryLoggingDecorator
2022-09-28 16:23:47 +05:30
Shreya Malviya
885a907287
UT: Add tests for delete_files_by_pattern() in LocalStorageFileRepository
2022-09-28 16:21:09 +05:30
Shreya Malviya
6aae63f9fc
UT: Add tests for FileAgentLogRepository
2022-09-28 16:10:55 +05:30
Shreya Malviya
c1a4641ffe
UT: Add delete_files_by_pattern() to SingleFileRepository and MockFileRepository
2022-09-28 16:10:30 +05:30
Shreya Malviya
e1d139fde4
Island: Add FileAgentLogRepository to cc/repository/__init__.py
2022-09-28 16:03:08 +05:30
Shreya Malviya
01d8875f22
Island: Register FileAgentLogRegister in DI container
2022-09-28 15:42:07 +05:30
Shreya Malviya
1c6cfa1ce6
Island: Add FileAgentLogRepository
2022-09-28 15:39:57 +05:30
Shreya Malviya
ce0affb1ed
Island: Implement delete_files_by_pattern() in LocalStorageFileRepository
2022-09-28 15:39:14 +05:30
Shreya Malviya
d9b55a5c21
Island: Add delete_files_by_pattern() to IFileRepository
2022-09-28 15:35:58 +05:30
Shreya Malviya
8a96598d10
UI: Remove trailing comma in SCAN_TARGET_CONFIGURATION_SCHEMA
2022-09-28 13:08:03 +05:30
Shreya Malviya
98d01b5324
UI: Reword in SCAN_TARGET_CONFIGURATION_SCHEMA's info_box_scan_my_networks
2022-09-28 12:52:49 +05:30
Shreya Malviya
793a401a33
UI: Move and reword description in SCAN_TARGET_CONFIGURATION_SCHEMA
2022-09-28 12:43:01 +05:30
Shreya Malviya
e32d5555fb
UI: Move segmentation section in network configuration to the end
2022-09-28 12:36:12 +05:30
Mike Salvatore
699f2210f4
Merge pull request #2359 from guardicore/2318-powershell-bb-fix
...
2318 powershell bb fix
2022-09-27 19:37:46 -04:00
Ilija Lazoroski
d7be8e2bc0
Island: Remove `log_contents` from Agent model
2022-09-27 12:52:24 -04:00
Kekoa Kaaikala
bf7544c47a
Common: Disable scan_my_networks by default
2022-09-27 15:43:43 +00:00
Kekoa Kaaikala
ea94da9725
Merge pull request #2357 from guardicore/2299-update-network-config-docs
...
Docs: Update network scanning documentation
2022-09-27 11:10:12 -04:00
Kekoa Kaaikala
e63409d1ad
Docs: Update paths for custom-scenario
2022-09-27 14:39:15 +00:00
vakarisz
26a5b4cf4d
BB: Delete "skip_powershell_reuse" mark
...
Not sure why we would want to skip this test specifically
2022-09-27 17:28:12 +03:00
vakarisz
164c0d6127
BB: Add network diagram for powershell credential reuse test
2022-09-27 17:11:08 +03:00
vakarisz
85c101aff9
BB: Remove 46 from depth 3 test suite as it's reserved for credential reuse
2022-09-27 17:06:39 +03:00
vakarisz
031a0ab426
BB: Change powershell credential reuse test to a dedicated machine
...
Island shouldn't be part of the test, so powershell credential reuse was moved to powershell 46(exploited via log4shell) and powershell 44(exploited via credential reuse from powershell 46)
2022-09-27 17:06:39 +03:00
Kekoa Kaaikala
036a382e95
Merge pull request #2354 from guardicore/2323-use-socketaddress-in-running_on_island
...
2323 use socketaddress in running on island
2022-09-27 09:44:04 -04:00
VakarisZ
9823301c3b
Merge pull request #2348 from guardicore/2299-rename-local-network-scan
...
Island: Rename local_network_scan
2022-09-27 16:00:36 +03:00
Shreya Malviya
085883d3a6
UI: Add info box for "Scan Agent's networks" option in configuration
2022-09-27 18:08:36 +05:30