diff --git a/monkey/monkey_island/cc/app.py b/monkey/monkey_island/cc/app.py index 509abaa88..282f93346 100644 --- a/monkey/monkey_island/cc/app.py +++ b/monkey/monkey_island/cc/app.py @@ -23,7 +23,6 @@ from monkey_island.cc.resources.blackbox.monkey_blackbox_endpoint import MonkeyB from monkey_island.cc.resources.blackbox.telemetry_blackbox_endpoint import ( TelemetryBlackboxEndpoint, ) -from monkey_island.cc.resources.configuration_export import ConfigurationExport from monkey_island.cc.resources.edge import Edge from monkey_island.cc.resources.exploitations.manual_exploitation import ManualExploitation from monkey_island.cc.resources.exploitations.monkey_exploitation import MonkeyExploitation @@ -153,7 +152,6 @@ def init_api_resources(api: FlaskDIWrapper): api.add_resource(IslandMode) api.add_resource(IslandConfiguration) - api.add_resource(ConfigurationExport) api.add_resource(AgentConfiguration) api.add_resource(AgentBinaries) api.add_resource(NetMap) diff --git a/monkey/monkey_island/cc/resources/configuration_export.py b/monkey/monkey_island/cc/resources/configuration_export.py deleted file mode 100644 index 0865a2558..000000000 --- a/monkey/monkey_island/cc/resources/configuration_export.py +++ /dev/null @@ -1,15 +0,0 @@ -from monkey_island.cc.resources.AbstractResource import AbstractResource -from monkey_island.cc.resources.request_authentication import jwt_required -from monkey_island.cc.services.config import ConfigService - - -class ConfigurationExport(AbstractResource): - urls = ["/api/configuration/export"] - - @jwt_required - def post(self): - plaintext_config = ConfigService.get_config() - - config_export = plaintext_config - - return {"config_export": config_export, "encrypted": False} diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/ExportConfigModal.tsx b/monkey/monkey_island/cc/ui/src/components/configuration-components/ExportConfigModal.tsx index d30438cbd..9dc785f73 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/ExportConfigModal.tsx +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/ExportConfigModal.tsx @@ -12,6 +12,7 @@ type Props = { } const ConfigExportModal = (props: Props) => { + // TODO: Change this endpoint to new agent-configuration endpoint const configExportEndpoint = '/api/configuration/export'; const [pass, setPass] = useState('');