-
Notifications
You must be signed in to change notification settings - Fork 70
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
Added rmw_security_common #388
base: rolling
Are you sure you want to change the base?
Conversation
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
// const std::string & prefix, const std::string & secure_root, | ||
// std::unordered_map<std::string, std::string> & result); |
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.
remove those comments?
// const std::string & prefix, const std::string & secure_root, | |
// std::unordered_map<std::string, std::string> & result); |
@@ -0,0 +1,99 @@ | |||
// Copyright 2021 Open Source Robotics Foundation, Inc. |
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.
basically what we are doing here is to move the implementation from rmw_dds_common, but it also adjusts the implementation in C. probably copyright year would be better to be updated? and else where.
// Copyright 2021 Open Source Robotics Foundation, Inc. | |
// Copyright 2025 Open Source Robotics Foundation, Inc. |
* \param[in] prefix An optional prefix to apply to the filenames when storing them. | ||
* \param[in] secure_root The path to the security enclave to look at. | ||
* \param[out] result The map where the friendly name -> filename pairs are stored. | ||
* \return `true` if all required files exist in the security enclave, `false` otherwise. |
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 not correct.
* \return `true` if all required files exist in the security enclave, `false` otherwise. | |
* \return `RMW_RET_OK` if successful, or | |
* \return `RMW_RET_INVALID_ARGUMENT` if any argument are invalid, or | |
* \return `RMW_RET_ERROR` an unexpected error occurs. |
* \param[in] prefix An optional prefix to apply to the filenames when storing them. | ||
* \param[in] secure_root The path to the security enclave to look at. | ||
* \param[out] result The map where the friendly name -> filename pairs are stored. | ||
* \return `true` if all required files exist in the security enclave, `false` otherwise. |
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 not correct.
* \return `true` if all required files exist in the security enclave, `false` otherwise. | |
* \return `RMW_RET_OK` if successful, or | |
* \return `RMW_RET_INVALID_ARGUMENT` if any argument are invalid, or | |
* \return `RMW_RET_ERROR` an unexpected error occurs. |
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Replace ros2/sros2#330
the new
rmw_zenoh_cpp
has an open PR to include certificates using the--enclave
argument. This requires to usermw_dds_common::get_security_files
which is not a dds unique utility.The idea with new package is to include here all the security common things.
As discussed in the ROS weekly meeting, we decided to include this package under the rmw repository and it should use C in the signature as the other rmw functions.
Related PRs