Commit Graph

8875 Commits

Author SHA1 Message Date
Ilija Lazoroski af1ab34aa3 Island: Return a list in Propagation Credentials endpoint 2022-07-07 10:48:12 +02:00
Ilija Lazoroski 777897cb74 UT: Compare actual propagation credentials vs expected 2022-07-07 10:48:12 +02:00
Ilija Lazoroski 794277797b UT: Rename PropagationCredentialsRepository to
StubPropagationCredentialsRepository
2022-07-07 10:48:12 +02:00
Ilija Lazoroski a27edfa94b UT: Add test for GET propagation credentials 2022-07-07 10:48:12 +02:00
Ilija Lazoroski dda5e37764 Island: Remove unneeded function from ConfigService
* get_flat_config
* get_config_propagation_credentials_from_flat_config
2022-07-07 10:47:54 +02:00
Ilija Lazoroski dc1eb5f12c Island: Use ICredentialsRepository to retrieve propagation credentials 2022-07-07 10:39:47 +02:00
Ilija Lazoroski 45b2558ddd Island: Import ICredentialsRepository from __init__ 2022-07-07 10:39:47 +02:00
Mike Salvatore 833513e383
Merge pull request #2056 from guardicore/2003-remove-old-schema
Remove old config schema
2022-07-06 11:03:58 -04:00
Ilija Lazoroski 439b4aca86 Island: Reformat ConfigService using black 2022-07-06 16:43:52 +02:00
Ilija Lazoroski 522376b065 Swimm: Remove two swimm units
* Add details about your new PBA
* Add a new Post Breach Action
2022-07-06 16:40:19 +02:00
Ilija Lazoroski bbf40e446f Island: Remove default_config and validator function from ConfigService 2022-07-06 16:05:42 +02:00
Ilija Lazoroski 0cb8cfb078 Island: Remove typographic symbols 2022-07-06 16:05:42 +02:00
Ilija Lazoroski 9f0029d040 Common: Remove credential collector names and validation formats 2022-07-06 16:05:42 +02:00
Ilija Lazoroski 16e8443134 Island: Add TODO to return default config in reporting
Notes in services for not fixing the failing tests until we remove
the ConfigService
2022-07-06 16:05:42 +02:00
Shreya Malviya 9b23cc0bef UT: Remove tests related to config schema per attack technique 2022-07-06 16:05:42 +02:00
Shreya Malviya 98fbc7592c Island: Hardcode unscanned message for ATT&CK techniques
Remove logic for config schema per attack technique which set the unscanned message previously
2022-07-06 16:05:42 +02:00
Shreya Malviya cbc5e99140 Island: Add TODO to fix comment in Config model 2022-07-06 16:05:42 +02:00
Shreya Malviya 4eb7472977 Island: Remove functions from ConfigService that used the old config
schema

This breaks some stuff: the IslandConfiguration resource, the reset
config functionality, and probably some other things. However, this
isn't too much of a concern since all of this will be reimplemented in
the coming weeks. It's just really broken for now.
2022-07-06 16:05:42 +02:00
Shreya Malviya b883f502ed Island: Remove old configuration schema 2022-07-06 16:05:42 +02:00
Shreya Malviya 2d960fc4d2 Island: Remove old configuration schema's properties 2022-07-06 16:05:42 +02:00
Shreya Malviya ff17237ea7 Island: Remove old configuration schema's definitions 2022-07-06 16:05:42 +02: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