Mike Salvatore
6206196eda
UT: Fix formatting of test_island_mode.py
2022-06-30 15:16:18 -04:00
Mike Salvatore
ddc3f2012d
UI: Use new reset endpoints to reset all data
2022-06-30 14:50:44 -04:00
Mike Salvatore
e8f76f39e1
UI: Use new `/api/clear-simulation-data` endpoint
2022-06-30 14:50:25 -04:00
Mike Salvatore
9ece3c100b
Changelog: Add changelog entries for new endpoints
2022-06-30 14:48:48 -04:00
Mike Salvatore
8a52ad8951
Island: Add /api/clear-simulation-data
2022-06-30 14:46:24 -04:00
Mike Salvatore
301f2fc89c
UI: Use new "unset" island mode
2022-06-30 14:46:22 -04:00
Mike Salvatore
2b60b4ed81
Island: Remove comment in IslandMode resource
...
The HTTP response status codes seem reasonable.
2022-06-30 14:26:05 -04:00
Mike Salvatore
6fa52d0637
Island: Remove ModeNotSetError
2022-06-30 14:26:03 -04:00
Ilija Lazoroski
afbd3789e8
UI: Use the new JSON schema in the Configure page
2022-06-30 19:27:46 +02:00
Ilija Lazoroski
22bb423d0d
UI: Add propagation to the UI schema
2022-06-30 19:27:46 +02:00
Ilija Lazoroski
0b18d93869
UI: Change the configuration tabs per the new schema
2022-06-30 19:27:46 +02:00
Ilija Lazoroski
f6d0482c2e
UI: Initialize a new json schema
2022-06-30 19:27:45 +02:00
Mike Salvatore
d4c7b97229
Island: Add UNSET to IslandModeEnum
2022-06-30 13:12:26 -04:00
Mike Salvatore
6d4920e47f
Island: Add /api/reset-agent-configuration RPC endpoint
2022-06-30 13:12:25 -04:00
Mike Salvatore
03ec893e97
Island: Separate initialization of RESTful and RPC endpoints
2022-06-30 12:31:26 -04:00
Mike Salvatore
bcb97ce35d
Merge pull request #2052 from guardicore/2036-reset-repository
...
2036 reset repository
2022-06-30 12:20:44 -04:00
Mike Salvatore
41b1c56fd0
UT: Add reset_to_default() to InMemoryAgentConfigurationRepository
2022-06-30 12:18:45 -04:00
Mike Salvatore
e293639a22
Island: Add reset_to_default() to FileAgentConfigurationRepository
2022-06-30 12:18:43 -04:00
Mike Salvatore
aa7509e49f
Island: Add reset_to_default() to IAgentConfigurationRepository
2022-06-30 10:02:01 -04:00
Mike Salvatore
ebaa68ad51
Island: Add TODO about cryptography.fernet
2022-06-30 08:45:20 -04:00
Mike Salvatore
3d5d563164
Island: Add TODO about using secrets vs pycryptodome
2022-06-30 08:30:54 -04:00
VakarisZ
fe36f863b5
Merge pull request #2050 from guardicore/2002-config-encryption-in-ui
...
2002 config encryption in UI
2022-06-30 15:03:52 +03:00
vakarisz
9f0169e812
UI: Rename saveConfig to tryImport in ImportConfigModal.tsx
...
tryImport better reflects what the function is doing
2022-06-30 12:26:57 +03:00
vakarisz
f75f1ced68
UI: Simplify config import request handling
...
Statement if showPassword then showPassword is redundant
2022-06-30 12:11:47 +03:00
vakarisz
565f02a534
UI: Replace " with ' in ImportConfigModal.tsx
2022-06-30 12:10:00 +03:00
vakarisz
53626c3a79
UI: Replace " with ' in ExportConfigModal.tsx
2022-06-30 12:07:01 +03:00
vakarisz
37152c2589
UI: Change configuration import to validate and decrypt on UI
2022-06-30 11:32:03 +03:00
vakarisz
5a531bcb04
UI: Change config export to include metadata about encryption
...
New format of {metadata: {encrypted: true}, contents: {...}} will simplify the logic of configuration import since we'll know if it's encrypted beforehand
2022-06-30 11:32:03 +03:00
vakarisz
6cef18b92f
UI: Change ExportConfigModal.tsx to encrypt config on UI
2022-06-30 11:32:01 +03:00
vakarisz
20c68ff25c
UI: Submit config before exporting
...
Previously config was not getting submitted before exporting. This could cause a misunderstanding where user exports a different configuration to the one he sees on the screen
2022-06-30 11:31:14 +03:00
vakarisz
69ca2d541d
UI: Create password based encryptor using crypto-js library
...
Password based encryptor is required for configuration encryption
2022-06-30 11:31:14 +03:00
Mike Salvatore
8cb9c4463a
Island: Add note about #2049 to FileUpload resource
2022-06-28 13:18:58 -04:00
Shreya Malviya
c4d5e58486
Merge pull request #2048 from guardicore/2002-remove-backend-encryption
...
Remove backend encryption
2022-06-28 09:41:51 -07:00
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