UniFi Endpoint
==============

UniFi Endpoint provides secure access to UniFi-managed networks, including
VPN connectivity, WiFi authentication, credential management, and SSL
inspection support. It integrates with system networking and credential
storage services.

Most of that integration is scoped to UniFi Endpoint itself. The one
exception - a machine-wide change that affects every program on the host -
is the TLS trust store, documented below.

Trust store handling
---------------------

In one specific case UniFi Endpoint modifies the system-wide TLS trust
store. Because that affects every program on the machine, the behaviour is
documented here up front.

SSL inspection
  When your workspace has SSL inspection enabled, UniFi Endpoint installs the
  workspace's CA certificate into the machine-wide trust store and rebuilds
  the trust bundle. The anchor location and rebuild tool depend on the
  distribution family:

      Debian / Ubuntu
        /usr/local/share/ca-certificates/UniFi-Endpoint-<fingerprint>.crt
        rebuilt with `update-ca-certificates`

      Fedora / RHEL
        /etc/pki/ca-trust/source/anchors/UniFi-Endpoint-<fingerprint>.crt
        rebuilt with `update-ca-trust extract`

      openSUSE / SLE
        /etc/pki/trust/anchors/UniFi-Endpoint-<fingerprint>.crt
        rebuilt with `update-ca-certificates`

  From that point the certificate is trusted for TLS validation by every
  program on the machine, not only by UniFi Endpoint - this is what lets the
  workspace inspect outbound TLS.

  Because this is a machine-wide change, the operation is gated on membership
  of the `unifi-endpoint` system group (created when the package is
  installed). A user who is not in that group cannot install a CA into the
  system trust store.

WiFi enterprise (WPA-Enterprise / 802.1X) authentication
  WiFi does NOT touch the system trust store. The workspace CA is written to
  a per-connection, root-owned file under /etc/pki/unifi-endpoint/nm-ca/ and
  is referenced only by that one NetworkManager connection, so the trust is
  scoped to a single network.

Screen sharing
  An administrator can request to view - and, with your explicit approval,
  control - this desktop. Nothing is captured until you approve, and approval
  is asked for twice: once by UniFi Endpoint, and once by your desktop itself,
  which shows its own dialog for choosing what to share. That second dialog
  belongs to the desktop, not to UniFi Endpoint, and it is what actually grants
  access. Consent is never remembered: every session asks again.

  Screen sharing needs three supporting pieces, all of them weak (recommended,
  not required) dependencies:

      the desktop portal        xdg-desktop-portal, plus the backend for your
                                desktop (xdg-desktop-portal-gnome or
                                xdg-desktop-portal-kde)
      PipeWire                  pipewire
      GStreamer media plugins   the PipeWire plugin and an H.264 encoder

  The portal BACKEND is only suggested, never auto-installed: desktops ship
  their own, and pulling the wrong one in would drag an unrelated desktop stack
  onto your machine for no benefit.

  If any of these is missing, UniFi Endpoint does not fail silently or
  mid-session. It declines the incoming request straight away, tells the
  administrator the endpoint cannot serve it, and shows you a one-time notice
  naming what to install. Everything else in the app is unaffected.

  Two limits worth knowing on Linux, both consequences of how Wayland
  deliberately restricts what an application may do:

      No global stop shortcut.  There is no system-wide hotkey to end a
                                session. Use the End Session button on the
                                floating indicator, which stays on top for the
                                whole session, or stop sharing from your
                                desktop's own screen-sharing indicator.

      Touching your mouse or    On Windows, local input immediately pauses the
      keyboard may not always   administrator's control. On Linux this is
      interrupt the             best-effort: it is reliable while the
      administrator.            administrator is idle, but may not register
                                while they are actively moving the pointer. The
                                End Session button always works.

  The record of each remote-control session is written under
  ~/.local/state/UniFi-Endpoint/log/remote-session/, readable only by you. Note
  that because it is stored under your own account, it is not protected against
  modification by you - it is intended for support and troubleshooting, not as
  tamper-evident evidence.

  That folder is deliberately left OUT of the support file the app generates,
  even though the support file collects the rest of the log directory. The
  records name the administrator who connected, so they are yours to share
  deliberately rather than something an unrelated support upload carries away.

Removal
  CA certificates installed in the system trust store are removed, and the
  trust bundle is rebuilt, at removal time. When that happens depends on the
  packaging format:

      Debian / Ubuntu   on purge only:   sudo apt purge unifi-endpoint
      Fedora / RHEL      on removal:      sudo dnf remove unifi-endpoint
      openSUSE / SLE     on removal:      sudo zypper remove unifi-endpoint

  On Debian/Ubuntu a plain `apt remove` leaves the certificates in place;
  purge to fully revert the trust store. On rpm-based distributions the
  cleanup runs as part of a normal removal.

Installing without internet access
-----------------------------------

Installing with a high-level package manager (`apt install`, `dnf install`,
`zypper install`) contacts your distribution's online repositories to download
any dependencies that are not already on the machine. With no internet
connection that step fails with a repository/mirror download error. This is a
dependency-download failure, not a fault in UniFi Endpoint.

To install offline, use the low-level package tool, which never accesses the
network:

      Debian / Ubuntu   sudo dpkg -i ./unifi-endpoint_*.deb
      Fedora / RHEL     sudo rpm -Uvh ./unifi-endpoint-*.rpm
      openSUSE / SLE    sudo rpm -Uvh ./unifi-endpoint-*.rpm

If every dependency is already present, this completes the installation fully
offline. If one is still missing, the tool reports it and stops without
installing. The package most often absent on a stock desktop is the WireGuard
tooling (`wireguard-tools`), which the full-tunnel VPN feature needs.

For a missing dependency you have two options:

  1. Fetch it on a machine that has internet access and copy it over:

           Debian / Ubuntu   apt-get download wireguard-tools
           Fedora / RHEL     dnf download wireguard-tools

     then install it together with UniFi Endpoint in one command:

           sudo dpkg -i ./wireguard-tools_*.deb ./unifi-endpoint_*.deb
           sudo rpm -Uvh ./wireguard-tools-*.rpm ./unifi-endpoint-*.rpm

  2. Force the installation now and add the dependency later:

           Debian / Ubuntu   sudo dpkg -i --force-depends ./unifi-endpoint_*.deb
           Fedora / RHEL     sudo rpm -Uvh --nodeps ./unifi-endpoint-*.rpm

Do NOT run `apt-get install -f` to repair a forced Debian/Ubuntu install while
offline - that command goes online.

UniFi Endpoint starts either way. Only features whose supporting package is
absent are unavailable: without `wireguard-tools`, for example, the full-tunnel
VPN cannot connect and the app shows a notice asking you to install the
WireGuard package for your distribution.

 -- Ubiquiti Inc. <support@ui.com>
