You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This article specifies the integration between security and contexts.
7
7
author: >
@@ -30,6 +30,10 @@ TODO: Some concise overview introduction here
30
30
31
31
Before detailing the SROS 2 integration of the contexts, the following concepts are introduced.
32
32
33
+
### Participant
34
+
35
+
Participant is the object representing a single entity on the network, in the case of DDS the ``Participant`` is a DDS DomainParticipant and the object to which a set of access control and security identity apply.
36
+
33
37
### Namespaces
34
38
35
39
Namespaces are a fundamental design pattern in ROS and are widely used to organize and differentiate many types of resources as to be uniquely identifiable; i.e. for topics, services, actions, and node names.
@@ -42,11 +46,11 @@ However, with the advent of contexts, such a direct mapping of FQN to security a
42
46
### Contexts
43
47
44
48
With the advent of ROS 2, multiple nodes may now be composed into one process for improved performance.
45
-
Previously however, each node would retain it's one to one mapping to a separate middleware participant.
46
-
Given the non-negligible overhead incurred of multiple participants per process, a concept of contexts was introduced.
47
-
Contexts permit a many-to-one mapping of nodes to participant by grouping many nodes per context, and one participant per context.
49
+
Previously however, each node would retain it's one to one mapping to a separate middleware ``Participant``.
50
+
Given the non-negligible overhead incurred of multiple ``Participant``s per process, a concept of contexts was introduced.
51
+
Contexts permit a many-to-one mapping of nodes to ``Participant`` by grouping many nodes per context, and one ``Participant`` per context.
48
52
49
-
Based on the DDS Security specification v1.1, participants can only utilise a single security identity; consequently the access control permissions applicable to every node mapped to a given context must be consolidated and combined into a single set of security artifacts.
53
+
Based on the DDS Security specification v1.1, a ``Participant`` can only utilise a single security identity; consequently the access control permissions applicable to every node mapped to a given context must be consolidated and combined into a single set of security artifacts.
50
54
As such, additional tooling and extensions to SROS 2 are necessary to support this new paradigm.
51
55
52
56
@@ -74,20 +78,20 @@ keystore
74
78
```
75
79
76
80
77
-
### `public`
81
+
### ``public``
78
82
79
-
The `public` directory contains anything permissable as public, such as public certificates for the identity or permissions certificate authorities.
83
+
The ``public`` directory contains anything permissable as public, such as public certificates for the identity or permissions certificate authorities.
80
84
As such, this can be given read access to all executables.
81
-
Note that in the default case, both the identity_ca and permissions_ca are the same CA certificate.
85
+
Note that in the default case, both the `identity_ca` and `permissions_ca` are the same CA certificate.
82
86
83
-
### `private`
87
+
### ``private``
84
88
85
-
The `private` directory contains anything permissable as private, such as private key material for aforementioned certificate authorities.
89
+
The ``private`` directory contains anything permissable as private, such as private key material for aforementioned certificate authorities.
86
90
This directory should be redacted before deploying the keystore onto the target device/robot.
87
91
88
-
### `contexts`
92
+
### ``contexts``
89
93
90
-
The `contexts` directory contains the security artifacts associated with individual contexts, and thus node directories are no longer relevant.
94
+
The ``contexts`` directory contains the security artifacts associated with individual contexts, and thus node directories are no longer relevant.
91
95
Similar to node directories however, the `contexts` folder may still recursively nest sub-paths for organizing separate contexts.
92
96
93
97
@@ -177,7 +181,7 @@ contexts/
177
181
178
182
### Fully qualified context path
179
183
180
-
For nodes with fully qualified context paths, namespacs do not subsequently push the relative sub-folder.
184
+
For nodes with absolute context paths, namespaces do not subsequently push the relative sub-folder.
For circumstances where users may compose multiple nodes of dissimilar namespaces into a single context, the user must subsequently specify a common fully qualified context path for each node to compose, as the varying different namespaces would not push to a common context.
227
-
For circumstances where the context path is orthogonal to node namespace, the use of fully qualifying all relevant nodes is could be tedious, but could perhaps could still be parametrized via the use of `<var/>`, and `<arg/>` substation and expansion.
231
+
For circumstances where the context path is orthogonal to node namespace, the use of fully qualifying all relevant nodes is could be tedious, but could perhaps could still be parametrized via the use of `<var/>`, and `<arg/>` substitution and expansion.
232
+
228
233
234
+
### Modeling permissions of nodes in a process v.s. permission of the middleware ``Participant``
229
235
230
-
### Multiple contexts per process
236
+
Before the use of contexts, multiple nodes composed into a single process where each mapped to a separate ``Participant``.
237
+
Each ``Participant`` subsequently load a security identity and access control credential prevalent to its' respective node.
238
+
However, all nodes in that process share the same memory space and can thus access data from other nodes.
239
+
There is a mismatch between the middleware credentials/permissions loaded and the resources accessible within the process.
231
240
232
-
Before the use of contexts, multiple nodes composed into a single process where each mapped to a separate participant.
233
-
Each participant subsequently load an security identity and access control credential prevalent to its' respective node.
234
-
The composition of multiple nodes per context however, inevitably means that code compiled to node `foo` could access credentials/permissions only trusted to node `bar`.
241
+
By using contexts, all nodes in a context share the same security identity and access control credentials.
242
+
This inevitably means that code compiled to node ``foo`` can access credentials/permissions only trusted to node ``bar``.
235
243
This consequence of composition could unintendedly subvert the minimal spanning policy as architected by the policy designer or measured/generated via ROS 2 tooling/IDL.
236
244
237
245
With the introduction of contexts, it becomes possible to describe the union of access control permission by defining a collection of SROS 2 policy profiles as element within a specific context.
238
246
This would allow for formal analysis tooling [2] to check for potential violations in information flow control given the composing of nodes at runtime.
239
-
However, should multiple contexts be used per process, then such security guaranties are again lost.
247
+
If a process contains a single context, this reconciles the permissions of a ``Participant`` and the ones of the process.
248
+
249
+
However, should multiple contexts be used per process, then such security guaranties are again lost because both contexts will share the same memory space.
240
250
Thus it should be asked whether if multiple contexts per process should even be supported.
241
251
242
-
In summery, the distinction here is that before, the composition of multiple permissions could not be conveyed to the tooling.
252
+
253
+
In summary, the distinction here is that before, the composition of multiple permissions could not be conveyed to the tooling.
243
254
Whether nodes could gain the permission of others in the same process space is not the hinge point of note; it's the fact that such side effects could not be formally modeled or accounted for by the designer.
244
-
Allowing for multiple contexts per process again exacerbates the same modeling inaccuracies
255
+
It will now be possible with contexts, however allowing for multiple contexts per process will reintroduce and exacerbates the same modeling inaccuracies.
0 commit comments