Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple decoupled file based policy engine #27

Merged
merged 13 commits into from Aug 31, 2023

Conversation

pdxjohnny
Copy link
Contributor

@pdxjohnny pdxjohnny commented Mar 31, 2023

Simple insert policy based engine based on presence of operation.policy.{insert,denied,failed} files. Currently only for use with use_lro=True. This is a simple way to enable evaluation of claims prior to submission by arbitrary policy engines which watch the workspace (fanotify, inotify, etc.).

Jump to viewing docs

@pdxjohnny pdxjohnny force-pushed the policy_engine branch 8 times, most recently from 3cbfc29 to 7faa017 Compare March 31, 2023 07:25
@pdxjohnny pdxjohnny marked this pull request as ready for review March 31, 2023 07:26
@pdxjohnny pdxjohnny force-pushed the policy_engine branch 4 times, most recently from 7e15387 to 542fea4 Compare March 31, 2023 08:03
@pdxjohnny pdxjohnny marked this pull request as draft March 31, 2023 08:06
@pdxjohnny pdxjohnny force-pushed the policy_engine branch 2 times, most recently from 8ed6f93 to 2787820 Compare March 31, 2023 10:21
@pdxjohnny pdxjohnny marked this pull request as ready for review March 31, 2023 10:21
pdxjohnny added a commit to intel/dffml that referenced this pull request Mar 31, 2023
…tion: Initial sketch

Related: scitt-community/scitt-api-emulator#27
Alice Engineering Comms: 2022-10-17 Engineering Logs: #1406
@pdxjohnny pdxjohnny force-pushed the policy_engine branch 2 times, most recently from a72cdef to adea2b1 Compare April 2, 2023 14:56
scitt_emulator/scitt.py Outdated Show resolved Hide resolved
scitt_emulator/scitt.py Outdated Show resolved Hide resolved
@pdxjohnny pdxjohnny force-pushed the policy_engine branch 3 times, most recently from a63447e to efd6b90 Compare April 27, 2023 18:25
OR13
OR13 previously approved these changes Aug 24, 2023
@OR13
Copy link
Contributor

OR13 commented Aug 24, 2023

Conflicts exist now, I will merge 1 week after they are resolved unless there are changes requested.

@pdxjohnny
Copy link
Contributor Author

pdxjohnny commented Aug 25, 2023 via email

SteveLasker
SteveLasker previously approved these changes Aug 26, 2023
Copy link
Contributor

@SteveLasker SteveLasker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
…entation

Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
- Updated simple file based policy engine to align with @darrelmiller review of SCITT architecture documentation
  - His full review can be found at https://mailarchive.ietf.org/arch/msg/scitt/c0t5zLUJtCQ9_Jrf7mykWXSIn94/
- Do not attempt to load policy failed/denied JSON information if present triggering file empty

Signed-off-by: John Andersen <john.s.andersen@intel.com>
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
… load

Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
…policy from service parameters insertPolicy

Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
…st per @OR13 review

Related: #1 (review)
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
…rrantly encode jsonschema validator output into detail string

Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
@pdxjohnny
Copy link
Contributor Author

pdxjohnny commented Aug 26, 2023

Thanks all! I rebased in main. Looks like theres an error in the conda tests will fix asap

OR13
OR13 previously approved these changes Aug 28, 2023
SteveLasker
SteveLasker previously approved these changes Aug 28, 2023
Copy link
Contributor

@SteveLasker SteveLasker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

To ensure scitt_emulator module can be found

Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
@pdxjohnny pdxjohnny dismissed stale reviews from SteveLasker and OR13 via 3806008 August 30, 2023 00:23
@pdxjohnny
Copy link
Contributor Author

pdxjohnny commented Aug 30, 2023

The conda CI tests should be fixed now, for some reason it couldn't find the scitt_emulator module when executing the subprocess. Solved by setting PYTHONPATH to ensure to module is importable

@OR13 OR13 merged commit 04b219c into scitt-community:main Aug 31, 2023
3 checks passed
@pdxjohnny pdxjohnny deleted the policy_engine branch August 31, 2023 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants