Skip to content

Nodes should consider FQN path when searching for own secure root #68

Closed

Description

@ruffsl

Nodes should expand node_secure_root using local_namespace so that unique secure configuration files in the secure root directory may be passed to namespaced nodes. Given namespacing often necessitates special modification to security credentials, a node with a alternate namespace may not inherently be capable of reusing security credentials with another node of the same name.

E.g.
Nodes /talker and /foo/talker may require require separate security permission given one may published to /chatter and the other to /foo/chatter; not to mention the additional sub system topics and services that may be affected by the namespace prefixing.

Tentative workaround:
ruffsl/rcl#1

If this sounds reasonable, I could clean up and PR my patches above.

Activity

  1. codebot commented on Sep 12, 2018

    @codebot
    Member

    Hmm, very good point. Do you think it would be useful to first search for the FQN, and if it's not there, search for the non-qualified node name? (I'm not sure if that's a typical or valid use case)

  2. ruffsl commented on Sep 12, 2018

    @ruffsl
    MemberAuthor

    Do you think it would be useful to first search for the FQN, and if it's not there, search for the non-qualified node name? (I'm not sure if that's a typical or valid use case)

    I'm not sure I'd like that sense of indeterminism when specifying where to retrieve security artifacts. Plus, one may want to wholly reserve the top root folders for nodes that are indeed actually top level namespace. E.g. /_ros2cli_node

  3. codebot commented on Sep 12, 2018

    @codebot
    Member

    That makes sense. Thanks for explaining. Using only the FQN seems reasonable, then. @mikaelarguedas and others may want to chime in, but I think this all sounds good.

  4. mikaelarguedas commented on Sep 19, 2018

    @mikaelarguedas
    Member

    Thanks @ruffsl for reporting.

    Indeed I think the approach described in ruffsl/rcl#1 is good. Feel free to open a PR for it.

    +1 for using only the FQDN: I see it as a security risk and / or surprise for users if a node with an FQDN not matching the structure of their keystore is allowed to join the secure network and talk. I think it's fair to expect that people enforcing security have rules matching exactly the final name and namespace of their nodes

  5. added
    enhancement
    on Sep 19, 2018
  6. ruffsl commented on Sep 19, 2018

    @ruffsl
    MemberAuthor

    Indeed I think the approach described in ruffsl/rcl#1 is good. Feel free to open a PR for it.

    Ok please see ros2/rcl#300 and ros2/rcutils#119

  7. ruffsl commented on Nov 21, 2018

    @ruffsl
    MemberAuthor

    Resolved with ros2/rcl#300 and ros2/rcutils#119 merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions