Chris McCarthy
1dc23e11f2
#1648 - Updated file header from 'Crown Owned Copyright (C) Dstl 2023. DEFCON 703. Shared in confidence.' to '© Crown-owned copyright 2023, Defence Science and Technology Laboratory UK'
2023-07-21 14:54:09 +01:00
Chris McCarthy
b31522bd9b
#1635 - Fixed typing issues in access_control_list.py
2023-07-18 11:38:28 +01:00
Marek Wolan
652c9f1b90
Merge remote-tracking branch 'origin/dev' into feature/901-change-functionality-acl-rules
2023-07-18 10:55:31 +01:00
Marek Wolan
471826e5ce
Merge branch 'dev' into feature/1623-typehints
2023-07-18 10:03:48 +01:00
SunilSamra
f5b18e882c
#901 - Replaced "ALLOW" with RulePermissionType.ALLOW
...
- Added Explicit ALLOW to test_configs in order for tests to work
- Added typing to access_control_list.py and acl_rule.py
2023-07-17 20:40:00 +01:00
Chris McCarthy
f4683f3b66
#1631 - Updated the copyright statement to comply with DEFCON 703 Edition 08/13
2023-07-17 19:57:34 +01:00
Sunil Samra
a2d99080cd
Apply suggestions from code review
2023-07-17 18:36:13 +00:00
SunilSamra
ded5a6f352
#901 - Fixed bug in implicit rule - comparing it to string ALLOW or DENY in access_control_list.py
2023-07-17 13:58:06 +01:00
SunilSamra
cb4089a0ba
#901
...
- Removed bool apply_implicit_rule
- Set default implicit_rule to EXPLICIT DENY
- Added position to ACLs in laydown configs
- Removed apply_implicit_rule from training configs
2023-07-17 13:00:58 +01:00
SunilSamra
3e7f6cc98d
#901
...
- Added check in access_control_list.py which sets implicit permission to NA if boolean is False
- Changed the defaults in training_config.py so that each scenario has an EXPLICIT ALLOW rule as default implicit rule
- Updated the test_seeding_and_deterministic_session.py because of change no2 adds an extra rule to that scenario
2023-07-17 10:27:56 +01:00
Marek Wolan
98ac228f90
Fix types according to mypy
2023-07-14 16:38:55 +01:00
SunilSamra
fc1a575fd0
#901 -
...
- Added comments in access_control_list.py
- Changed obs_shape to max_number_acl_rules from max_number_acl_rules + 1 as index starts from 1
- Commented episode and step print line from test_single_action_space.py
2023-07-14 15:27:37 +01:00
SunilSamra
771061a218
901 - fixed test_single_action_space.py test
2023-07-13 11:45:23 +01:00
Marek Wolan
d2bac4307a
Type hint ACLs
2023-07-12 16:58:12 +01:00
SunilSamra
e192d24800
Merge remote-tracking branch 'origin/dev' into feature/901-change-functionality-acl-rules
...
# Conflicts:
# src/primaite/acl/access_control_list.py
2023-07-12 10:45:03 +01:00
SunilSamra
ae6c90a670
901 - fixed how acls are added into list with new logic - agent cannot overwrite another acl in the list
2023-07-12 09:47:16 +01:00
SunilSamra
6547789d5d
901 - changed implicit_acl_rule from str to enum name
2023-07-11 12:36:22 +01:00
Marek Wolan
07a0581fce
Merge remote-tracking branch 'origin/dev' into feature/1572-fix-docs-formatting
2023-07-09 18:13:57 +01:00
Marek Wolan
5618283cc5
Standardise docstring summary line placement.
2023-07-07 10:28:00 +01:00
Marek Wolan
653d76ec62
Added docstrings to class intialisers
2023-07-06 16:08:51 +01:00
SunilSamra
7a02661c66
901 - changed how acl rules are added to access control list and added structure to AccessControlList observation
2023-07-06 11:07:21 +01:00
Marek Wolan
d9394d274d
Updated documentation
2023-07-06 10:34:27 +01:00
Marek Wolan
013dcb94a8
Add docstrings and type hints.
2023-07-05 16:19:43 +01:00
Marek Wolan
8f4e8bf538
typo
2023-07-05 14:50:03 +01:00
Marek Wolan
376ff9f597
Imported ADSP function for ACL
2023-07-05 14:10:52 +01:00
SunilSamra
35045f4842
901 - merged with dev
2023-07-05 11:34:15 +01:00
Marek Wolan
fa6dbd8338
Move class docstrings out of init function.
2023-07-05 10:14:16 +01:00
Marek Wolan
24a4f96ed0
Add blank lines at the end of file.
2023-07-05 09:22:49 +01:00
SunilSamra
766ee9624a
901 - updated observations.py to change and add new mapping of ACL rules to represent no rule present in list
2023-07-05 09:08:03 +01:00
Marek Wolan
544d8777ea
add module level docstrings
2023-07-04 13:11:06 +01:00
Marek Wolan
9244c160b1
Format docstrings
2023-07-04 11:11:52 +01:00
Chris McCarthy
e11fd2ced4
#917 - Fixed the RLlib integration
...
- Dropped support for overriding the num_episodes and num_steps at the agent level. It's just not needed and will add complexity when overriding and writing output files.
2023-06-30 16:52:57 +01:00
Chris McCarthy
7b1f889415
#917 - Integrated the PrimaiteSession into all tests.
...
- Ran a full pre-commit hook and thus encountered tons of fixes required
2023-06-30 09:08:13 +01:00
SunilSamra
913c244c64
901 - fixed test_single_action_space.py to reflect new acl structure and added new acl_implicit_rule class attribute
2023-06-27 11:43:33 +01:00
SunilSamra
9c17b54073
901 - changed ACL instantiation and changed acl t private _acl (list not dict) attribute, added laydown_ACL.yaml for testing, fixed encoding of acl rules to integers for obs space, added ACL position to node action space and added generic test where agents adds two ACL rules.
2023-06-20 11:47:20 +01:00
SunilSamra
f275f3e9d7
901 - added changes back to ticket
2023-06-13 09:45:45 +01:00
SunilSamra
ce5d38a1cd
901 - merged dev into my branch
2023-06-13 08:54:33 +01:00
SunilSamra
ed8b53f5ef
901 - added logic to add acls to list (needs more logic adding to it)
2023-06-09 16:56:42 +01:00
SunilSamra
f7b0617dc3
901 - changed name of enum in enums.py and added class attriubutes in access_control_list.py
2023-06-09 15:45:13 +01:00
SunilSamra
33127abcc3
901 - added ACL list to observations.py as its own observation space with the ACL attributes and the position of the ACL rule in the ACL list, added ImplicitFirewallRule to enums.py and added acl_implicit_rule, max_acl_list to primaite_env.py
2023-06-09 15:17:20 +01:00
SunilSamra
f989deb198
901 - changed AccessControlList in access_control_list.py from a dict to a list
2023-06-09 11:25:45 +01:00
Chris McCarthy
32a4d9e459
#1355 - Carried out full renaming in node.py, active_node.py, passive_node.py, and service_node.py to make params and variable names explicit.
...
- Made the same renaming in the yaml laydown config files.
- Added Type hints wherever I've been.
- Added a custom NodeType in custom_typing.py to encompass the Union of ActiveNode, PassiveNode, ServiceNode.
2023-05-25 21:03:11 +01:00
Chris McCarthy
4eb1658966
Ran pre-commit hook on all files and performed changes to fix flake8 failures
2023-05-25 11:42:19 +01:00
Chris McCarthy
4f0d8807d6
Package restructuring
2023-05-25 10:31:37 +01:00