-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kbs: switch to Regorus for resource policy
Switch from Go-based policy engine to rust-based Regorus Switch from Anyhow to thiserror for resource policy Add several unit tests and test policies Signed-off-by: Tobin Feldman-Fitzthum <[email protected]>
- Loading branch information
Showing
16 changed files
with
484 additions
and
105 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
This directory contains sample policy files to configure the policy engine | ||
of the KBS. You can use these files to write your own policies. | ||
|
||
There are also several example policies used [for testing](../test/data). | ||
|
||
| File | Description | | ||
| --- | --- | | ||
|[allow_all.rego](./allow_all.rego)|Equivalent to turning off the policy engine. Release resources unconditionally| | ||
|[deny_all.rego](./deny_all.rego)|Deny all resources release| | ||
|[deny_all.rego](./deny_all.rego)|Deny all resources release| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.