Network clients and services¶
First decide which peers may communicate and what they may do. A local private helper, a cloud API client and an intentionally remote server need different network policies. Do not impose Mesh's private-daemon firewall design on every app.
Clients and background jobs¶
Use authenticated encrypted connections where appropriate, validate certificates, bound messages/queues/time and keep retries cancellable. Store user credentials privately at runtime; never put them in examples, packages, logs or screenshots. Keep a reconnect from replaying a consequential action without an explicit policy. Document offline behavior and preserve recoverable edits on network failure.
Private local helpers¶
Prefer binding only the required local interface. If an owned dependency cannot bind privately, establish and verify narrow confinement before it starts. Check its separately installed service/autostart behavior and keep unrelated firewall rules intact. Restrict Unix sockets to an owned private directory, authenticate peer credentials and define the same-user trust boundary. Use bounded framing, request correlation and partial-write failure handling from the common security chapter. These controls do not turn an unauthenticated API into a remote service.
Intentionally remote services¶
Define pairing/authentication, authorization for every action, encrypted transport, credential revocation and the intended exposure. A routing tunnel or address alone is not application authorization. Make remote-control targets and results explicit; never accept arbitrary shell commands as an API. Describe whose infrastructure and continuous connectivity the feature needs before asking users to configure it.
Acceptance checks¶
Test offline/slow/disconnecting peers, malformed/oversized input, invalid credentials, wrong-target replies and expired operations. For IPv4/IPv6 confinement, establish a reachable control on the same path/address family; "unreachable" alone proves nothing about the firewall. Keep isolated namespace tests and physical LAN probes separate. See security and the Mesh example.
Observation tools and existing-service permissions¶
An enumerated adapter is not proof that the application acquired a fresh measurement. Preserve interface/permanent source identity, acquisition time, method and original units. NetworkManager AP Strength is percent and LastSeen is CLOCK_BOOTTIME seconds; repeated cached rows do not create new observations. BlueZ cached RSSI is separate from a new RSSI-bearing property event; a metadata update must not silently borrow its old signal. Stop only the discovery session your unique client acquired.
Test the actual launch context. Wireless Surveyor's stationary integration found that direct SSH scan requests were denied on the tested image, while the existing ordinary-user manager/launcher context succeeded under unchanged policy. Report a permission failure precisely; do not infer a missing driver or add privileges from an SSH-only test. This result does not guarantee every image's policy.
A connected test needs its actual local endpoint/interface and association before and after the operation. Bind/attribute DNS separately; an interface-bound TCP socket does not establish where a system-resolver lookup went. Reject late results across pause, capture and source-generation boundaries. Source contract tests can use a private D-Bus and loopback sockets in a network-disabled container, including a real before/after roam and another modeled client's discovery session.
References: NetworkManager AP API, BlueZ Adapter API. These are measurement/ownership contracts, not physical qualification or packet-loss proof.