-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds rego as an engine for rules, it takes whatever input from the ingester and is able to evaluate it against OPA/rego policies. We also pass in the policy from mediator so we could use that as input if needed. There are two modes of operations: - `deny-by-default`: Which is more secure and expects policy writers to only set an `allow` variable to true if the policy matches expectations - `constraints`: will deny the request if a violation is found. It can return a message with further explanations for the denial. the reason why I didn't just use the `deny-by-default` as the only engine is that it's non-trivial to return meaningful messages to the user with such a model in rego.
- Loading branch information
Showing
12 changed files
with
1,541 additions
and
821 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
Oops, something went wrong.