Ilija Lazoroski
45884ff233
Agent: Use response.json() in ControlChannel
2022-07-21 14:46:49 +02:00
Ilija Lazoroski
282b8bbed2
UI: Remove console logging from ReformatHook
2022-07-21 13:51:27 +02:00
Ilija Lazoroski
b8c253c3e0
UI: Add state credentials to ExprotConfigModal
...
* Delete a advanced key from config
2022-07-21 13:49:31 +02:00
Ilija Lazoroski
c5c0fe2302
UI: Fix formatting of credentials
2022-07-21 13:49:03 +02:00
Ilija Lazoroski
7769ec4aa3
UI: Fix Import Config to use the new configuration
2022-07-21 13:46:25 +02:00
Ilija Lazoroski
ba05058ec2
UI: Fix Export Config to use the new configuration
2022-07-21 13:45:45 +02:00
Ilija Lazoroski
fec3df937b
UI: Add SensitiveTextInput to Passwords, LM and NTLM credentials input
2022-07-21 11:15:15 +02:00
Ilija Lazoroski
9fdbcc441d
UI: Check if any of the credentials are not null
2022-07-21 10:53:08 +02:00
Ilija Lazoroski
47f78d1a2d
Agent: Use response.text in ControlChannel
2022-07-21 10:52:35 +02:00
Ilija Lazoroski
6d372485fc
UI: Reformat advanced.keep_tunnel_open_time
2022-07-21 10:10:57 +02:00
Ilija Lazoroski
4f4bba23cf
UI: Use simplified credentials in ReformatHook.js
2022-07-21 10:10:57 +02:00
Ilija Lazoroski
3b691b5c7d
UI: Fingerprinter options needs to be mappings
2022-07-21 10:10:57 +02:00
Ilija Lazoroski
40cb73e7e8
UI: Fix up wrong message when submitting config
2022-07-21 10:10:57 +02:00
Ilija Lazoroski
d09958e079
UI: Clean up PropagationConfig
2022-07-21 10:10:57 +02:00
Ilija Lazoroski
cea1d1fa28
UI: Add fix for propagation tabs change
2022-07-21 10:10:57 +02:00
Ilija Lazoroski
7c9a95100a
UI: Fix credentials url in ConfigurePage
2022-07-21 10:10:57 +02:00
Ilija Lazoroski
55f95891e1
Island: Fix minor things in MongoCredentialsRepository and credentials
...
endpoint
2022-07-21 10:10:57 +02:00
vakarisz
0cee5ac00d
UI: Separate credential configuration and config
2022-07-21 10:10:57 +02:00
vakarisz
47a87e14e6
Island: Add a patch method for PropagationConfig
...
Patch method is required to change the whole collection with one request. We need to change all configured credentials for configuration use case
2022-07-21 10:10:57 +02:00
vakarisz
4b0f56d8d8
Island: Fix mongo_credentials_repository.py to use correct database
2022-07-21 10:10:57 +02:00
Mike Salvatore
c8ae719631
Island: Remove empty mode subpackage
2022-07-20 14:54:20 -04:00
Mike Salvatore
db9238826f
Island: Remove empty config_schema subpackage
2022-07-20 14:53:40 -04:00
Mike Salvatore
fde69c7297
Island: Remove empty authentication subpackage
2022-07-20 14:52:22 -04:00
Mike Salvatore
e93455031a
Merge pull request #2093 from guardicore/1965-credentials-report
...
1965 credentials report
2022-07-19 13:50:55 -04:00
Mike Salvatore
3794f735af
Island: Remove unnecessary type from docstring in KeyBasedEncryptor
2022-07-19 09:50:34 -04:00
Mike Salvatore
061c002c94
Island: Remove protected self._formatted_key member
2022-07-19 09:49:31 -04:00
Mike Salvatore
9654e869a7
Island: Modify error messages in EncryptionKey32Bytes
2022-07-19 19:17:18 +05:30
Shreya Malviya
2e443f229a
UT: Wrap encryption key with EncryptionKey32Bytes in test_key_based_encryptor.py
2022-07-19 19:17:18 +05:30
Shreya Malviya
37b8db6a6c
Island: Wrap missed encryption key with EncryptionKey32Bytes in DataStoreEncryptor
2022-07-19 19:17:18 +05:30
Shreya Malviya
6d6b7e8cba
Island: Remove unneeded docstring fields in KeyBasedEncryptor
2022-07-19 19:17:18 +05:30
Shreya Malviya
a7b4bbbd52
Island: Rename variable in KeyBasedEncryptor
2022-07-19 19:17:18 +05:30
Shreya Malviya
11aff1f7fe
UT: Add tests for EncryptionKey32Bytes
2022-07-19 19:17:18 +05:30
Shreya Malviya
6000fdcaf1
Island: Check type of 'key' in EncryptionKey32Bytes
2022-07-19 19:17:18 +05:30
Shreya Malviya
74cb986e36
Island: Remove SizeError and use ValueError
2022-07-19 19:17:18 +05:30
Shreya Malviya
7f60fb4419
Island: Wrap encryption keys with EncryptionKey32Bytes in RepositoryEncryptor and DataStoreEncryptor
2022-07-19 19:17:18 +05:30
Shreya Malviya
72222105d6
UT: Change key in test_key_based_encryptor.py (generated using secrets.token_bytes(32))
2022-07-19 19:17:18 +05:30
Shreya Malviya
4d31e0d56e
Island: Switch back to using secrets for encryption key generation instead of cryptography.fernet in DataStoreEncryptor and RepositoryEncryptor
2022-07-19 19:17:18 +05:30
Shreya Malviya
d022c65439
Island: Fix imports in encryption_key_types.py and key_based_encryptor.py
2022-07-19 19:17:18 +05:30
Shreya Malviya
80104381d7
Island: Use EncryptionKey32Bytes in KeyBasedEncryptor
2022-07-19 19:17:18 +05:30
Shreya Malviya
4e755bbd2f
Island: Move SizeError to its own file
2022-07-19 19:17:18 +05:30
Shreya Malviya
0111dea47f
Island: Move EncryptionKey32Bytes to its own file
2022-07-19 19:17:18 +05:30
Shreya Malviya
d55e7b1455
Island: Create custom type EncryptionKey32Bit
2022-07-19 19:17:18 +05:30
Shreya Malviya
cbe842029a
Island: Add details about what kind of key is acceptable in KeyBasedEncryptor
2022-07-19 19:17:18 +05:30
Shreya Malviya
bd1c788a4c
Island: Add docstrings to KeyBasedEncryptor
2022-07-19 19:17:18 +05:30
Shreya Malviya
ca420b8afc
UT: Modify test_key_based_encryptor so it doesn't rely on KeyBasedEncryptor._BLOCK_SIZE
2022-07-19 19:17:18 +05:30
Shreya Malviya
24a119eb81
Island: Remove ununsed _BLOCK_SIZE variable from KeyBasedEncryptor
2022-07-19 19:17:18 +05:30
Shreya Malviya
978057b289
Project: Remove pycryptodome as an Island dependency
2022-07-19 19:17:17 +05:30
Shreya Malviya
53e366a677
Island: Remove unused _KEY_LENGTH_BYTES variables from DataStoreEncryptor and RepositoryEncryptor
2022-07-19 14:51:58 +05:30
Shreya Malviya
f8eeda1e6f
Island: Use cryptography.fernet to generate key in DataStoreEncryptor
...
and RepositoryEncryptor
We changed our encryption code to use cryptography.fernet instead of
pycryptodome. Using secrets.token_bytes() with fernet was causing
padding and encoding issues. This is a quicker and easier solution, and
also probably more reliable since everything to do with encryption is
from the same module now.
2022-07-19 14:51:58 +05:30
Shreya Malviya
5eb77dcbb6
UT: Change key in test_key_based_encryptor.py to be URL safe (cryptography.fernet requires this)
2022-07-19 14:51:58 +05:30