-
Notifications
You must be signed in to change notification settings - Fork 47
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
Timezone aware datetimes + remove hack from #209 #300
base: rolling
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import datetime | ||
import os | ||
import pathlib | ||
|
||
|
@@ -75,8 +76,15 @@ def create_permission_file(path: pathlib.Path, domain_id, policy_element) -> Non | |
|
||
cert_path = path.parent.joinpath('cert.pem') | ||
cert_content = _utilities.load_cert(cert_path) | ||
kwargs['not_valid_before'] = etree.XSLT.strparam(cert_content.not_valid_before.isoformat()) | ||
kwargs['not_valid_after'] = etree.XSLT.strparam(cert_content.not_valid_after.isoformat()) | ||
# TODO replace "not_valid_before"/"not_valid_after" functions by | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sad to read about that window holding back and blocking the python REP updates, given the Qt release changes. I hope the latest minor release of cryptography is still secure and up-to-date for all platforms. :< |
||
# "not_valid_before_utc"/"not_valid_after_utc" | ||
# once cryptography 42 is supported on all target platforms | ||
kwargs['not_valid_before'] = etree.XSLT.strparam( | ||
cert_content.not_valid_before.replace(tzinfo=datetime.timezone.utc).isoformat() | ||
) | ||
kwargs['not_valid_after'] = etree.XSLT.strparam( | ||
cert_content.not_valid_after.replace(tzinfo=datetime.timezone.utc).isoformat() | ||
) | ||
|
||
if get_rmw_implementation_identifier() in _RMW_WITH_ROS_GRAPH_INFO_TOPIC: | ||
kwargs['allow_ros_discovery_topic'] = etree.XSLT.strparam('1') | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
<xsl:output omit-xml-declaration="yes" indent="yes"/> | ||
<xsl:strip-space elements="*"/> | ||
|
||
<xsl:param name="not_valid_before" select="'2020-05-01T00:00:00'"/> | ||
<xsl:param name="not_valid_after" select="'2030-05-01T00:00:00'"/> | ||
<xsl:param name="not_valid_before" select="'2020-05-01T00:00:00+00:00'"/> | ||
<xsl:param name="not_valid_after" select="'2030-05-01T00:00:00+00:00'"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to use From the OP ticket:
Not sure if this (formatting choice) was the original point of issue here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I initially tried this 2754240 but one of the issues is that Python has pretty limited support for it. The ability to parse a string in that format appeared in Python 3.11. I guess we can revisit if the testing of this with connext show the issue still exists with version 6.0.1. |
||
|
||
<xsl:variable name="template_validity"> | ||
<validity> | ||
|
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'm kind of the opinion if it still broken for a DDS vendor by now, then that's more concerning. I've no longer have an active licence, but I could go ask for a renewal to verify this if you'd like.
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.
yeah so its a bit tricky,
the version shipped with the Jazzy binaries fails to run the launcher:
The only one I saw available on their website is 7.3.0.
And 7.3.0 is not API compatible with 6.0.1 so I cannot launch nodes
I could try to install the rtipkg from commandline but not sure where to download them if not from the rti website or launcher..
Maybe someone at Open Robotics could give this PR a try ? (as osrf has both license and installer backed up)
@clalancette do you know anyone we could reach out for that could test this ?
So there is a larger issue here, how do people install connext with security plugins for any active ROS 2 distro ?
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.
@ahcorde Hey there 👋
The PR I dont have the ability to test myself we were chatting about offline today