Mike Salvatore
a97bd19358
build: remove unnecessary comments from appimage build
2021-03-31 08:27:41 -04:00
Mike Salvatore
3c113f7a89
build: work around limitations in appimage-builder
...
See https://github.com/AppImageCrafters/appimage-builder/issues/93 for
more information.
2021-03-31 08:27:41 -04:00
Mike Salvatore
eae5881b5f
build: prevent PyInstaller from being installed into the appimage
2021-03-31 08:27:41 -04:00
Mike Salvatore
1ac67cfe54
build: create ~/.monkey_island with 0700 permissions
2021-03-31 08:27:41 -04:00
Mike Salvatore
921c4d01ca
cc: resolve some flake8 warnings
2021-03-31 08:27:41 -04:00
Mike Salvatore
1fad6b4666
cc: remove unnecessary `config` property from environment_singleton
...
Introduced in b0d478473fe
2021-03-31 08:27:41 -04:00
Mike Salvatore
b5e8d895c8
cc: use data_dir when running monkey agent locally from island
2021-03-31 08:27:41 -04:00
Mike Salvatore
e1209dcb4c
cc: add data_dir_abs_path property to EnvironmentConfig
...
EnvironmentConfig needs to handle environment variables and '~' in its
`data_dir` property. Other components that consume `data_dir` need
environment variables and '~' resolved to an absolute path. Add a
property called `data_dir_abs_path` that calculates the absolute path
from `data_dir`. Since `data_dir` remains unchanged, the
EnvironmentConfig can be saved to file without modifying the `data_dir`
option in the file.
2021-03-31 08:27:41 -04:00
Mike Salvatore
20a3d31852
build: add data_dir to standard server config in appimage build
2021-03-31 08:27:41 -04:00
Mike Salvatore
29c9c72ef3
cc: rename server_config_data_dir.json -> server_config_with_data_dir.json
2021-03-31 08:27:41 -04:00
Mike Salvatore
45367bb051
cc: add encrypt/decrypt test
2021-03-31 08:27:41 -04:00
Mike Salvatore
fdeec3a634
cc: rename data_dir parameter in encryptor to password_file_dir
2021-03-31 08:27:41 -04:00
Mike Salvatore
115368f83d
cc: rename DATA_DIR constant in test to WITH_DATA_DIR
2021-03-31 08:27:41 -04:00
Mike Salvatore
044c656543
cc: rename encryptor() -> get_encryptor()
2021-03-31 08:27:41 -04:00
Mike Salvatore
a09cd8f497
cc: expanduser in data_dir path in Encryptor
2021-03-31 08:09:32 -04:00
Mike Salvatore
d265238107
cc: format encryptor.py with black
2021-03-31 08:09:32 -04:00
Mike Salvatore
3f6c268f40
cc: allow encryptor to store key file in variable locations
2021-03-31 08:09:32 -04:00
Mike Salvatore
438a2701d4
cc: add `data_dir` property to EnvironmentConfig
2021-03-31 07:50:12 -04:00
Mike Salvatore
2d971d95fc
build: select server and logger config at runtime in appimage
2021-03-31 07:37:49 -04:00
VakarisZ
64018eb373
Extracted home environment mocking into a reusable fixture and added a todo, to move it to our fixture list
2021-03-31 07:37:49 -04:00
VakarisZ
ef1ef3475b
Extracted island argument parsing into a separate file
2021-03-31 07:37:49 -04:00
Mike Salvatore
21e0b5170b
cc: explicitly cast tmpdir to str in test_island_logger.py
2021-03-31 07:37:49 -04:00
Mike Salvatore
1f57610005
monkey_island.py: Add TODO to refactor argument handling
2021-03-31 07:37:49 -04:00
Mike Salvatore
e6bf085d12
address some flake8 errors
2021-03-31 07:37:49 -04:00
Mike Salvatore
5b781c50a4
cc: rename DEFAULT_LOGGING_CONFIG_PATH -> DEFAULT_LOGGER_CONFIG_PATH
2021-03-31 07:37:49 -04:00
Mike Salvatore
74e0dfddc5
cc: expand "~" in log file configuration
2021-03-31 07:37:49 -04:00
Mike Salvatore
8b3703816d
run black to format monkey_island.py
2021-03-31 07:37:49 -04:00
Mike Salvatore
e8bb2e6be2
cc: allow logger config to be specified at runtime
2021-03-31 07:37:49 -04:00
Mike Salvatore
4cb28db3bc
cc: reformat island_logger.py for readability
...
1. Adjusted some spacing and indentation
2. Reformatted with Black
2021-03-31 07:36:07 -04:00
Mike Salvatore
fef44bcd05
cc: deploy "develop" environment by default
2021-03-31 07:36:07 -04:00
Mike Salvatore
fc2f8eca45
cc: remove unnecessary private constants in consts.py
2021-03-31 07:33:47 -04:00
Mike Salvatore
ea14bcc2f6
cc: rename DEFAULT_STANDARD_SERVER_CONFIG -> DEFAULT_STANDARD_SERVER_CONFIG_PATH
2021-03-31 07:33:47 -04:00
Mike Salvatore
dd9e4bdefa
cc: address flake8 issues
2021-03-31 07:32:55 -04:00
Mike Salvatore
a057dec1fe
cc: use DEFAULT_SERVER_CONFIG_PATH in set_server_config
2021-03-31 07:27:25 -04:00
Mike Salvatore
98b64da896
cc: simplify constructor/factory interface for EnvironmentConfig
...
The `get_from_json()` and `get_from_dict()` static methods were really
just used for testing. The `EnvironmentConfig` class needs to store its
file path so it can wite to the file if needed. In practical usage,
`EnvironmentConfig` objects are initialized from files, so a simpler
interface is for its constructor to take a file path.
2021-03-31 07:27:25 -04:00
Mike Salvatore
4b5415ac0b
cc: fix server_config_generator behavior
2021-03-30 19:17:30 -04:00
Mike Salvatore
986219bd86
cc: rework EnvironmentConfig test
...
1. Rewrote in pytest
2. Removed reduntant tests
3. Added tests for add_user() and get_users()
2021-03-30 19:17:30 -04:00
Mike Salvatore
1d73f6e860
cc: move DEFAULT_SERVER_CONFIG_PATH to consts.py
2021-03-30 16:39:07 -04:00
Mike Salvatore
0230c26f19
cc: allow server_config.json to be specified at runtime
2021-03-30 16:34:29 -04:00
Mike Salvatore
12c40c3968
build: scripts for building MonkeyIsland as an appimage
...
Adds the basic scripts for generating an AppImage. Code changes are
required to allow Monkey Island to operate on a read-only filesystem.
2021-03-30 16:22:30 -04:00
Mike Salvatore
176ad01c14
Merge branch 'release/1.10.0' into develop
2021-03-30 15:59:20 -04:00
VakarisZ
6c034f2662
Updated checksums page
2021-03-29 12:29:53 -04:00
Mike Salvatore
fad19075a2
Add changelog checklist item to pull request template
2021-03-29 12:20:33 -04:00
Mike Salvatore
6693fad0b5
Add empty CHANGELOG.md file
2021-03-29 12:18:47 -04:00
Mike Salvatore
962621aaef
docs: add distro compatibility and focal instructions do debian setup
2021-03-29 12:12:50 -04:00
Mike Salvatore
52601bd735
job posting
2021-03-29 10:10:22 -04:00
Mike Salvatore
ad0ce3cdeb
Merge pull request #1052 from guardicore/vm-ip-config-docs
...
docs: update vmware OVA static IP configuration instructions
2021-03-26 12:25:32 -04:00
Mike Salvatore
5d68bc6e1d
docs: update vmware OVA static IP configuration instructions for v1.10.0
2021-03-26 12:23:43 -04:00
Mike Salvatore
e197008c2f
docs: update vmware OVA static IP configuration instructions for v1.9.0
2021-03-26 12:22:20 -04:00
Mike Salvatore
d6b2c4e1c4
docs: update docker setup guide for v1.10.0
2021-03-26 09:57:18 -04:00