-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jans-cedarling): Implement check authorization principals based …
…on the schema for action (#10126) * chore(jans-cedarling): move `cedar_schema.rs` file to `mod.rs` Signed-off-by: Oleh Bohzok <[email protected]> * chore(jans-cedarling): refactor move types to parse cedar-policy entities to file `entity_types.rs` Signed-off-by: Oleh Bohzok <[email protected]> * feat(jans-cedarling): add parsing actions from json cedar-policy schema Signed-off-by: Oleh Bohzok <[email protected]> * chore(jans-cedarling): update `AuthorizationLogInfo` to be more flexible and to be `authorize_info` optional for each principal Signed-off-by: Oleh Bohzok <[email protected]> * chore(jans-cedarling): add update to `AuthorizationLogInfo` structure `role_authorize_info` now is vector It allows to log many role authorize info results Signed-off-by: Oleh Bohzok <[email protected]> * feat(jans-cedarling): add authorize check only for defined `principal`s in `schema` for `action` Signed-off-by: Oleh Bohzok <[email protected]> * chore(jans-cedarling): refactor test/utils module, split functions to different folders Signed-off-by: Oleh Bohzok <[email protected]> * chore(jans-cedarling): move util macros to util test util crate Signed-off-by: Oleh Bohzok <[email protected]> * test(jans-cedarling): add test check when different principal can be applied to action Signed-off-by: Oleh Bohzok <[email protected]> * chore(jans-cedarling): implement more easier implementation to apply principal only when it can be applied to action Signed-off-by: Oleh Bohzok <[email protected]> * feat(jans-cedarling): add loading namespace from policy store Signed-off-by: Oleh Bohzok <[email protected]> * chore(jans-cedarling): fix test cases after changes Signed-off-by: Oleh Bohzok <[email protected]> * test(jans-cedarling): add test case to check if namespace different from `Jans` works correctly Signed-off-by: Oleh Bohzok <[email protected]> * chore(jans-cedarling): fix clippy issues Signed-off-by: Oleh Bohzok <[email protected]> * chore(jans-cedarling): add better comment to macros Signed-off-by: Oleh Bohzok <[email protected]> --------- Signed-off-by: Oleh Bohzok <[email protected]>
- Loading branch information
1 parent
eac6fd1
commit 774f779
Showing
32 changed files
with
1,437 additions
and
726 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.