Skip to content
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 support for PKCS#11 in security files #565

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

IkerLuengo
Copy link
Contributor

Implementation of the support for PKCS#11 URIs described in ros2/design#319.

Since #544 the generation of the security property values from the files in the enclave relied on rmw_dds_common::get_security_files. To avoid affecting any other RMW implementation, we had to move the generation of the values back to the RMW itself, adapting it to support several file names for the same security property.

For each property, we define an ordered sequence of possible file names that can be used to get that property, and the method to use to get the property value from that file.

  • The sequence is ordered by file name priority. The first file that provides a positive match is used. In this case, legacy *.pem files have priority over the new *.p11 files.
  • Legacy *.pem and *.p7s files are processed as always. The attribute value is composed by the prefix prepended to the file path.
  • New *.p11 files are opened and their content is used as the value of the attribute. It is assumed this content is a single line representing the PKCS#11 URI.

Signed-off-by: Iker Luengo ikerluengo@eprosima.com

@MiguelCompany
Copy link
Collaborator

I have updated this PR to make it dependent on ros2/rmw_dds_common#66, and just indicate that this RMW supports PKCS#11

@ros-discourse
Copy link

This pull request has been mentioned on ROS Discourse. There might be relevant details there:

https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2023-02-16/29927/1

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@clalancette
Copy link
Contributor

CI for this is in ros2/rmw_dds_common#66 (comment) and ros2/rmw_dds_common#66 (comment) . Going ahead and merging.

@clalancette clalancette merged commit c2524f5 into ros2:rolling Apr 8, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants