Mike Salvatore
3f3494e5d4
Common: Move DIContainer._del_key() to code_utils
2022-07-06 10:01:26 -04:00
ilija-lazoroski
568a10e2f9
Merge pull request #2061 from guardicore/file-repository-decorators
...
File repository decorators
2022-07-06 15:18:45 +02:00
Mike Salvatore
bce20fb687
Merge pull request #2062 from guardicore/1965-common-credentials
...
1965 common credentials
2022-07-06 08:29:17 -04:00
Mike Salvatore
e4edfd8ded
Agent: Remove shallow i_puppet.credential_collection subpackage
2022-07-05 14:41:59 -04:00
Mike Salvatore
33b04934aa
Island: Use common.credentials.Credentials in ICredentialsRepository
2022-07-05 13:30:55 -04:00
Mike Salvatore
7bc8ed649a
Common: Add common.credentials package
...
Migrate all objects that represent credentials from their present home
in the agent to their new home in common. This allows these classes to
be shared by the island. Furthermore, it will simplify
serialization/deserialization and clear a path to remove other redundant
classes in the Island.
2022-07-05 13:28:17 -04:00
Mike Salvatore
bc1ff393b7
Project: Use Focal for travis builds
...
Xenial has been EOL for over a year. Use Focal instead.
2022-07-05 11:44:10 -04:00
Mike Salvatore
545f35710f
Island: Add class docstrings for IFileRepository decorators
2022-07-05 11:24:34 -04:00
Mike Salvatore
a8b54f69f9
Island: Use read/write lock in FileRepositoryLockingDecorator
2022-07-05 11:17:03 -04:00
Mike Salvatore
1efea21269
Merge pull request #2060 from guardicore/1965-modify-i-stolen-credentials-repository
...
Modify IStolenCredentialsRepository
2022-07-05 11:07:47 -04:00
Mike Salvatore
0ab30d02a2
Island: Add class docstring for ICredentialsRepository
2022-07-05 11:02:27 -04:00
Mike Salvatore
64e548957f
Island: Reorder methods in ICredentialsRepository
2022-07-05 10:59:28 -04:00
Mike Salvatore
cbed178549
Island: Reword docstrings in ICredentialsRepository
2022-07-05 10:57:36 -04:00
Mike Salvatore
035734992c
Island: Change parameter names in ICredentialsRepository.save_*()
2022-07-05 10:50:28 -04:00
Mike Salvatore
2736f058d7
Island: Fix docstring formatting in ICredentialsRepository
2022-07-05 10:50:07 -04:00
Mike Salvatore
48cc6d6dd2
Island: Add readerwriterlock as a dependency
2022-07-05 10:42:06 -04:00
Ilija Lazoroski
6695e5b4ac
Island: Modify IStolenCredentialsRepository
...
* Rename to ICredentialsRepository
* Add {get/remove/save}_{stolen/configured}_credentials
2022-07-05 16:25:39 +02:00
Mike Salvatore
4f6978c732
Island: Add TODO regarding gevent.lock()
2022-07-05 09:53:18 -04:00
ilija-lazoroski
8873ef891b
Merge pull request #2051 from guardicore/2003-define-new-json-schema
...
2003 define new json schema
2022-07-05 13:34:20 +02:00
vakarisz
d0612f06d8
UI: Fix incorrect allPluginNames in AdvancedMultiSelect.js
...
All plugin names were in fact only the initially selected values
2022-07-05 10:32:07 +03:00
Ilija Lazoroski
3bbbca783d
UI: Fix UiSchema manipulators to use payloads section
2022-07-04 15:33:23 +02:00
Ilija Lazoroski
a37157b086
UI: Rename custom PBA filename options
2022-07-04 14:47:19 +02:00
Ilija Lazoroski
66c2bc492c
UI: Fix custom pbas in the schema
2022-07-04 14:47:19 +02:00
vakarisz
a1f4a6978a
UI: Remove unneeded console logs from ConfigurePage.js
2022-07-04 15:23:38 +03:00
Ilija Lazoroski
51609e9491
UI: Fix missaligned items in propagation
2022-07-04 13:47:57 +02:00
vakarisz
df7e43d796
UI: Fix SafeOptionValidator.js for the new schema
2022-07-04 14:46:55 +03:00
Mike Salvatore
353605d672
Island: Reorder components in log statement
...
* Since file and function names differ wildly in length, moving the log
leve right after the timestamps makes the log easier for a human being
to parse.
* The length of function names can vary wildly. The 10 character padding
to attempt to align other parts of the log message just didn't achive
its goal. It made the log harder to read and added a lot of dead
space.
2022-07-04 07:23:21 -04:00
Mike Salvatore
df8132c86c
Island: Change the order of FileRepository decorators
...
The caching decorator was suppressing debug log messages. Reversing
their order resolves the issue.
2022-07-04 07:14:11 -04:00
Ilija Lazoroski
88663f5276
UI: Add defaults for the payloads section
2022-07-04 13:13:30 +02:00
Ilija Lazoroski
a4e66a0c9e
UI: Add ransomware to config schema
2022-07-04 13:13:30 +02:00
vakarisz
d527881770
UI: Fix info pane in AdvancedMultiSelect.js
2022-07-04 13:54:07 +03:00
vakarisz
20f091ff4e
UI: Fix reset button in AdvancedMultiSelect.js
...
Reset button will reset to all safe values
2022-07-04 13:00:36 +03:00
vakarisz
ed46538137
UI: Improve state contents in AdvancedMultiSelect.js
2022-07-04 12:37:35 +03:00
vakarisz
61eaa48988
UI: Fix formatting in UiSchema.js
2022-07-04 12:20:36 +03:00
vakarisz
7df10f7730
UI: Fix a bug in ConfigurePage.js responsible for lacking re-render
...
key property makes the component unique and causes a re-construction. This solves a bug where different configuration page tabs remain with the same data on switch
2022-07-04 12:20:36 +03:00
vakarisz
26f51d1540
UI: Fix a bug in ConfigurePage.js responsible for lacking re-render
...
key property makes the component unique and causes a re-construction. This solves a bug where different configuration page tabs remain with the same data on switch
2022-07-04 12:20:36 +03:00
vakarisz
ab720a5a55
UI: Refactor AdvancedMultiSelect.js to use props more
2022-07-04 12:20:36 +03:00
thanos
25369c6876
Docs: Fix TOC links in FAQ
2022-07-03 19:03:32 -04:00
Mike Salvatore
18f995919d
Island: Add TODO about read/write lock
2022-07-03 09:38:31 -04:00
Mike Salvatore
9cb79c119c
Island: Decorate the FileRepository for AgentBinaryRepository
2022-07-03 09:35:19 -04:00
Mike Salvatore
3c85a89702
Island: Change log level in FileRepositoryLoggingDecorator to debug
...
Most log statements in repositories should probably be at debug.
Services and resources could potentially log at info.
2022-07-02 20:04:10 -04:00
Mike Salvatore
6cc3689ab4
Island: Remove unnecesary logging from LocalStorageFileRepository
...
Most logging is now handled by FileRepositoryLoggingDecorator, which
makes the logging reusable across different implementations of
`IFileRepository`.
2022-07-02 20:02:53 -04:00
Mike Salvatore
a329177b49
Island: Decorate LocalStorageFileRepository
2022-07-02 19:59:50 -04:00
Mike Salvatore
9affe10f67
Island: Add FileRepositoryCachingDecorator
2022-07-02 19:59:43 -04:00
Mike Salvatore
d4883c6e44
Island: Specify "read-only" in IFileRepository.open_file() docstring
2022-07-02 10:32:12 -04:00
Mike Salvatore
e3b5e0c01a
Island: Add FileRepositoryLockingDecorator
2022-07-02 09:53:18 -04:00
Mike Salvatore
bc0c4a1c8e
Island: Add FileRepositoryLoggingDecorator
2022-07-02 09:50:34 -04:00
Mike Salvatore
c00249fc17
Island: Change FileNotFoundError import in LocalStorageFileRepository
2022-07-02 09:38:28 -04:00
Mike Salvatore
48ccf467e0
Island: Remove repository.file_storage subpackage
2022-07-02 09:32:37 -04:00
Shreya Malviya
6b15889e7d
Island: Remove old logic for resetting config
2022-07-01 20:15:03 -04:00