Commit Graph

8875 Commits

Author SHA1 Message Date
Shreya Malviya 4e6aac2153 UT: Remove unused fixtures and data 2022-06-28 09:28:49 -07:00
Shreya Malviya 49fbb6a128
Merge pull request #2046 from guardicore/2002-remove-config-import-export-endpoints
2002 remove config import export endpoints
2022-06-28 08:38:24 -07:00
Ilija Lazoroski 9774bd6f3b Changelog: Add entry for removing configuration export/import endpoints 2022-06-28 08:34:12 -07:00
Ilija Lazoroski 50351c9e88 Island: Remove ConfigurationExport endpoint 2022-06-28 08:34:12 -07:00
Ilija Lazoroski de0ab88c3a Island: Remove ConfigurationImport endpoint 2022-06-28 08:34:12 -07:00
Shreya Malviya 17a9c85199 UT: Remove test file for ConfigurationImport
It only had tests related to encrypted configuration.
2022-06-28 08:32:59 -07:00
Shreya Malviya 9b4e6728b0 UT: Remove test file for PasswordBasedStringEncryptor 2022-06-28 08:32:59 -07:00
Shreya Malviya 5c5ae5bb0d Island: Modify ConfigurationImport and ConfigurationExport to work without PasswordBasedStringEncryptor 2022-06-28 08:32:59 -07:00
Shreya Malviya 3c41bada56 Island: Remove PasswordBasedStringEncryptor 2022-06-28 08:32:59 -07:00
Mike Salvatore 9f2d56259c Agent: Improve TCP port discovery log message 2022-06-27 17:37:25 -04:00
Mike Salvatore 596bacfa36
Merge pull request #2042 from guardicore/2001-use-new-configuration-endpoint
2001 use new configuration endpoint
2022-06-27 11:00:47 -04:00
Mike Salvatore 5a0d891c35
Merge pull request #2045 from guardicore/1960-configuration-object
1960 configuration object
2022-06-27 10:58:41 -04:00
Mike Salvatore cb112d5b4f Island: Require authentication for POST /api/agent-configuration
The agent should not be submitting new configurations to the Island. The
Island commands the agent, not the other way around.
2022-06-27 09:59:01 -04:00
Ilija Lazoroski 181ce399a1 Island: Remove GET method from Monkey endpoint
Also removes bunch of unused method from ConfigService
2022-06-27 09:53:56 -04:00
Ilija Lazoroski b564e71d89 Agent: Modify ControlChannel to use AgentConfiguration endpoint 2022-06-27 09:53:39 -04:00
Ilija Lazoroski 98a9fd3285 Island: Remove jwt_required from agent-configuration resource
Can't secure the endpoint because it is used by the agent
2022-06-27 09:51:42 -04:00
Mike Salvatore 13a7e4ea31 Project: Remove OperatingSystems enums from vulture allowlist 2022-06-27 09:37:20 -04:00
Mike Salvatore b49dfcf79d Island: Change error -> message in AgentConfiguration resource 2022-06-27 09:30:33 -04:00
Mike Salvatore 08bac8ef39 Island: Added "raises" to store_configuration() docstring 2022-06-27 09:24:32 -04:00
Mike Salvatore b5d7b800bb Agent: Add TODO about GUID 2022-06-27 09:15:26 -04:00
Mike Salvatore 2fbab063cd Common: Remove empty file 2022-06-27 09:12:37 -04:00
Mike Salvatore 851296d5fa UT: Remove disused automated_master_config 2022-06-27 09:09:07 -04:00
Mike Salvatore a0de4b8f31 Agent: Use derived current_depth in AutomatedMaster 2022-06-27 09:06:15 -04:00
vakarisz 4ef17ccc9b Agent: Replace ExploiterConfig with PluginConfig
ExploiterConfig was exact match of PluginConfig, so they got merged
2022-06-27 08:42:54 -04:00
Mike Salvatore 44a6197422
Merge pull request #2043 from guardicore/1960-deserialize-config
1960 deserialize config
2022-06-27 08:35:11 -04:00
Mike Salvatore e6d3854f74 Common: Remove DEFAULT_AGENT_CONFIGURATION_JSON
It's easier to maintain object than a JSON string for the default
configuration.
2022-06-27 08:23:54 -04:00
Mike Salvatore 90259c1b7a UT: Remove dependency on DEFAULT_AGENT_CONFIGURATION_JSON 2022-06-27 07:07:53 -04:00
Mike Salvatore bf1d360e50 UT: Remove disused DEFAULT_CONFIG 2022-06-27 06:56:16 -04:00
vakarisz 232d6ba344 Agent: Fix string formatting in http_tools.py
Move line 60 to f formatting from the old %s style
2022-06-27 11:20:27 +03:00
vakarisz c080f03011 Agent: Fix _filter_none_values to be a static method 2022-06-27 10:02:45 +03:00
vakarisz 7179f9128c Agent: Fix typehints in clear_command_history.py 2022-06-27 10:01:15 +03:00
vakarisz 4b7ab058c6 Agent: Fix typehints in _run_pbas of automated_master.py
Typehint was Mapping, when it was using and calling other methods with CustomPBAConfiguration
2022-06-27 09:36:56 +03:00
Mike Salvatore 3305325419 Island: Remove unnecessary aws_service import 2022-06-26 09:42:08 -04:00
Mike Salvatore e0047e485b Island: Reformat comments 2022-06-26 09:40:14 -04:00
Mike Salvatore fefd2daf2b Agent: Use Mapping instead of Dict 2022-06-24 19:21:48 -04:00
Mike Salvatore 503a0a833f Agent: Use Sequence instead of List for type hints 2022-06-24 19:19:51 -04:00
Mike Salvatore 4f7d8be6ba Agent: Use PluginConfiguration in _run_payload() 2022-06-24 15:35:41 -04:00
Mike Salvatore 8886ebc8b8 Agent: Remove unnecessary local variables 2022-06-24 15:33:47 -04:00
Mike Salvatore dc9b91d430 Agent: Use Iterable instead of List in type hint 2022-06-24 15:32:06 -04:00
Mike Salvatore 33ec4f7ae9 Agent: Log configuration when it's received from the Island 2022-06-24 15:16:43 -04:00
Mike Salvatore b219ca0917 UT: Fix line that was too long 2022-06-24 14:48:13 -04:00
Mike Salvatore 84fc78cbf8 UT: Remove unused imports from conftest.py 2022-06-24 14:47:15 -04:00
Mike Salvatore 4530cf3071 Project: Remove "Explain Changes" section that no one ever uses 2022-06-24 14:29:01 -04:00
Mike Salvatore 93ed7cf428
Merge pull request #2041 from guardicore/agent-configuration-construction
Agent configuration construction
2022-06-24 14:17:13 -04:00
Mike Salvatore 568eb4ff3b Common: Add docstrings to static methods in AgentConfiguration 2022-06-24 13:30:43 -04:00
Mike Salvatore 8cb045d635 Common: Fix incorrect type hints on AgentConfiguration.from_json() 2022-06-24 13:25:09 -04:00
Mike Salvatore 334d2a790f Common: Rename from_dict() -> from_mapping() 2022-06-24 13:25:01 -04:00
Mike Salvatore e2f365a1f9 Common: Rename dict_ -> config_dict 2022-06-24 13:22:41 -04:00
Mike Salvatore dbd0d3e0dd Common: Encapsulate MarshmallowError 2022-06-24 13:21:39 -04:00
Mike Salvatore 94524d124c Common: Add InvalidConfigurationError 2022-06-24 13:05:16 -04:00