Prerequisites
You will need:- A Tailscale account with the MagicDNS and HTTPS certificates features enabled.
- A Linux host with Docker and Docker Compose.
Tailscale setup
Browse to https://login.tailscale.com/admin/acls/file to edit the access controls for your tailnet, and add the following JSON to thegrants section:
tsidp-grant.json
Prepare deployment
Before proceeding, set your Tailnet DNS name as a variable, it is referenced throughout the steps below:.env file with your Tailscale auth key and the tsidp issuer URL:
serve-config.json. This tells the Tailscale sidecar which ports to expose over HTTPS and where to forward incoming traffic. Omni shares the network of the Tailscale sidecar, so traffic is forwarded to 127.0.0.1:
docker-compose.yml. This defines three services:
tsidp: the OIDC provider.omni-tailscale: the Tailscale sidecar. It connects to the tailnet, serves Omni over HTTPS, and resolves tailnet names such astsidp.${TAILNET_DNS}with MagicDNS.omni: Omni itself. It uses the network ofomni-tailscaleand starts after the sidecar’s health check passes. The machine API and the Kubernetes proxy listen on127.0.0.1:8090and127.0.0.1:8100, the addresses that the Tailscale sidecar forwards to.
<your-admin-email>: the email address of the first Omni admin. Use the email address of your Tailscale account, because tsidp sends that address to Omni when you log in.<your-name>and<your-email>: the name and email address that accept the End User License Agreement (EULA). Omni requires acceptance of the EULA to start.
OMNI_AUTH_OIDC_CLIENT_SECRET environment variable.
Alternatively, you can configure the OIDC authentication flags above using a configuration file instead. See OIDC in the Omni Configuration Examples. To accept the EULA in a configuration file, see eulaAccept.
OIDC client setup
At this point all that’s left to do is register Omni as an OIDC client in tsidp. Start only tsidp first:https://tsidp.${TAILNET_DNS} and create a new client. For the redirect URI, use https://omni.${TAILNET_DNS}/oidc/consume.
Copy the client ID and secret that tsidp generates, then append them to your .env file:
https://omni.${TAILNET_DNS}/. You should be prompted to log in with your Tailscale user and then taken to the Omni UI.
If login fails with a message that the identity is not authorized for this instance, the email address in --initial-users does not match the one shown on the login screen. Omni reads --initial-users only the first time it starts, so changing it later has no effect on its own.
To fix it, set --initial-users in docker-compose.yml to the email address shown on the login screen. Then remove Omni and its data volumes, and start it again: