vakarisz
88c331d932
UT: Rename BogusClass to BogusSerializableClass
2022-07-12 16:13:18 +03:00
vakarisz
18a7a4ec1a
Island: Add typehints to APIEncoder
2022-07-12 16:12:13 +03:00
vakarisz
ba9dda8d10
UT: Add IJSONSerializable to representations test
2022-07-12 16:11:21 +03:00
vakarisz
d84382c7ac
UI: Fix bugs in ImportConfigModal and ImportConfigModal
2022-07-12 15:50:06 +03:00
Mike Salvatore
292887baf8
Island: Move IUserRepository to repository/ package
2022-07-12 08:14:41 -04:00
Mike Salvatore
7c98ca0004
Island: Rename JsonFileUserDatastore -> JSONFileUserRepository
2022-07-12 08:09:01 -04:00
Mike Salvatore
50d08c3aef
Island: Rename IUserDatastore -> IUserRepository
2022-07-12 08:07:00 -04:00
Mike Salvatore
96a7968565
Island: Make AuthenticationService explicitly stateful
2022-07-12 08:04:01 -04:00
vakarisz
4357251394
Island: Fix representations to not do nested json
2022-07-12 14:59:31 +03:00
Mike Salvatore
fb1a3bcd74
Island: Use HTTPStatus enum in new endpoints
2022-07-12 06:52:44 -04:00
vakarisz
f1e00dd3ee
Island: Simplify propagation credentials get return
2022-07-12 13:48:20 +03:00
vakarisz
43387dc1a5
Common: Use IJSONSerializable interface for credentials
2022-07-12 13:48:20 +03:00
vakarisz
4bbcffabd3
Island: Refactor representations.py to extend JSON encoder
2022-07-12 13:48:20 +03:00
vakarisz
3958ad3e92
Common: Add IJSONSerializable interface
2022-07-12 13:48:20 +03:00
Mike Salvatore
774b2c0116
Merge pull request #2073 from guardicore/1965-credential-endpoints
...
1965 credential endpoints
2022-07-12 06:45:39 -04:00
Mike Salvatore
d2e4fe6136
UT: Break up large unit test into smaller tests
2022-07-12 06:44:16 -04:00
vakarisz
bcd94773a0
Island: Add a check for unimplemented credential collections
2022-07-12 13:33:37 +03:00
Mike Salvatore
69d513b136
Merge pull request #2078 from guardicore/1965-repository-encryptor
...
1965 repository encryptor
2022-07-12 06:31:18 -04:00
vakarisz
a9e2dd2d3d
Island: Use collection url placeholder for propagation credentials
2022-07-12 12:39:16 +03:00
Mike Salvatore
75f3fb02ee
Island: Remove dependency from ILockableEncryptor -> IEncryptor
...
ILockableEncryptor adds additional constraints on when encrypt() or
decrypt() can be used. If ILockableEncryptor inherits from IEncryptor,
it will violate the Liskov Substitution Principle
2022-07-11 15:07:16 -04:00
Mike Salvatore
037e6619dd
UT: Remove disused StubPropagationCredentialsRepository
2022-07-11 14:58:22 -04:00
Mike Salvatore
db74ea013d
Island: Remove unnecessary resources/credentials subpackage
2022-07-11 14:58:21 -04:00
Mike Salvatore
7b1b9053e4
Island: Combine PropCredentials and ConfiguredPropagationCredentials
2022-07-11 14:53:36 -04:00
Mike Salvatore
a684b12dc3
Island: Combine PropagationCredentials and StolenPropagationCredentials
2022-07-11 14:31:04 -04:00
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