-
Notifications
You must be signed in to change notification settings - Fork 172
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
Add publisher delete and queryable reply messages to ACL #1259
Merged
Mallets
merged 14 commits into
eclipse-zenoh:dev/1.0.0
from
ZettaScaleLabs:acl/queryable-reply
Jul 24, 2024
Merged
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3a78d5d
Expose reply key_expr to interceptors
oteffahi f45f2dd
Add reply message to ACL logic and config
oteffahi 6a632d9
Update DEFAULT_CONFIG
oteffahi d2a700b
Update ACL get/queryable tests, add reply tests
oteffahi b5dcf1b
Improve reply matching
oteffahi b3c0906
Specify all existing message types in ACL interceptor matching
oteffahi 8e30f55
Add reply to authentication qbl tests configs
oteffahi 99323ad
Add delete message to ACL logic and config
oteffahi 0c2ee09
Add delete message to DEFAULT_CONFIG, format messages
oteffahi 036ac96
Add delete message to ACL pub/sub tests
oteffahi bf7fb08
Fix clippy errors
oteffahi 8db19ec
Reorder message matching
oteffahi 2ea951e
Revert "Expose reply key_expr to interceptors", use wire_expr for ACL…
oteffahi 26f6ca5
Revert key_expr parsing change to reply ingress
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
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.
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 allocates everytime in the critical path. Why it should return a
String
and not akeyexpr
?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.
It's because
RoutingContext<Msg>
expects aString
. In other instances where this is called no additional allocation is made, but here it is the case...For more detail see here: https://github.com/eclipse-zenoh/zenoh/blob/main/zenoh/src/net/routing/mod.rs
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.
Let's then return empty
String
for the time being until a proper solution is found.Does returning an empty
String
impact the behaviour?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.
Returning an empty string breaks the keyexpr matching (empty string does not match with any key expression, even
**
).Also, rules are made on key expressions, so having an empty string on all replies would impact the behavior of ACL
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.
Ok, understood. Can you then verify the impact on performance?
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.
I'll look into it 👍
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.
Due to high impact on performance, this change will be reverted. We can use
Response{ wire_expr, ... }
in ACL code to only get the keyexpr when needed.