-
Notifications
You must be signed in to change notification settings - Fork 173
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
Update ACL config format to support AND/OR logic between subjects #1200
Merged
Mallets
merged 39 commits into
eclipse-zenoh:dev/1.0.0
from
ZettaScaleLabs:acl/config-rework
Jul 23, 2024
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
d74c363
Add trie dependency
oteffahi 1cb434c
Start replacing subject HashMap with TrieMap
oteffahi 90aeeb0
Complete SubjectTrieMap implementation
oteffahi 5d3ffed
Add new ACL config schema to zenoh config
oteffahi 3f3a959
Add new ACL config parsing logic
oteffahi 1c6e1bb
Fix empty subject lists edge-case for cartesian product of subjects
oteffahi 47cf0e6
Format code, apply clippy suggestions
oteffahi 2983820
Fix edge-case where a subject-combination is repeated in config
oteffahi b226821
Update new transport ACL logic with subject-combinations support
oteffahi d56a0da
Make ACL config lists mandatory when ACL config is enabled
oteffahi 3f3a4b1
Update ACL tests
oteffahi 0ca0d2e
Update authentication tests
oteffahi a1a654e
Break ACL and authentication test into multiple tests that can run co…
oteffahi 9354a08
Fix entry_id value in error message
oteffahi c95bbc9
Add policy entry rules/subjects id validation
oteffahi f19ee28
Update DEFAULT_CONFIG
oteffahi 9498076
Fix missing port number in test client config
oteffahi 16663b9
Add ACL subject combination tests
oteffahi d442802
Empty commit to trigger CI
oteffahi 8e34a00
Fix unsoundness in `SubjectMap`
fuzzypixelz 0b4bb3f
Address review comments from original pull request
fuzzypixelz 53b9eff
Resolve merge conflicts
fuzzypixelz 754c416
Fix typos
fuzzypixelz 0950450
Fix clippy errors
fuzzypixelz 7aa2dbe
Minor edits
fuzzypixelz 28f0231
Check for empty subject attributes
oteffahi 3f2a70f
Rename ACL config field actions to messages
oteffahi d6da2d7
Rename ACL config field policy to policies
oteffahi 406e07d
Update DEFAULT_CONFIG
oteffahi 090aace
Update ACL tests config
oteffahi f7e85f1
Add warning when applying ACL on transport with multiple interfaces
oteffahi 1131c09
Improve ACL subject logs
oteffahi 848cfb4
Improve ACL no matching subject log
oteffahi 42a8c63
Separate empty ACL config logs
oteffahi aa2c497
Replace unwrap with expect
oteffahi 4167dcc
Fix unmodified copy/pasted code
oteffahi 80a2c5c
Rename ACL config message 'get' to 'query'
oteffahi 95d4935
Rename ACL 'get' to 'query' in DEFAULT_CONFIG
oteffahi a166293
Rename 'get' to 'query' in tests
oteffahi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a valuable clarification but maybe it could be in prose rather than pseudo code. To me it seems to imply the existence of a filtering DSL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another nitpick.