Open mikaelarguedas opened 4 years ago
The same could be used.
That sounds like a bug, and could be fixed after feature freeze.
Ideally the user would be able to specify the start date and the duration.
Yeah, that's more of a feature.
@kyrofa @mikaelarguedas are you planning to land said feature for Foxy?
It's after feature freeze now, so I suspect we'll go the bugfix route on this one.
I don't know what this needs to be merged but we haven't frozen yet. It might still be ~ a day out.
I won't work on this in the next couple days. I should be able to provide a bugfix to have matching validity dates next week
bugfix submitted at https://github.com/ros2/sros2/pull/205
Feature request
Feature description
Generated permissions file should use the same validity period as the certificates. Currently they use hard coded timeframe that expires in 2023 https://github.com/ros2/sros2/blob/9e1d10578e1ccf0d08c41ee5c06e0968878143f6/sros2/sros2/policy/templates/dds/permissions.xsl#L12
Implementation considerations
Certificates currently use [UTC:UTC+10years] https://github.com/ros2/sros2/blob/9e1d10578e1ccf0d08c41ee5c06e0968878143f6/sros2/sros2/api/__init__.py#L451 The same could be used.
Ideally the user would be able to specify the start date and the dureation. That range would be applied to both the certificates and permissions files