Commit Graph

10477 Commits

Author SHA1 Message Date
Shreya Malviya 74e17ef006 Agent: Rename IEventQueue -> IAgentEventQueue 2022-09-05 19:29:37 +05:30
Shreya Malviya 903d43fe26 Common: Rename IEventQueue -> IAgentEventQueue 2022-09-05 19:29:37 +05:30
Shreya Malviya f577e48d72 UT: Use AbstractAgentEvent in place of AbstractEvent 2022-09-05 19:29:37 +05:30
Shreya Malviya ce43a46a9c Common: Rename abstract_event.py -> abstract_agent_event.py 2022-09-05 19:29:32 +05:30
Shreya Malviya 76cf34b5f0 Common: Rename AbstractEvent -> AbstractAgentEvent 2022-09-05 19:00:20 +05:30
Kekoa Kaaikala 5a8d8ccad5 Agent: Add name to SocketsPipe thread 2022-09-02 20:07:22 +00:00
Kekoa Kaaikala 72144faefc Agent: Update TCPRelay to separate responsbilities 2022-09-02 19:58:01 +00:00
Kekoa Kaaikala bbc9cf16e6 Agent: Add RelayConnectionHandler 2022-09-02 19:17:43 +00:00
Mike Salvatore de5da88c22
Merge pull request #2238 from guardicore/agent-repository
Agent repository
2022-09-02 15:04:16 -04:00
Kekoa Kaaikala b179f602c4 Agent: Give TCPConnectionHandler thread a name 2022-09-02 15:05:19 +00:00
Mike Salvatore bfcab0f6d9 Agent: Make parent `None` for now
Fixes #2235
Fixes #2236
2022-09-02 08:12:23 -04:00
Shreya Malviya 3ced1d97d9
Merge pull request #2229 from guardicore/2217-pydantic-for-agent-configuration
Agent configuration with pydantic
2022-09-02 12:32:31 +05:30
Shreya Malviya 4017f094cf Project: Add entries to Vulture allowlist 2022-09-02 12:25:08 +05:30
Shreya Malviya c985337df0 BB: Fix configuration modification logic in all test configurations since TestConfiguration is a dataclass 2022-09-02 12:05:30 +05:30
Shreya Malviya daec8843af BB: Use positional arguments for PluginConfiguration object creation where missed in depth_1_a.py 2022-09-02 12:05:30 +05:30
Shreya Malviya 6cf62d48cb BB: Use `replace_agent_configuration()` and `replace_propagation_credentials()` for all test configuration modifications 2022-09-02 12:05:30 +05:30
Shreya Malviya 2352bb0d5e BB: Fix configuration modification logic in zerologon.py 2022-09-02 12:05:30 +05:30
Shreya Malviya ad6449507d BB: Fix configuration modification logic in wmi_mimikatz.py 2022-09-02 12:05:30 +05:30
Shreya Malviya a0d0f127f9 BB: Fix configuration modification logic in smb_pth.py 2022-09-02 12:05:30 +05:30
Shreya Malviya e564bd1072 BB: Fix configuration modification logic in powershell_credentials_reuse.py 2022-09-02 12:05:30 +05:30
Shreya Malviya 15fd1f9f72 BB: Fix configuration modification logic in depth_3_a.py 2022-09-02 12:05:30 +05:30
Shreya Malviya 0392cd5794 BB: Fix configuration modification logic in depth_2_a.py 2022-09-02 12:05:30 +05:30
Shreya Malviya a2b8338ac7 BB: Fix configuration modification logic in depth_1_a.py 2022-09-02 12:05:30 +05:30
Shreya Malviya 1abf2b7f03 BB: Add `simplify=True` when converting test agent configuration to dict in MonkeyIslandClient 2022-09-02 12:05:30 +05:30
Shreya Malviya 637023c568 BB: Create copy of agent configuration when updating it for different tests 2022-09-02 12:05:30 +05:30
Shreya Malviya 446524b5b8 BB: Use keyword arguments where missing in configuration objects' creation 2022-09-02 12:05:30 +05:30
Shreya Malviya c7ee48fff1 BB: Remove unneeded configuration replacing functions 2022-09-02 12:05:30 +05:30
Shreya Malviya a65415588f BB: Simplify logic in BB tests' configurations 2022-09-02 12:05:30 +05:30
Shreya Malviya ff52fbefe4 BB: Fix AgentConfiguration logic in MonkeyIslandClient 2022-09-02 12:05:30 +05:30
Shreya Malviya f841bc041b Agent: Fix AgentConfiguration object creation logic in ControlChannel.get_config() 2022-09-02 12:05:30 +05:30
Mike Salvatore 0f21ad2e09 Common: Allow 0 for keep_tunnel_open_time 2022-09-02 12:05:30 +05:30
Mike Salvatore 326d128be8 Common: Allow 0 for maximum_depth 2022-09-02 12:05:30 +05:30
Mike Salvatore 8d991f462f UT: Use kwargs instead of **dict in test_agent_configuration.py 2022-09-02 12:05:30 +05:30
Mike Salvatore 1444ce10c3 Common: Remove unneeded `import annotations` from agent_configuration 2022-09-02 12:05:30 +05:30
Shreya Malviya 46ee6de13e UT: Remove unneeded function `convert_all_lists_to_tuples_in_mapping()` 2022-09-02 12:05:30 +05:30
Shreya Malviya 9db1a19ad3 UT: Simplify assertion logic in common/agent_configuration/test_agent_configuration.py 2022-09-02 12:05:29 +05:30
Shreya Malviya 6460639f91 UT: Use `simplify=True` when converting configuration to dict 2022-09-02 12:05:29 +05:30
Shreya Malviya d5ee4c7f27 Island: Use `simplify=True` when converting configuration to dict 2022-09-02 12:05:29 +05:30
Shreya Malviya fa1620ebb9 UT: Add tests for checking that validators in ScanTargetConfiguration work 2022-09-02 12:05:29 +05:30
Shreya Malviya f7f0047868 UT: Simplify assertion logic in test_agent_configuration_endpoint 2022-09-02 12:05:29 +05:30
Shreya Malviya 5b1558ce53 Project: Include classes in Vulture allowlist 2022-09-02 12:05:29 +05:30
Shreya Malviya 6234263746 Island: Simplify configuration updating logic in PBAFileUpload 2022-09-02 12:05:29 +05:30
Shreya Malviya 4f599c3118 UT: Rename `convert_lists_to_tuples` -> `convert_all_lists_to_tuples_in_mapping` 2022-09-02 12:05:29 +05:30
Shreya Malviya 82d8f5bacd Island: Simplify JSON logic inFileAgentConfigurationRepository 2022-09-02 12:05:29 +05:30
Shreya Malviya eb207de919 UT: Convert lists to tuples before comparing values in configuration tests
Probably not the best way to do this
2022-09-02 12:05:29 +05:30
Shreya Malviya 1f77fd468a UT: Add function `convert_lists_to_tuples` to utils 2022-09-02 12:05:29 +05:30
Shreya Malviya 9b924c55b6 Common: Remove utils.InvalidConfigurationError 2022-09-02 12:05:29 +05:30
Shreya Malviya fe3706c0b4 Common: Remove agent_configuration.InvalidConfigurationError 2022-09-02 12:05:29 +05:30
Shreya Malviya dda79c0809 Common: Remove unneeded code for freezing lists to tuples 2022-09-02 12:05:29 +05:30
Shreya Malviya f11e2dc8a1 UT: Fix configuration logic to work with pydantic in `agent_configuration` fixture 2022-09-02 12:05:29 +05:30