Shreya Malviya
5d8db4b112
Update log message in monkey/monkey_island/cc/environment/utils.py
...
Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
2021-06-10 17:03:01 +05:30
shreyamalviya
92a71451fb
Remove unused import in test_utils.py
2021-06-10 17:01:57 +05:30
shreyamalviya
7643102ccd
Rename function to not use abbreviations
2021-06-10 16:56:50 +05:30
Mike Salvatore
118dfa53d4
docs: Loosen ssl permissions recommendation for appimage
2021-06-10 07:13:47 -04:00
Mike Salvatore
937dbac4d0
island: Remove SSL permissions checks
...
These checks prevent the docker container from working properly, as the
default SSL cert must have at least 444 permissions.
2021-06-10 06:57:45 -04:00
shreyamalviya
74111f80e9
Remove `create_parents_dir` parameter when creating directories
...
Can't create parents on Windows using pywin32.
Removed it completely so that behavior is consistent across OSes.
2021-06-10 15:25:16 +05:30
shreyamalviya
1fa2ffe8f7
Fix Windows directory creation
2021-06-10 15:25:16 +05:30
shreyamalviya
54f5524760
Fix race condition during Windows directory creation
2021-06-10 15:25:12 +05:30
VakarisZ
a4a4219f6a
Merge pull request #1215 from guardicore/win_language_docs
...
Added a support section for Windows docs
2021-06-10 11:53:10 +03:00
VakarisZ
b282e5276b
Merge pull request #1216 from guardicore/data_dir_race_condition_linux
...
Fixed a race condition for linux secure directory creation
2021-06-10 11:50:40 +03:00
VakarisZ
36e0309409
Fixed a race condition for linux secure directory creation, by setting dir permissions on creation.
2021-06-10 11:44:50 +03:00
VakarisZ
15a8a4d1c6
Update docs/content/setup/windows.md
...
Co-authored-by: Shreya Malviya <shreya.malviya@gmail.com>
2021-06-10 10:17:22 +03:00
VakarisZ
824a7595bb
Added a support section for windows.md, stating that only English system locale is supported.
2021-06-10 09:29:07 +03:00
Mike Salvatore
2fc726dc78
island: Add missing "f" to format string
2021-06-09 15:11:52 -04:00
Mike Salvatore
1c5daf168c
Merge branch 'custom-certificate' into develop
2021-06-09 15:10:14 -04:00
Mike Salvatore
6aa76497ec
island: Use config file in ~/.monkey_island if it exists
2021-06-09 14:48:59 -04:00
Mike Salvatore
9131f86215
island: remove misleading comment
...
We don't check admin permissions at all, and admin is included in
"everyone else".
2021-06-09 14:20:58 -04:00
Mike Salvatore
67d4f18d65
tests: Refactor create_empty_file() -> create_empty_tmp_file()
2021-06-09 14:14:44 -04:00
Mike Salvatore
cf5b1378f2
island: Consolidate duplicate code in test_island_config_options_validator
2021-06-09 14:06:54 -04:00
Mike Salvatore
7fe10af1b2
island: Pass int, not str to has_expected_permissions()
2021-06-09 13:55:48 -04:00
shreyamalviya
5aaa844289
Add missing constant in config_setup.py
2021-06-09 22:00:44 +05:30
shreyamalviya
91a7c42a85
Format test_island_config_options_validator.py with black
2021-06-09 21:56:44 +05:30
shreyamalviya
8a321f0290
Add Windows tests for island_config_options_validator.py
2021-06-09 21:52:07 +05:30
Mike Salvatore
7c49934270
Merge pull request #1213 from guardicore/win-set-perms-tests
...
Add unit tests for windows directory permission setting
2021-06-09 12:00:57 -04:00
Mike Salvatore
b98ebc8a69
island: Remove tmpdir cleanup code from test_utils.py
...
Pytest automatically cleans up tmpdir fixtures older than 3 runs. See
https://docs.pytest.org/en/6.2.x/tmpdir.html#the-default-base-temporary-directory
Windows10 and Linux will automatically clean their temp directories.
2021-06-09 10:36:37 -04:00
Mike Salvatore
00b37ca6a5
island: Test windows permissions set by create_secure_directory()
2021-06-09 10:32:42 -04:00
shreyamalviya
91aad66e16
Modify log message when checking file permissions
...
Removed code to display it in octal since it makes no sense on Windows.
Added `oct()` around linux permissions when expected_permissions is
being defined.
2021-06-09 19:51:20 +05:30
shreyamalviya
424aceb116
Use constants instead of permission masks
2021-06-09 19:38:45 +05:30
shreyamalviya
84b0664423
Modify comment in monkey_island/cc/server_utils/file_utils.py
2021-06-09 19:37:58 +05:30
Mike Salvatore
b30de00305
Update encryption/decryption PR numbers in changelog
...
Co-authored-by: Shreya Malviya <shreya.malviya@gmail.com>
2021-06-09 10:02:44 -04:00
Mike Salvatore
945e1adf58
island: Split has_expected_permissions() into os-specific functions
2021-06-09 09:47:23 -04:00
shreyamalviya
dc8e2b018d
Fix/ignore flake8 and fix isort warnings
2021-06-09 07:39:56 -04:00
shreyamalviya
cd2f627cc1
Add tests for Windows file permissions checking
2021-06-09 07:39:56 -04:00
shreyamalviya
fcd758e24f
Fix Windows file permissions checking
2021-06-09 07:39:56 -04:00
Shreya
438a63b0f4
Fix Windows file permission checking
2021-06-09 07:39:56 -04:00
Shreya
f1d85dbc44
Change default cert permissions in bat script for creating default cert
2021-06-09 07:39:56 -04:00
Shreya
011ab2a393
Modify `has_expected_permissions()` to check files on Windows
2021-06-09 07:39:56 -04:00
Shreya
10e7b19669
Fix consts.py (mix up during rebase)
2021-06-09 07:39:56 -04:00
shreyamalviya
ef17b7f9c8
Add unit tests for windows directory permission setting
2021-06-09 16:31:27 +05:30
Mike Salvatore
3841dd7f7b
island: Set tighter permissions on certs in create_certificate.sh
2021-06-08 07:17:59 -04:00
Mike Salvatore
93e18a525c
Merge pull request #1212 from guardicore/docs-appimage-signed-certs
...
Docs appimage signed certs
2021-06-08 06:55:51 -04:00
Mike Salvatore
526019a6ea
docs: Make chmod command less specific in linux setup
2021-06-08 06:51:25 -04:00
Mike Salvatore
7fe3dcecef
Merge pull request #1210 from guardicore/docs-docker-signed-certs
...
Docs docker signed certs
2021-06-08 06:45:44 -04:00
Mike Salvatore
9086d93137
docs: Make chmod command less specific in docker setup
2021-06-08 06:40:59 -04:00
Mike Salvatore
4b119ab4ce
island: Skip some island_config_options_validator tests on Windows
2021-06-08 06:35:15 -04:00
Mike Salvatore
63fb396bbb
island: Add unit tests for island_config_options_validator
2021-06-07 19:55:33 -04:00
Mike Salvatore
b80dd59352
tests: move create_empty_file() to conftest.py
2021-06-07 19:44:06 -04:00
Mike Salvatore
78af0d86aa
island: Move IslandConfigOptions validation to separate module
2021-06-07 19:28:03 -04:00
Mike Salvatore
c19dc9dcad
island: Add config validation to IslandConfigOptions
2021-06-07 14:41:05 -04:00
Mike Salvatore
a45848ce0c
island: Move file_has_expected_permissions() to file_utils.py
...
Rename to `has_expected_permissions()` as
`file_has_expected_permissions()` is now reduntant.
Add unit tests
2021-06-07 14:12:48 -04:00