Mike Salvatore
4a4c4324fb
UT: Add more propagation credentials
2022-07-11 14:13:24 -04:00
Mike Salvatore
1af21b372c
UT: Move PROPAGATION_CREDENTIALS into data_for_tests
2022-07-11 14:10:42 -04:00
Mike Salvatore
aaf1009504
UT: Add InMemoryCredentialsRepository
2022-07-11 13:54:06 -04:00
Mike Salvatore
2a2ab52da1
Island: Remove monkey_guid from StubPropagationCredentialsRepository
2022-07-11 13:30:14 -04:00
vakarisz
d437f02544
UT: Add stolen and configured credentials endpoint tests
2022-07-11 13:14:41 -04:00
vakarisz
c5ba5d444d
Island: Add returns to the post and get credential resources
2022-07-11 13:09:06 -04:00
vakarisz
872d062649
Island: Move propagation_credentials.py to credentials dir
2022-07-11 13:09:06 -04:00
vakarisz
0d06f8fd00
Island: Remove unnecessary comments in credentials
2022-07-11 13:09:06 -04:00
vakarisz
90b8b3fc4e
Island: Add StolenPropagationCredentials resource
2022-07-11 13:09:06 -04:00
vakarisz
e8cd88420b
Island: Add ConfiguredPropagationCredentials resource
2022-07-11 13:09:06 -04:00
Mike Salvatore
bda661c7ae
Merge pull request #2077 from guardicore/1965-modify-telemetry-processor
...
1965 modify telemetry processor
2022-07-11 12:30:28 -04:00
Mike Salvatore
d6655a8e2c
UT: Mark RepositoryEncryptor tests as slow
2022-07-11 12:27:19 -04:00
Mike Salvatore
1dba0639c5
Merge pull request #2076 from guardicore/fix-json-representations
...
Fix json representations
2022-07-11 12:22:50 -04:00
Ilija Lazoroski
9f060a2dd9
Island: Remove config credentials adders
2022-07-11 17:54:08 +02:00
Mike Salvatore
faf9cba182
Island: Add ResetKeyError
2022-07-11 11:53:07 -04:00
Ilija Lazoroski
d477dc0197
Island: Remove separate credentials telemetry parser
2022-07-11 17:50:23 +02:00
Mike Salvatore
e362875201
Island: Fix incomplete logic in RepositoryEncrypto.reset_key()
2022-07-11 11:38:23 -04:00
Ilija Lazoroski
e816f80846
Island: Resolve CredentialsParser in DI
...
* It also changes telemetry processing functions to use
CredentialsParser object. This will be refactored!
2022-07-11 17:25:21 +02:00
Ilija Lazoroski
9d904fa981
Island: Add None as telemetry processing func for Credentials
2022-07-11 17:24:20 +02:00
Ilija Lazoroski
2ad2d94746
Island: Remove from_credentials in StolenCredentials model
2022-07-11 17:22:55 +02:00
Mike Salvatore
5c65d581b5
Island: Add UnlockError
2022-07-11 11:21:43 -04:00
Ilija Lazoroski
e5702032d9
Island: Use ICredentialsRepository in credentials telemetry processing
2022-07-11 17:21:39 +02:00
Mike Salvatore
0356596a41
Island: Add ILockableEncryptor.reset_key()
2022-07-11 11:05:47 -04:00
Mike Salvatore
92c9ad3c71
Island: Add note to DataStoreEncryptor
2022-07-11 10:53:49 -04:00
Mike Salvatore
c7257cf000
Island: Add RepositoryEncryptor
2022-07-11 10:53:49 -04:00
Mike Salvatore
bd2d79fd43
Island: Add ILockableEncryptor
2022-07-11 10:53:47 -04:00
Mike Salvatore
54c1eef309
Island: Make IEncryptor interface consistent
...
An IEncryptor could take Any type and encrypt it, returning Any other
type. This is a poorly defined interface and, IIRC, it was defined this
way so some encryptors could take strings and others could take bytes.
This commit modifies the interface so that it accepts and returns bytes
in all cases. If a string encryptor is needed for convenience, we can
add IStringEncryptor and write a decorator that wraps IEncryptors.
2022-07-11 10:01:37 -04:00
vakarisz
33f15ff297
UT: Rename mock to bogus in test_representations.py
2022-07-11 16:55:13 +03:00
vakarisz
fe6e3d75b5
Island, UT: Handle tuples in representations.py
2022-07-11 16:53:43 +03:00
Mike Salvatore
f7e632025f
Island: Reformat IEncryptor docstrings
2022-07-11 09:29:02 -04:00
Mike Salvatore
a733886365
Merge pull request #2075 from guardicore/1965-mongo-credentials-repository
...
1965 mongo credentials repository
2022-07-11 09:28:00 -04:00
Ilija Lazoroski
ae3357a1b6
UT: Remove removal of collection in MongoCredentialsRepository
2022-07-11 15:09:10 +02:00
Ilija Lazoroski
4dd4b38fc9
UT: Use Credentials object instead of dict in MongoCredentialsRepository
2022-07-11 15:04:29 +02:00
Mike Salvatore
14cbf07a21
Island: Register mongo client as instance, not convention
2022-07-11 09:02:57 -04:00
vakarisz
da9f3c97ed
Island: Fix representations.py to encode lists and objects
...
Previously lists and objects didn't get encoded. This forced explicit encoding on the endpoints, which is not necessary
2022-07-11 15:44:27 +03:00
Ilija Lazoroski
b7786e2d0a
Island: Register mongo client in DI container
2022-07-11 14:24:57 +02:00
Mike Salvatore
0bddef7078
Island: Add pymongo as an explicit dependency
2022-07-11 08:10:58 -04:00
Mike Salvatore
088ec94269
Island: Rename _delete_collection -> _remove_credentials_fom_collection
2022-07-11 08:02:20 -04:00
Mike Salvatore
8a7e89e733
Common: Fix minor grammar mistake
2022-07-11 07:58:18 -04:00
Ilija Lazoroski
efb12df483
Island: Build MongoCredentialsRepository with a mongo connection
2022-07-11 12:41:23 +02:00
Ilija Lazoroski
1b1bd7fcc2
UT: Use mongomock in MongoCredentialsRepository
2022-07-11 12:26:00 +02:00
Ilija Lazoroski
4226cb5b9e
Island: Move error handling to private methods in
...
MongoCredentialsRepository
2022-07-11 12:25:08 +02:00
Ilija Lazoroski
c48b38fb01
Island: Refactor MongoCredentialsRepository
...
* Remove code duplication
* Init with PyMongo object
2022-07-08 19:20:25 +02:00
Ilija Lazoroski
c808d50948
Island: Add note to fix duplication of Credentials in database
2022-07-08 17:50:18 +02:00
Ilija Lazoroski
45a6693263
Island: Register MongoCredentialsRepository in DI container
2022-07-08 17:34:45 +02:00
Ilija Lazoroski
8ff8ad1f17
Island: Modify MongoCredentialsRepository
2022-07-08 17:32:28 +02:00
Ilija Lazoroski
7062aaf261
Common: Add to_mapping in Credentials
2022-07-08 17:26:23 +02:00
Mike Salvatore
cd839884eb
Merge pull request #2070 from guardicore/2003-remove-unused-endpoints
...
2003 remove unused endpoints
2022-07-08 09:12:12 -04:00
Mike Salvatore
3f04aaa383
Merge pull request #2068 from guardicore/1965-deserialize-credentials-array
...
1965 deserialize credentials array
2022-07-08 08:33:14 -04:00
vakarisz
ea7b816264
Changelog: Add entries about changed configuration
2022-07-08 15:16:59 +03:00