ros2 / sros2

tools to generate and distribute keys for SROS 2
Apache License 2.0
89 stars 44 forks source link

Expose Parts of Keystore/Key API #237

Closed Arnatious closed 3 years ago

Arnatious commented 4 years ago

Feature request

Feature description

The current sros2 api is entirely private.

Currently, the following functions are used in the implementation of secure launch

Exposing a public api for these would be appreciated.

kyrofa commented 4 years ago

Thanks @Arnatious, nice to have a use-case driving our API. As we have discussed in the API proposal, I think it's time to move away from the "key" terminology, toward either "enclaves" or "identities". I favor the latter, but I'm not sure how far this terminology change should leak. @mikaelarguedas should we still be using the "keystore" term if we want to change create_key, for example?

mikaelarguedas commented 4 years ago

As we have discussed in the API proposal, I think it's time to move away from the "key" terminology, toward either "enclaves" or "identities".

To keep user-facing terminology narrow I'm leaning towards enclaves that is used in the CLI and RCL. Side note: The renaming should likely be applied consistently to all verbs regardless of which API is made public

should we still be using the "keystore"

As we renamed the env variables from ROS_SECURITY_ROOT_DIRECTORY to ROS_SECURITY_KEYSTORE I think we converged towards that term even if it contains more than keys. So keeping it as is sounds fine.

kyrofa commented 4 years ago

@mikaelarguedas alright, I've updated the API proposal, take a pass when you can.

mikaelarguedas commented 3 years ago

I've updated the API proposal, take a pass when you can.

Sorry I didnt get around reviewing this yet. It'll be another couple of days before I can look at it

kyrofa commented 3 years ago

It's alright, #241 is up and ready as well if that's easier.