Mike Salvatore
fc24d80410
BB: Change agent log file name
...
Use underscores to improve readability
2022-10-03 07:51:40 -04:00
Mike Salvatore
e369ef2933
BB: Remove disused MonkeyLog
2022-10-02 16:57:58 -04:00
Mike Salvatore
6a783d9c3e
BB: Use threading to download logs
...
Reduces time to download logs by approx. 40%, but may be unnecessary
after resolving https://github.com/guardicore/monkey/issues/2383
2022-10-02 16:57:56 -04:00
Mike Salvatore
e4155648c1
BB: Download agent logs from new endpoints
2022-10-02 14:23:01 -04:00
Mike Salvatore
07a6f49e8b
Island: Return empty str, not dict on 404 in AgentLogs.get()
2022-10-02 14:23:00 -04:00
Mike Salvatore
c706466cdd
BB: Add MonkeyIslandClient.get_agent_log()
2022-10-02 14:21:05 -04:00
Mike Salvatore
99c2c5c6ef
BB: Add MonkeyIslandClient.get_machines()
2022-10-02 14:20:49 -04:00
Mike Salvatore
b335601a05
BB: Add MonkeyIslandClient.get_agents()
2022-10-02 14:20:30 -04:00
Mike Salvatore
3db3df8bae
BB: Add a TODO about parse_log()
2022-10-01 19:21:54 -04:00
Mike Salvatore
de435e27ad
Merge branch '2268-update-reporting' into develop
...
PR #2367
2022-09-30 14:50:54 -04:00
Mike Salvatore
cefc90034f
UT: Add missing __init__.py files
2022-09-30 14:47:58 -04:00
Mike Salvatore
3cde0919e7
Common: Ignore valid-type on con{int,float}
...
mypy can't handle pydantic's conint and confloat. See
https://github.com/pydantic/pydantic/issues/239 and
https://github.com/pydantic/pydantic/issues/156 for more details.
2022-09-30 14:39:35 -04:00
Mike Salvatore
c29d90aa5f
Island: Use list comprehension instead of list(map())
2022-09-30 14:35:30 -04:00
Mike Salvatore
807193ece5
Island: Use list comprehension instead of map()
2022-09-30 14:29:31 -04:00
Kekoa Kaaikala
519f48b6d8
Island: Use ip address in scan report
2022-09-30 18:26:11 +00:00
Mike Salvatore
f9e74d4f03
Merge pull request #2381 from guardicore/2362-add-machines-endpoint
...
2362 add machines endpoint
2022-09-30 14:24:44 -04:00
Mike Salvatore
df1baeebe0
Island: Use list comprehension instead of map()
2022-09-30 14:22:54 -04:00
Mike Salvatore
b7566a805b
Island: Use list comprehension instead of map()
2022-09-30 14:22:32 -04:00
Kekoa Kaaikala
a2a6934a49
Changelog: Add entry for /api/machines
2022-09-30 18:11:21 +00:00
Kekoa Kaaikala
3409234a4d
UT: Address mypy errors due to get_url_for_resource
2022-09-30 18:11:21 +00:00
Kekoa Kaaikala
a3d2d7f6a1
UT: Add tests for Machines resource
2022-09-30 18:11:21 +00:00
Kekoa Kaaikala
f05f247417
Island: Hook up the /api/machines endpoint
2022-09-30 18:11:21 +00:00
Kekoa Kaaikala
eeca5fbea2
Island: Add resource for /api/machines endpoint
2022-09-30 18:11:21 +00:00
Kekoa Kaaikala
0516e1e015
Island: Add get_machines to IMachineRepository
2022-09-30 18:11:21 +00:00
vakarisz
1bf4407b20
UI: Remove temporarily unused import in SecurityReport.js
2022-09-30 18:08:23 +00:00
vakarisz
e8ed30660e
UT: Fix report test
2022-09-30 18:08:23 +00:00
vakaris_zilius
d0d08f7649
UI: Fix the rendering of scanned machines in UI
2022-09-30 18:08:23 +00:00
vakaris_zilius
9048f72030
Island: Convert scanned machines to json serializable data
2022-09-30 18:08:23 +00:00
vakaris_zilius
d974b03ab0
Common: Register PingScanEvent to event serializer
2022-09-30 18:08:23 +00:00
vakaris_zilius
550c375abc
Agent: Fix exception handling for failed delivery of agent events
...
If there's an exception while sending the event to the island it should be logged as exception, not warning (events are not being stored, that's a big no-no). Also, the log should contain proper information of stack trace, not event type
2022-09-30 18:08:23 +00:00
vakarisz
3d27e42ff3
Island: Simplify the report of scanned machines
2022-09-30 18:08:23 +00:00
vakarisz
9a82e46799
Island: Make machine model hashable
...
Machines can be hashed based on their ID. This allows us to add them to set for example and make sure no duplicate entries are there
2022-09-30 18:08:23 +00:00
Kekoa Kaaikala
f0f858eba5
UT: Fix bad values in test_report
2022-09-30 18:08:23 +00:00
Kekoa Kaaikala
f7a30e4608
Island: Raise errors if repositories do not exist
2022-09-30 18:08:23 +00:00
vakarisz
dd0c504743
UT: Add machines and node to report tests
2022-09-30 18:08:23 +00:00
Kekoa Kaaikala
bbd606501e
Island: Fix bug in reporting
2022-09-30 18:08:23 +00:00
Kekoa Kaaikala
2740100621
Island: Connect new ReportService dependencies
2022-09-30 18:08:23 +00:00
Kekoa Kaaikala
520b212c69
Island: Remove ReportService.get_all_displayed_nodes
2022-09-30 18:08:22 +00:00
Kekoa Kaaikala
8acf2d9e91
Island: Refactor ReportService.get_scanned
...
Update ReportService.get_scanned to use repositories instead of services
2022-09-30 18:08:22 +00:00
Kekoa Kaaikala
49c6839c10
Island: Add ReportService.get_accessible_machines
2022-09-30 18:08:22 +00:00
Kekoa Kaaikala
85a5cb3209
Island: Add ReportService.get_all_machines
2022-09-30 18:08:22 +00:00
Kekoa Kaaikala
8537f1fcb7
Island: Add get_machines to IMachineRepository
2022-09-30 18:08:13 +00:00
Mike Salvatore
63447b759a
Island: Add missing @jwt_required to `GET /api/agents`
2022-09-30 13:19:41 -04:00
Mike Salvatore
a6d2f45cbb
Merge pull request #2380 from guardicore/2362-get-agents
...
2362 get agents
2022-09-30 12:37:23 -04:00
Mike Salvatore
521411c7fc
Common: Register TCPScanEvent serializer
2022-09-30 12:35:57 -04:00
vakaris_zilius
c16c093083
Common: Register PingScanEvent to event serializer
2022-09-30 12:33:22 -04:00
Mike Salvatore
9a6300481c
Merge pull request #2377 from guardicore/2267-publish-tcp-scan-event
...
Publish TCPScanEvent
2022-09-30 11:59:51 -04:00
Mike Salvatore
4987dddc0c
Agent: Use dict comprehension instead of for
2022-09-30 11:53:53 -04:00
Mike Salvatore
68b288e5b3
Island: Add `GET /api/agents/`
2022-09-30 11:07:33 -04:00
Ilija Lazoroski
3f89e50930
UT: Fix tcp_scanner tests to patch the time function
2022-09-30 16:51:53 +02:00