Commit Graph

8186 Commits

Author SHA1 Message Date
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
Shreya Malviya 36faa9f5a3 Build: Update MongoDB links in install_mongo.sh 2022-05-11 16:21:32 +05:30
VakarisZ b9f71cd41c
Merge pull request #1936 from guardicore/1883-setup-docs-linux
Add documentation to run IM as service on boot
2022-05-11 12:26:34 +03:00
Shreya Malviya 7e997b5403 Docs: Add instructions about root permissions for AppImage systemd unit installation 2022-05-11 13:32:35 +05:30
Shreya Malviya 0c95f66782 Docs: Add instructions to run IM as service on boot through the AppImage 2022-05-10 18:56:34 +05:30
Mike Salvatore 68d709c158 Deploy: Use `npm run dev` instead of `npm run dist`
`dev` is significantly faster than `dist`. `dist` uses a source mapping
algorithm that's good for production, but much slower than the one used
by `dev`. See https://github.com/guardicore/monkey/issues/1879 for more
details.
2022-05-10 08:15:22 -04:00
Shreya Malviya 28f60d51ff
Island: Use lock when creating an edge in the db
Fixes #1917
PR #1932
2022-05-09 06:28:11 -04:00
Mike Salvatore 174392848f Merge pull request #1929 from 'EliaOnceAgain:1883/install_service' 2022-05-05 11:05:20 -04:00
Mike Salvatore fc96e3aced Build: Switch order of user_exists() and exit_if_user_doesnt_exist() 2022-05-05 11:03:48 -04:00
Mike Salvatore d5bb94f1a8 Build: Make error message formatting consistent 2022-05-05 11:03:48 -04:00
Mike Salvatore 019bc56a73 Build: Handle empty usernames 2022-05-05 11:03:48 -04:00
Mike Salvatore 0f133d0b35 Build: Improve echo in install-infection-monkey-service.sh 2022-05-05 11:03:48 -04:00
Mike Salvatore 56bdbe5ac6 Build: Rename move_appimage() -> copy_appimage() 2022-05-05 11:03:48 -04:00
Mike Salvatore e1b053f000 Build: Move move_appimage() for improved readability 2022-05-05 11:03:48 -04:00
Mike Salvatore 88eb9dbe81 Build: Extract function install_systemd_unit() 2022-05-05 11:03:48 -04:00
Mike Salvatore a81462e617 Build: Use writable location for temporary systemd unit file
As set, the $SCRIPT_DIR was read-only (since the AppImage's squashfs is
readonly). Use $PWD instead.
2022-05-05 11:03:48 -04:00
Mike Salvatore 27ac518f2e Build: Set umask before writing temporary systemd unit file 2022-05-05 11:03:48 -04:00
Mike Salvatore 02ba8361a9 Build: Extract function exit_if_user_doesnt_exist() 2022-05-05 11:03:48 -04:00
Mike Salvatore 2a18e3e1bf Build: Remove unnecessary assert_parameter_supplied() 2022-05-05 11:03:48 -04:00
Mike Salvatore 7e039f73ff Build: Ensure either --install or --uninstall are specified 2022-05-05 11:03:48 -04:00
Mike Salvatore 6d50814c19 Build: Make --install and --uninstall mutually exclusive 2022-05-05 11:03:48 -04:00
Mike Salvatore ed58ca6950 Build: Rename $uname -> $username in AppImage installation script
"uname" could refer to the `uname` command (short for unix name).
"username" more clearly communicates the variable's purpose.
2022-05-05 11:03:48 -04:00
EliaOnceAgain 0287f58d8d Build: Use $APPIMAGE instead of --path during service installation 2022-05-05 11:02:56 -04:00
EliaOnceAgain 02916a25f3 Build: Check for the 'service' argument in AppRun 2022-05-05 11:02:35 -04:00
EliaOnceAgain 1c702b28ba Build: Include install-infection-monkey-service.sh in the AppImage 2022-05-05 11:02:28 -04:00
EliaOnceAgain 6dfaf5ec74 Deploy: Move deployment_scripts/install-infection-monkey-service.sh to build_script/appimage/ 2022-05-05 11:01:47 -04:00
Mike Salvatore d5f93d21b7
Merge pull request #1927 from guardicore/1921-fix-flaky-bb-tests
1921 fix flaky bb tests
2022-05-04 13:28:04 -04:00
Mike Salvatore 61793d56cf BB: Add a note about clearing tomcat sessions 2022-05-04 10:32:23 -04:00
Mike Salvatore 2f3c08cb77 BB: Add a note about setting java.security.egd for tomcat 2022-05-04 10:32:21 -04:00
Mike Salvatore 17db25b00b Agent: Log MSSQL error when authentication fails 2022-05-03 13:58:13 -04:00
Mike Salvatore 2d685ef44a Agent: Log agent's GUID 2022-05-03 13:58:13 -04:00
Mike Salvatore 0fce4e88a5 Agent: Drop CREDENTIALS_POLL_PERIOD_SEC from 30 to 10 2022-05-03 13:58:13 -04:00
Ilija Lazoroski 86c6a55097 Island, UT: Fix file_utils paths 2022-05-03 10:45:12 -04:00
Mike Salvatore 8d65fa36f2
Merge pull request #1919 from guardicore/1636-long-aws-check
1636 long aws check
2022-05-02 09:53:46 -04:00
Mike Salvatore 3a98fdbf52 UT: Use MappingProxyType for defaults in get_test_aws_instance() 2022-05-02 09:50:56 -04:00
Mike Salvatore a466e97cb0 Island: Move AwsCmdRunner to monkey_island/cc/server_utils/ 2022-05-02 09:28:41 -04:00
Mike Salvatore ceebdea3a9 Island: Use aws_service.get_account_id() in AWSExporter 2022-05-02 09:21:02 -04:00
Mike Salvatore 56ea170808 Island: Add get_account_id() to aws_service 2022-05-02 09:20:41 -04:00
Mike Salvatore ae83c2e3e0 Island: Relocate aws_service from common to monkey_island 2022-05-02 09:16:59 -04:00
Mike Salvatore 2714617797 Agent: Use AwsInstance instead of aws_service 2022-05-02 09:10:37 -04:00
vakarisz e89589762e Common: Rever singleton from WeakValueDictionary to simple dictionary 2022-05-02 15:55:12 +03:00
vakarisz f3a5a7090b Agent, Island, Common: Refactor AwsService from class to package
This also changes AwsInstance from singleton and instead the aws_service package is used as one
2022-05-02 15:55:12 +03:00
vakarisz 7b2ff1e159 Common: Remove CloudInstance since aws is the only cloud supported
This change simplifies the codebase by removing unnecessary inheritance and nested directory structure
2022-05-02 15:55:12 +03:00
vakarisz c5a126ff13 UT: Fix AWS instance unit tests 2022-05-02 15:55:12 +03:00
vakarisz e51b760af0 Common: Improve singleton to use WeakValueDictionary 2022-05-02 15:55:12 +03:00
vakarisz cea49b6d50 Docs: Improve running on AWS ec2 documentation
Update the IAM role change screenshot and add a note about firewall rules
2022-05-02 15:55:12 +03:00