-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ACL config format to support AND/OR logic between subjects (#1200
) * Add trie dependency * Start replacing subject HashMap with TrieMap * Complete SubjectTrieMap implementation * Add new ACL config schema to zenoh config * Add new ACL config parsing logic * Fix empty subject lists edge-case for cartesian product of subjects * Format code, apply clippy suggestions * Fix edge-case where a subject-combination is repeated in config * Update new transport ACL logic with subject-combinations support * Make ACL config lists mandatory when ACL config is enabled * Update ACL tests * Update authentication tests * Break ACL and authentication test into multiple tests that can run concurrently * Fix entry_id value in error message * Add policy entry rules/subjects id validation * Update DEFAULT_CONFIG * Fix missing port number in test client config * Add ACL subject combination tests * Empty commit to trigger CI * Fix unsoundness in `SubjectMap` This replaces the trie data structure with a vector and allows querying any combination of subject properties in any order. Moreover, undefined subject properties are now always interpreted as wildcards. * Address review comments from original pull request * Fix typos * Fix clippy errors * Minor edits * Check for empty subject attributes * Rename ACL config field actions to messages * Rename ACL config field policy to policies * Update DEFAULT_CONFIG * Update ACL tests config * Add warning when applying ACL on transport with multiple interfaces * Improve ACL subject logs * Improve ACL no matching subject log * Separate empty ACL config logs * Replace unwrap with expect * Fix unmodified copy/pasted code * Rename ACL config message 'get' to 'query' * Rename ACL 'get' to 'query' in DEFAULT_CONFIG * Rename 'get' to 'query' in tests --------- Co-authored-by: Mahmoud Mazouz <[email protected]>
- Loading branch information
1 parent
cf4d3d3
commit cb9fc8a
Showing
10 changed files
with
1,422 additions
and
472 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
Oops, something went wrong.