DDS PARTITION QoS lets applications create logical routing groups inside one DDS domain. A Publisher and Subscriber communicate only when their partition name lists share a match, in addition to the normal topic and type requirements. Teams often use names such as plantA, cell7, or robots/inspection to separate traffic. That is useful organization and routing, but a partition name is not a security boundary or an authorization decision.

How partition matching works

A DDS domain provides the broad communication scope. Within that domain, PARTITION QoS is applied to Publisher and Subscriber entities. Their lists of strings determine which endpoints can match. Topic compatibility is still required; a matching partition does not connect unrelated topics.

Partition names may include wildcard expressions as defined by the DDS specification's matching rules. A literal name on one side can match a wildcard on the other. DDS 1.4 also states that two names that both contain wildcards are not considered a match. Designs that put patterns on both Publisher and Subscriber can therefore produce unexpected silence.

Changing the partition policy can establish or break endpoint matches. Failure to share a partition is not treated as incompatible QoS, so it does not necessarily raise the same incompatible-QoS status used for policies such as reliability. A subscriber can simply see no matching writer. Operational tools need to inspect partition lists and discovery state rather than diagnosing every empty stream as packet loss.

Routing is not authorization

A partition string is typically advertised in discovery metadata so matching can occur. An unauthorized participant that can join the domain may be able to request the same literal partition or a matching wildcard. The middleware's routing decision does not prove the participant's identity, verify that it is permitted to publish commands, or protect payload confidentiality.

Consider a robot command topic published in partition cell7. A well-behaved subscriber in another partition will not match it. But if a misconfigured or malicious participant joins the domain and uses cell7, the partition rule alone has no policy saying whether that participant is an approved controller. Naming a partition safety or admin does not give the string security semantics.

DDS Security addresses a different layer. Authentication establishes participant identity. Access control permissions can restrict domains, topics, partitions, and operations. Cryptographic protection can provide integrity and confidentiality according to configuration. Use those mechanisms, or an equivalent security architecture, when the system has authorization requirements. Keep the PARTITION name as a routing attribute that the security rules may reference.

Build a stable naming scheme

Define names from operational topology rather than transient network details. A hierarchy such as site/plantA/cell7 or fleet/region-west/inspection can be understandable, but document exact case, separators, and wildcard policy. Avoid user-entered free-form values for command paths. Validate configuration before enabling writers.

Decide where patterns are allowed. One approach is literal names for publishers and controlled wildcard subscriptions for monitoring tools. Another is literal names on both sides for critical command flows. Because two wildcard expressions do not match each other under the DDS rule, test every permitted combination rather than assuming shell-glob intuition.

Separate routing identity from robot identity. The keyed instance should still identify the robot, actuator, or job inside the topic. A partition cell7 can carry many robots, and one robot can move between cells. Model that transition explicitly so old subscribers do not continue acting on stale assignments.

Apply least privilege independently

Write access-control rules that bind authenticated participants to allowed domain IDs, topics, partitions, and read or write operations. A fleet analytics service might read fleet/* state partitions but have no permission to write commands. A cell controller might write command topics only in its assigned literal cell partition. A maintenance tool might require a separate signed role and time-limited authorization.

Review wildcard permissions carefully. A broad routing subscription can be reasonable for observability, while the same wildcard in security permissions can expose sensitive state. Log both the resolved partition match and the authenticated identity that used it.

Test failure and attack cases

Create publishers and subscribers with exact matches, one-sided wildcards, two-sided wildcards, different case, empty or default partition lists, and runtime partition changes. Verify the expected discovery match count. Confirm that a non-match produces no incompatible-QoS event and that diagnostics still explain the missing stream.

Then test security separately. Give an unauthorized participant the correct partition name and verify that access control still denies discovery, read, or write as designed. Try an overbroad wildcard. Rotate permissions and certificates. Confirm that a participant denied command publication cannot gain it merely by changing the partition string.

Observe the actual match

Record participant identity, domain, Publisher or Subscriber entity, partition list, topic, type, and matched endpoint count. When a robot stops receiving data, compare these values before changing QoS at random. For security incidents, retain permission decision logs and cryptographic identity evidence; partition names alone are not attribution.

During commissioning, test from a participant that has valid network reachability but intentionally lacks application permissions. This separates transport availability, partition matching, and policy enforcement in the evidence. A successful denial is a security result; an empty match list is only a routing result.

DDS PARTITION is an elegant way to organize matching inside a domain. It can reduce which endpoints exchange a topic and support flexible deployment topologies. It does not authenticate a robot controller or grant permission to issue an action. Treat partition matching as routing, and enforce authorization with verified identity and explicit access-control policy.