Docs

Service policies

Each service has policies, which you set on the device’s page in the web app (the workspace has defaults for services a device declares for the first time). The path policy decides whether sessions may go directly, through the relay, or either way; Connectivitizer enforces it. A requirement that cannot be met makes the connection fail with an error; it is never quietly replaced by something weaker.
direct-preferredPath policy
Direct if a direct path can be made, otherwise through the relay (still end-to-end encrypted).
direct-onlyPath policy
Direct only. If no direct path can be made the connection fails; it is never relayed instead.
relay-onlyPath policy
Always through the relay (end-to-end encrypted), never direct.
Compatibility modenot end-to-end
Compatibility mode lets callers that cannot run cz or the client library reach this service with a plain HTTPS request to the Connectivitizer gateway. The gateway terminates the encryption and can read that traffic: such sessions are not end-to-end encrypted and not zero-access. Applications that use cz or the library keep reaching the same service end to end. It also needs the device’s own consent, which the platform cannot give: on the device, declare the service again with its local address and the flag below, then restart the agent. cz service add <name> <host:port> --protocol http --allow-compatibility
Whether an endpoint accepts the identity Connectivitizer has on record for its peer is decided on the endpoint when it starts (cz agent run --allow-platform-introduced, or the matching option of an SDK), not by these policies. Changing a service’s policies ends its running sessions.