Shreya Malviya
430885ebd4
UT: Fix new pydantic configuration class names
2022-09-02 12:05:08 +05:30
Shreya Malviya
0d6e3809d7
Common: Rename all new pydantic configurations appropriately
2022-09-02 12:05:08 +05:30
Shreya Malviya
41e7cfb768
Common: Remove agent sub-configuration schemas
2022-09-02 12:05:08 +05:30
Shreya Malviya
f2c9952685
Common: Remove old sub-configurations using marshmallow
2022-09-02 12:05:08 +05:30
Shreya Malviya
1311fd5d27
Common: Remove old AgentConfiguration using marshmallow
2022-09-02 12:05:08 +05:30
Shreya Malviya
6d29829808
UT: Modify tests to use new pydantic configurations
...
TODO: Fix error handling and some assertions (tuple/list stuff)
2022-09-02 12:05:08 +05:30
Shreya Malviya
275237c3f7
Common: Inherit from MutableInfectionMonkeyBaseModel where missing in new pydantic configurations
2022-09-02 12:05:08 +05:30
Shreya Malviya
2f05d22780
Common: Create AgentConfiguration using pydantic
2022-09-02 12:05:08 +05:30
Shreya Malviya
b8914101a6
Common: Remove unused imports in agent_sub_configurations.py
2022-09-02 12:05:08 +05:30
Shreya Malviya
501f752248
Common: Create PropagationConfiguration using pydantic
2022-09-02 12:05:08 +05:30
Shreya Malviya
602604e408
Common: Create ExploitationConfiguration using pydantic
2022-09-02 12:05:08 +05:30
Shreya Malviya
b74f90fe9b
Common: Create ExploitationOptionsConfiguration using pydantic
2022-09-02 12:05:08 +05:30
Shreya Malviya
153c3e9b9f
Common: Create NetworkScanConfiguration using pydantic
2022-09-02 12:05:08 +05:30
Shreya Malviya
63a8e81c74
Common: Create TCPScanConfiguration using pydantic
2022-09-02 12:05:07 +05:30
Shreya Malviya
858b7650ac
Common: Create ICMPScanConfiguration using pydantic
2022-09-02 12:05:07 +05:30
Shreya Malviya
e7b0e6babf
Common: Create ScanTargetConfiguration using pydantic
2022-09-02 12:05:07 +05:30
Shreya Malviya
520183f42d
Common: Create PluginConfiguration using pydantic
2022-09-02 12:05:07 +05:30
Shreya Malviya
554a180fbd
Common: Create CustomPBAConfiguration using pydantic
2022-09-02 12:05:07 +05:30
Mike Salvatore
765ce858fb
Agent: Rename IAgentRepository -> IAgentBinaryRepository
...
PR #2239
2022-09-01 19:03:37 -04:00
Mike Salvatore
ccffd1eaee
Project: Update vulture_allowlist.py for IAgentRepository changes
2022-09-01 12:43:45 -04:00
Mike Salvatore
3ab800f119
Island: Add docstrings to the Agent model
2022-09-01 12:25:29 -04:00
Mike Salvatore
693ce9e486
Island: Implement MongoAgentRepository.reset()
2022-09-01 12:25:29 -04:00
Mike Salvatore
d854eb7576
Island: Implement MongoAgentRepository.upsert_agent()
2022-09-01 12:13:01 -04:00
Mike Salvatore
1745b76122
Island: Implement MongoAgentRepository.get_running_agents()
2022-09-01 10:38:01 -04:00
Mike Salvatore
ba228e56b6
Island: Implement MongoAgentRepository.get_agent_by_id()
2022-09-01 10:21:40 -04:00
Mike Salvatore
6f285ba80c
Island: Rename `id` parameter to `agent_id` in IAgentRepository
2022-09-01 10:21:40 -04:00
Mike Salvatore
f00268c4a1
Island: Add IAgentRepository.reset()
2022-09-01 10:21:40 -04:00
Mike Salvatore
1eefbdb2b1
Island: Allow Agent.parent_id to be None
2022-09-01 10:21:40 -04:00
Mike Salvatore
22701fc0a3
Island: Redefine IAgentRepository
2022-09-01 10:21:40 -04:00
Mike Salvatore
f79d2fd8a6
Island: Add AgentID type alias
2022-09-01 10:21:40 -04:00
Mike Salvatore
453f45e403
Merge pull request #2232 from guardicore/2218-get-network-interfaces
...
2218 get network interfaces
2022-08-31 15:54:13 -04:00
Kekoa Kaaikala
a954df3ed8
Agent: Replace get_local_network_interfaces
...
Replaced get_local_network_interfaces() with get_network_interfaces()
2022-08-31 19:25:42 +00: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
b10327af5c
Agent: Register agent interfaces
2022-08-30 15:36:30 +00:00
Mike Salvatore
4cbefedad2
Merge pull request #2222 from guardicore/2135-use-ipaddress
...
2135 use ipaddress
2022-08-30 10:04:21 -04:00
Kekoa Kaaikala
70a9251c5b
Agent: Fix type hints
2022-08-30 13:44:32 +00:00
Mike Salvatore
81128a4842
Island: Don't use Field() for simple defaults in Machine
2022-08-30 09:34:17 -04:00
Mike Salvatore
b538842e84
Island: Remove display_name from MongoMachineRepository._find_one()
2022-08-30 09:32:47 -04:00
Kekoa Kaaikala
fedfe4e45d
Agent: Use str(interface) instead of building string
2022-08-30 11:58:57 +00:00
Kekoa Kaaikala
e6663747eb
Agent: Use IPv4Interface's string
2022-08-30 11:36:51 +00:00
Kekoa Kaaikala
2b55c35a65
Agent: Use str() instead of .compressed
2022-08-30 11:36:51 +00:00
Kekoa Kaaikala
01c508e248
Agent: Replace NetworkInterface with IPv4Interface
2022-08-30 11:36:51 +00:00
Kekoa Kaaikala
f31ba824c6
UT: Fix tests
2022-08-30 11:36:51 +00:00
Kekoa Kaaikala
d8beba17fd
Agent: Update NetworkInterface to be IPv4Interface
2022-08-30 11:36:51 +00:00
Kekoa Kaaikala
75ba889f57
Agent: Fix typing issues
2022-08-30 11:36:51 +00:00
Kekoa Kaaikala
06ae6a8b90
Project: Add ipaddress types for mypy
2022-08-30 11:36:51 +00:00
Mike Salvatore
bf5e54ebc9
Island: Raise RemovalError from IMachineRepository.reset()
2022-08-30 07:34:20 -04:00
Mike Salvatore
383cfdfefe
Island: Rename `id_` parameter to `machine_id` in IMachineRepository
2022-08-30 07:30:41 -04:00
Mike Salvatore
0adf9d8467
Island: Add MongoMachineRepository
2022-08-30 05:03:47 -04:00