Commit Graph

8291 Commits

Author SHA1 Message Date
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
vakarisz cfcb252df3 Island: Improved naming of the network map interface 2022-05-20 17:42:14 +03:00
vakarisz ec4af2cc57 Island: Add INetMapRepository.py and a mock entities for it 2022-05-20 17:24:18 +03:00
Mike Salvatore ccc29e448c Build: Keep old conf during apt-get upgrade 2022-05-19 11:30:54 -04:00
vakarisz f2a4be8de0 Island: Rename /dal to /repository 2022-05-19 10:41:01 +03:00
vakarisz 3b0ec975d2 Island: Add comments in services and models
These comments explain/elaborate on changes needed for DAL implementation
2022-05-18 17:31:19 +03:00
vakarisz 4bbd998197 Island: Add remaining repository interfaces 2022-05-18 17:29:38 +03:00
vakarisz 8f048a9b34 Island: Delete IRepository.py, because it's split up 2022-05-18 17:28:26 +03:00
Ilija Lazoroski ca951af5d0 Island: Add ITelemStoreRepository interface 2022-05-18 13:44:23 +02:00
vakarisz e0b4037270 Island: Add notes/explanations/thoughs in the services 2022-05-18 13:03:24 +03:00
vakarisz 6438afbcd5 Island: Add a bunch of IRepository interfaces for data entities 2022-05-18 13:02:48 +03:00
vakarisz aaa3aade20 Island: Define repository interfaces for config and edge 2022-05-17 15:29:55 +03:00
Mike Salvatore ed2efbc0bf
Merge pull request #1947 from guardicore/1924-upgrade-mongodb
Upgrade MongoDB in build scripts
2022-05-12 12:05:02 -04:00
Ilija Lazoroski f9c4112c21 Project: Add windows os to TravisCI
Fixes #1939
PR #1945
2022-05-12 12:02:28 -04:00
Shreya Malviya 029ff379c1 Island: Add condition for Ubuntu 22.04 in mongo installation script 2022-05-12 19:12:50 +05:30
Shreya Malviya 3b10a91526 Island: Modify temporary mongodb zip path in linux mongo installation script 2022-05-12 19:12:50 +05:30
Shreya Malviya 8546330965 Changelog: Add entry for MongoDB upgrade 2022-05-12 19:12:47 +05:30
Shreya Malviya ae500131b9 Build: Update mongo download link for Windows 2022-05-12 17:14:49 +05:30
Shreya Malviya 3e5ae392c9 Build: Create separate mongo installation script for Windows 2022-05-12 17:03:38 +05:30
Mike Salvatore 77702fcfbd Merge branch '1928-aws-service-refactor' into develop
Resolves #1928
2022-05-12 07:23:47 -04:00
Mike Salvatore 95979e6e71
Merge pull request #1944 from guardicore/1928-report-exporter-removal
1928 report exporter removal
2022-05-12 07:17:52 -04:00
Mike Salvatore 592fb1538f Island: Remove disused Exporter class 2022-05-12 07:12:25 -04:00
Mike Salvatore 25cfa58c69 UI: Use single quotes instead of double quotes in AWSInstanceTable.js 2022-05-12 07:08:16 -04:00
Mike Salvatore e0cec77ec6
Merge pull request #1938 from guardicore/1781-rework-windows-agent-deletion
Mark monkey agent for deletion on boot
2022-05-12 06:50:49 -04:00
vakarisz 499fec2574 Island: Improve _aws_command_results_to_encodable_dict
By calling __dict__ we avoid the need to specify each dictionary key and make it the same as AWSCommandResults. This will allow for easier modification of AWSCommandResults.
2022-05-12 11:21:47 +03:00
vakarisz 70ae745a52 Island: Remove report exporter manager
We only have AWS report exporter, no point to keep this infrastructure
2022-05-12 09:22:03 +03:00