Commit Graph

147 Commits

Author SHA1 Message Date
Shreya Malviya e2fed84985 Project: Fix import in Vulture allowlist 2022-09-16 08:58:02 -04:00
Shreya Malviya c7fef90cd5 Project: Fix Vulture allowlist entries 2022-09-16 08:58:02 -04:00
Shreya Malviya bf5e32a252 Project: Remove irrelevant Vulture allowlist entries 2022-09-16 08:58:02 -04:00
Kekoa Kaaikala f5e398c175 Island: Add MongoEventRepository 2022-09-14 17:45:41 +00:00
Mike Salvatore 0b5dd3832b
Merge pull request #2291 from guardicore/2180-save-event-to-repository
2180 save event to repository
2022-09-14 13:40:19 -04:00
Mike Salvatore f5711e2fab Island: Add StubbedEventRepository
A placeholder until MongoEventRepository is implemented
2022-09-14 13:35:49 -04:00
vakarisz b81f7ad69c Merge branch '2216-tcp-relay' into develop 2022-09-14 17:47:13 +03: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 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 c2437464c6 Island: Omit the mongo object ID from Agent query results 2022-09-14 09:10:06 -04:00
Mike Salvatore fa8736e2fe Island: Omit the mongo object ID from Machine query results 2022-09-14 09:05:42 -04:00
Ilija Lazoroski c54d1b89ab Island: Add IEventRepository 2022-09-14 13:26:27 +02:00
Ilija Lazoroski b129833e57 Island: Remove ITelemtryRepository 2022-09-14 06:13:29 -04:00
Ilija Lazoroski 88d65f40ae Project: Add PydanticEventSerializer to vulture_allowlist 2022-09-13 13:38:41 +02:00
Kekoa Kaaikala dcb77d6285 Agent: Remove MonkeyTunnel 2022-09-09 08:19:56 -04:00
Kekoa Kaaikala 732751f007 Project: Fix vulture warnings 2022-09-09 08:13:02 -04:00
Mike Salvatore 4bff110f35 Merge branch '2216-add-tcprelay' into tcp-relay
PR #2231
2022-09-09 08:12:50 -04:00
Mike Salvatore 68bc73d86a Merge branch 'i-node-repository' into develop 2022-09-07 10:25:00 -04:00
Mike Salvatore 5f874356b1 Island: Remove INetworkMapRepository
Replaced by monkey_island.cc.models.Node and INodeRepository
2022-09-07 10:22:54 -04:00
Mike Salvatore 8c69780f4e Island: Add INodeRepository 2022-09-07 10:22:54 -04:00
vakaris_zilius 895de8c720 Common: Delete IJSONSerializable.py
This interface is no longer used (replaced by pydantic objects)
2022-09-07 13:19:39 +00:00
vakaris_zilius ece4d9383e Agent, Common: Refactor pydantic credentials to use SecretStr 2022-09-07 11:48:33 +00:00
vakaris_zilius ed24108bfa Project: Add temporary IJSONSerializable ignore 2022-09-07 11:48:28 +00:00
vakarisz f868f03ea7 Common: Refactor credentials from marshmallow to pydantic 2022-09-07 11:47:53 +00:00
Mike Salvatore 205848f2a5 Project: Remove PyPubSubIslandEventQueue from vulture_allowlist.py 2022-09-06 15:13:35 -04:00
Mike Salvatore 166588d00d Project: Remove PyPubSubAgentEventQueue from vulture_allowlist.py 2022-09-06 15:12:37 -04:00
Shreya Malviya 8f35a43591 Project: Fix import path in Vulture allowlist 2022-09-06 19:05:14 +05:30
Shreya Malviya fb4bfb7be1 Project: Fix PyPubSubIslandEventQueue entries to Vulture allowlist 2022-09-06 13:25:59 +05:30
Shreya Malviya 122e09426e Project: Add IIslandEventQueue entries to Vulture allowlist 2022-09-06 12:08:06 +05:30
Shreya Malviya e1e4b054cf Project: Use correct file path in Vulture allowlist 2022-09-05 19:30:32 +05:30
Shreya Malviya 21815291a0 Project: Use correct variable in Vulture allowlist 2022-09-05 19:29:37 +05:30
Shreya Malviya e14c1ea5f3 Project: Use correct file path in Vulture allowlist 2022-09-05 19:29:37 +05:30
Mike Salvatore de5da88c22
Merge pull request #2238 from guardicore/agent-repository
Agent repository
2022-09-02 15:04:16 -04:00
Shreya Malviya 4017f094cf Project: Add entries to Vulture allowlist 2022-09-02 12:25:08 +05:30
Shreya Malviya 5b1558ce53 Project: Include classes in Vulture allowlist 2022-09-02 12:05:29 +05:30
Shreya Malviya 96f213d4ee Project: Add pydantic validators to Vulture allowlist 2022-09-02 12:05:08 +05:30
Mike Salvatore ccffd1eaee Project: Update vulture_allowlist.py for IAgentRepository changes 2022-09-01 12:43:45 -04:00
Ilija Lazoroski 508b811939 Agent: Rename on_user_connected to add_relay_user 2022-09-01 13:41:50 +02:00
Ilija Lazoroski 94fba0fdf0 Agent: Rename RelayUser.time to last_update_time 2022-09-01 10:17:13 +02:00
Ilija Lazoroski 302cdaac70 Agent: Use event.wait() when running TCPRelay 2022-09-01 09:57:46 +02:00
Mike Salvatore 973a82e087 Merge branch 'machine-repository' into develop
PR #2228
2022-08-31 10:54:54 -04:00
Mike Salvatore ba7dab26d7 Island: Refactor how Machine objects are managed by IMachineRepository
- Replace `create_machine()` with `get_new_id()`
- Replace `update_machine()` with `upsert_machine()`

Benefits:
    The repository doesn't store Machine objects that only have the ID
    populated (unless that is the caller's desire).

    Upsert instead of update allows the interface to be more permissive.
2022-08-31 10:17:20 -04:00
Kekoa Kaaikala 70a9251c5b Agent: Fix type hints 2022-08-30 13:44:32 +00:00
Mike Salvatore eb3fe21b11 Island: Redefine IMachineRepository 2022-08-29 19:27:14 -04:00
Mike Salvatore 9a95cfbc8b Project: Add machine_hardware_id to vulture_allowlist.py 2022-08-25 11:51:17 -04:00
Mike Salvatore 4769b0edc8 Project: Add fields from some models to vulture_allowlist.py 2022-08-19 11:31:14 -04:00
Mike Salvatore 54db99350d Island: Add CommunicationType Enum 2022-08-19 11:31:14 -04:00
Mike Salvatore b6e04074a4 Island: Make Machine.network_interfaces immutable 2022-08-19 11:31:14 -04:00
Mike Salvatore a4a4613a66 Island: Add a Machine model 2022-08-19 11:31:14 -04:00
Mike Salvatore 09474ac1fe Island: Add base models for pydantic classes 2022-08-19 11:31:11 -04:00