Commit Graph

8566 Commits

Author SHA1 Message Date
Mike Salvatore c503ceaa24 Project: Fix components list in refactor issue template 2022-05-31 12:02:12 -04:00
Mike Salvatore 549b5c35ae Project: Add a "refactor" issue template 2022-05-31 12:00:35 -04:00
Mike Salvatore 6cea0c9657
Merge pull request #1972 from guardicore/1966-i-file-storage
1966 renaming repositories
2022-05-31 09:59:59 -04:00
vakarisz 027c53a090 UT: Rename variables and fixtures to file repository 2022-05-31 16:13:00 +03:00
vakarisz 7caba8e399 Island: Rename FileSystemStorage to LocalStorageFileRepository 2022-05-31 15:57:38 +03:00
Shreya Malviya bcbb005ba0 Agent: Remove `should_stop` from configuration 2022-05-31 17:39:15 +05:30
Ilija Lazoroski f7c2e903b8 Island: Remove dropper target paths from the config 2022-05-31 14:00:05 +02:00
Ilija Lazoroski b8e943f7a8 Agent: Decouple dropper target paths from the config
* Dropper target paths are now part of infection_monkey.model
2022-05-31 13:59:08 +02:00
vakarisz 6c1fa80f42 Island: Rename Filesystem to FileSystem 2022-05-31 13:59:47 +03:00
vakarisz faf2259c59 Island: Rename repository file names to snake case 2022-05-31 12:59:38 +03:00
vakarisz 154d59b837 Island: Rename and move file storage classes 2022-05-31 12:45:45 +03:00
VakarisZ 6221a43fef
Merge pull request #1970 from guardicore/906-remove-config-arg
Agent: Remove --config argument
2022-05-30 16:20:11 +03:00
Ilija Lazoroski 49654d4dfe Island, Agent: Move dropper option from WormConfiguration to consts
* Remove dropper_set_date, dropper_date_reference_path_windows
  dropper_date_reference_path_linux from internal config in the Island
* Remove all references to these options from data for tests
2022-05-30 15:14:58 +02:00
vakarisz 7310cc0b15 Agent: Improve the commandline argument parsing 2022-05-30 16:04:10 +03:00
Ilija Lazoroski 8d225b5c1b Agent: Remove --config argument 2022-05-30 13:31:02 +02:00
VakarisZ b3710e4772
Merge pull request #1969 from guardicore/1967-fix-travis
Project: Fix travis build
2022-05-30 14:24:19 +03:00
Ilija Lazoroski 1bfffb0bfd Project: Fix travis build 2022-05-30 13:15:31 +02:00
Shreya Malviya bd40ca79bf
Merge pull request #1957 from guardicore/1941-api-spec
API review
2022-05-28 00:04:12 +05:30
Shreya Malviya 8b1a82814e Island: Update API spec comments after rebase 2022-05-27 23:59:20 +05:30
Shreya Malviya c54b3da86d Island: Minor changes to API spec comments as per CR 2022-05-27 23:46:35 +05:30
Mike Salvatore 8845588ec9 Island: Add a note about removing blackbox endpoints 2022-05-27 23:38:32 +05:30
Shreya Malviya e9f2c9b411 Island: Remove comment about 500 HTTP status code in clear_caches.py 2022-05-27 23:37:32 +05:30
Shreya Malviya dfe93feb0b Island: Update API spec comments after discussion 2022-05-27 23:37:27 +05:30
vakarisz ad7d726b52 Island: Add more comments about URL structure refactoring 2022-05-27 23:33:37 +05:30
Shreya Malviya d49f7c8e3d Island: Add comments about the current API design 2022-05-27 23:30:05 +05:30
ilija-lazoroski f1f2522e7c
Docs: Add initial Sphinx code documentation for the Island (#1964) 2022-05-26 11:20:15 -04:00
VakarisZ be3dd55313
Merge pull request #1955 from guardicore/1943-resource-urls
1943 resource urls
2022-05-25 14:42:46 +03:00
vakarisz 9a6d4ebf4f Island: Add default(empty) url list to AbstractResource 2022-05-25 14:42:28 +03:00
Mike Salvatore e86c63b135 Island: Raise error instead of assert in FlaskDIWrapper.add_resource() 2022-05-25 06:54:04 -04:00
vakarisz 0cdf84cac5 Island: Extract jwt_required decorator into separate file 2022-05-25 11:31:28 +03:00
vakarisz 84c78c4d8f Island: Reduce coupling between resources and flask 2022-05-25 11:19:24 +03:00
Mike Salvatore 2870df40da Island: Add TODO to resources.monkey.Monkey.patch() 2022-05-24 19:15:25 -04:00
Mike Salvatore 0cd6f15fc1 Island Add TODO to resources.monkey.Monkey.post() 2022-05-24 18:18:51 -04:00
Mike Salvatore 49b72e8651 Agent: Remove ControlChannel's dependency on WormConfiguration 2022-05-24 15:59:29 -04:00
vakarisz 87082f058d UT: Improve readability of test_app.py 2022-05-24 17:29:15 +03:00
vakarisz dd2aadb4c1 Island: Improve readability of FlasDIWrapper 2022-05-24 17:29:15 +03:00
vakarisz 0d0f4f63f3 UT: Reduce duplication of mock flask app initialization 2022-05-24 17:29:15 +03:00
Mike Salvatore 0dc1bfc9f5 Use strip() instead of rstrip() when checking duplicate URLs
See
https://github.com/guardicore/monkey/pull/1955#discussion_r879351986
for more details.
2022-05-24 17:29:15 +03:00
Mike Salvatore 4b9fe6a83d Island: Handle duplicate url parameter edge case in FlaskDIWrapper 2022-05-24 17:29:15 +03:00
Mike Salvatore 108c86d56c Island: Simplify logic for checking duplicate URLs 2022-05-24 17:29:15 +03:00
vakarisz 0344ee1a7c UT: Refactor hardcoded URL's to resource references 2022-05-24 17:29:15 +03:00
vakarisz 4069cc8084 UT: Add helper method to form URL's
This method forms url's based on parameters and allows us to avoid hard-coding url's in our unit tests
2022-05-24 17:29:15 +03:00
vakarisz 75318059e4 UT: Remove unnecessary comment in test_aws_command_runner.py 2022-05-24 17:29:15 +03:00
vakarisz f0a613eb75 Island: Move URL definitions to resource classes 2022-05-24 17:29:15 +03:00
vakarisz ce12d46012 Island: Define IResource interface and check for duplicate URL's 2022-05-24 17:29:15 +03:00
Mike Salvatore e0b444a68f Island: Rename IStolenCredentials.py -> IStolenCredentialsRepository.py 2022-05-24 08:30:23 -04:00
VakarisZ 23c2b42d5c
Merge pull request #1950 from guardicore/1940-dal-layer
Island: Define repository interfaces
2022-05-24 14:00:38 +03:00
vakarisz 1077a84623 Project: Ignore unused classes created for dal layer 2022-05-24 10:27:07 +03:00
vakarisz e32689a2b0 Island: Fix IAttackRepository class name 2022-05-24 10:22:16 +03:00
vakarisz f43e76aca5 Island: Remove ITelemStoreRepository.py
Refactoring it is not worth it because we're not sure about the performance solution we'll need after the refactoring
2022-05-20 17:43:48 +03:00