Added zenoh_security_configuration_tools package written in cpp#495
Closed
ahcorde wants to merge 4 commits into
Closed
Added zenoh_security_configuration_tools package written in cpp#495ahcorde wants to merge 4 commits into
ahcorde wants to merge 4 commits into
Conversation
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
This was referenced Mar 19, 2025
|
Thanks for this valuable feature! I successfully tested the setup above. However, in my usecase it would be easier to set all access control settings in the ROUTER_CONFIG instead of SESSION_CONFIGS. Would it be possible, to extend the config generator in a way, that it generates a central ROUTER_CONFIG? I attached a minimal config for the example above .. |
bfdf2b1 to
3411fde
Compare
* Update policy_parser to use nlohmann_json.hpp Since we have the dependency now via #583, this is a potential improvement to the current string concatenation. Signed-off-by: Michael Carroll <[email protected]> * Further json changes Signed-off-by: Michael Carroll <[email protected]> --------- Signed-off-by: Michael Carroll <[email protected]>
Member
|
Changes from here were merged as part of #595. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Replace #411 and #480
Generate zenoh config file using policy.xml
1 ) Launch zenohd
2 ) Launch the listener
export RMW_IMPLEMENTATION=rmw_zenoh_cpp ros2 run demo_nodes_cpp listener3 ) Launch the talker
export RMW_IMPLEMENTATION=rmw_zenoh_cpp ros2 run demo_nodes_cpp talkerNow run the policy generator
Finally run the script:
Try access control
export ZENOH_SESSION_CONFIG_URI=listener.json5 ros2 run demo_nodes_cpp listener ... [INFO] [1740602312.492840958] [listener]: I heard: [Hello World: 1] [INFO] [1740602313.492200366] [listener]: I heard: [Hello World: 2]You can check that everything is fine remapping the topic name (this should not work):
ros2 run demo_nodes_cpp listener --ros-args -r chatter:=new_topic ... # listener should not receive anythingpolicy files
Just in case you want to try this tools here you can find some examples
policy_talker_listerner.xml
```xml ~/describe_parameters ~/get_parameter_types ~/get_parameters ~/get_type_description ~/list_parameters ~/set_parameters ~/set_parameters_atomically chatter parameter_events parameter_events rosout ~/describe_parameters ~/get_parameter_types ~/get_parameters ~/get_type_description ~/list_parameters ~/set_parameters ~/set_parameters_atomically parameter_events chatter parameter_events rosout ```Policy_service.xml
```xml ~/describe_parameters ~/get_parameter_types ~/get_parameters ~/get_type_description ~/list_parameters ~/set_parameters ~/set_parameters_atomically add_two_ints parameter_events parameter_events rosout add_two_ints ~/describe_parameters ~/get_parameter_types ~/get_parameters ~/get_type_description ~/list_parameters ~/set_parameters ~/set_parameters_atomically parameter_events parameter_events rosout ```policy_action.xml
```xml ~/describe_parameters ~/get_parameter_types ~/get_parameters ~/get_type_description ~/list_parameters ~/set_parameters ~/set_parameters_atomically /fibonacci/_action/cancel_goal /fibonacci/_action/get_result /fibonacci/_action/send_goal /fibonacci/_action/feedback /fibonacci/_action/status parameter_events parameter_events rosout /fibonacci/_action/cancel_goal /fibonacci/_action/get_result /fibonacci/_action/send_goal ~/describe_parameters ~/get_parameter_types ~/get_parameters ~/get_type_description ~/list_parameters ~/set_parameters ~/set_parameters_atomically parameter_events /fibonacci/_action/feedback /fibonacci/_action/status parameter_events rosout ```