[5.18.0] — 2026-11-27
Zero Trust gets its private side. Cloudflare Tunnel publishes the sites; Tailscale and NetBird are how the people who run the server reach it — SSH, the panel, the API and the sites on an address only the devices of the network can route to. cipi zt tailscale … and cipi zt netbird …, next to the Cloudflare commands, which do not change. The panel does all of it too (cipi/api 1.48.0, cipi/gui 4.10.0): join and leave a network, the two locks, Tailscale SSH — with the checks that keep a click from locking anyone out.
Added
-
cipi zt tailscale enable --auth-key=KEYandcipi zt netbird enable --setup-key=KEY— the server joins a mesh network. The client comes from its vendor's apt repository (pkgs.tailscale.comfor this Ubuntu's codename,pkgs.netbird.io), the mesh interface (tailscale0,wt0) is let through UFW, and nothing is closed: 22, 80 and 443 stay as they were.- The join key is handed to the client in a file only root reads (
--auth-key=file:…,--setup-key-file), never on the client's command line.--key-file=reads it from a file of yours; with no key at a terminal,enableasks for it. --hostname=,--direct(the WireGuard port open in UFW — 41641/udp, 51820/udp — for direct connections; without it peers come through hole punching or a relay),--accept-dnsand--accept-routes: off unless asked, so the network's DNS and routes do not change how a production server resolves and routes.- Tailscale:
--tags=tag:cipi(a tagged machine's node key does not expire),--login-server=URL(Headscale, or any other coordination server),--ssh(Tailscale SSH). NetBird:--management-url=URL(a self-hosted NetBird). - One mesh per server. Both hand out addresses in 100.64.0.0/10 and Tailscale drops what comes from that range outside its own interface: a second one is refused, with the reason. Cloudflare Zero Trust and a mesh work side by side.
- A client that was on the server before Cipi is adopted:
enablewithout a key, its settings untouched, anddisableleaves it installed and connected. What is only given when joining (--tags,--accept-dns…) is said, not silently dropped. Tailscale's--reauthsigns a machine in again (an expired node key, a tagged key in place of a personal one).
- The join key is handed to the client in a file only root reads (
-
cipi zt tailscale|netbird lock ssh— port 22 closed to the world, open on the mesh. It refuses:- unless the command itself arrives over the mesh (the way back to the session's address is the mesh interface): that it does is the proof that SSH works there. From the public address, or from a console, it says how to come in;
- while the mesh is not connected, sshd does not listen on its address, or UFW is not active (a lock that closes nothing is not recorded);
- (Tailscale) while the node key can expire: on that day the server leaves the tailnet, and with port 22 closed the provider's console is the only way in. Disable key expiry for the machine, or join with a tagged key.
--forceskips the session and the key checks.
-
cipi zt tailscale|netbird lock http— 80 and 443 closed to the world: every site, the panel and the API answer on the mesh address only (point their DNS records at it). For a staging or internal server. Refused while an app still renews its certificate over HTTP-01 (--forceto accept that); the hostnames on a Cloudflare tunnel keep working. -
unlock ssh|http, and the locks of the two sides know each other:cipi zt ssh unlock,cipi zt unlock httpandcipi zt disable(Cloudflare's) leave closed what the mesh's lock holds, and the other way round — each says who still holds the port.cipi firewall allow 22|80|443is refused under a mesh lock as it is under Cloudflare's, with the command that reopens it;cipi firewall status --jsongainszero_trust.by(http,ssh: who holds each). -
cipi zt tailscale ssh enable|disable— Tailscale SSH: tailscaled answers port 22 of the tailnet address and signs people in by the tailnet's SSH policy, no keys on the server. Refused from a session that came over the tailnet (it may end with it) unless--force. NetBird's own SSH server is never turned on: it takes port 22 of the mesh address away from OpenSSH and signs people in its own way; SSH over NetBird is OpenSSH with the keys ofcipi ssh, andcipi zt netbird statussays when someone turned that server on elsewhere. -
cipi zt tailscale|netbird status [--json]— connected or not and why, the address and name of the server on the network, the network, peers online, the node key's expiry in days, tags, locks, the command to come in, and warnings.cipi zt statusshows the mesh under Cloudflare's lines, andcipi zt status --jsongainsmesh— what the panel reads. -
cipi zt tailscale|netbird disable— what its locks closed is reopened first, then its firewall rules go, and last the server leaves the network and the client, its apt source and its key are removed. A session that came over the mesh ends at that last step: the removal ignores the hangup and runs to its end. -
From the panel — the API runs the same commands (
zt-manage, a new ability; the sudoers name each one), and they hold the line themselves when sudo comes fromwww-data:--forceis ignored. A token cannot skip what protects the operator.enable --adopttakes a client that is already installed and connected, and never asks for a key: what the panel sends when its form has none. With no client connected it stops, and says a key is needed.lock sshhas no session to look at: the proof that SSH works over the mesh is a login sshd accepted from an address reached over it (/var/log/auth.log). No such login yet, a node key that can expire, Tailscale SSH on (its sessions are not in sshd's log): refused, with what to do.lock httpanddisablenever cut the panel's own way in. The API says where its caller comes from (--via=): over the mesh, from this server, or through the Cloudflare tunnel, the lock goes ahead; from the public address it is refused — the panel could not reach the server again, not even to unlock.disableis refused when the panel comes over the mesh.- Nor the page of whoever is clicking. A panel that runs on the server it manages (
cipi gui) calls the API locally, so its API is never cut — but its pages are on 80/443 like every site. It passes the browser's address (--client=): on the public address,lock httpis refused, since the page would close itself; over the mesh, on the server, or with the panel's hostname on the Cloudflare tunnel, it goes ahead. cipi zt status --jsonsays it before the click:mesh.ssh.seen(the last login over the mesh),mesh.firewall_active,mesh.http01_apps, and — asked by the panel —mesh.panel(via,clientwhen a browser's address was given, andblocked.lock_ssh|lock_http|disablewith the reason, ornull).zt-manageis as strong asssh-manage: whoever holds it can put the server on a network of their own. A token made with a list of abilities has it only once it is named there; a--full-accesstoken has it, as it has every ability.
-
The mesh in the monitor — a
meshcheck (monitor_mesh, urgent): critical when the client is stopped or off the network (a node key that expired, a machine removed from the admin console) or the node key has expired; a warning when the key expires withindays(14,cipi monitor set mesh --days=) or the coordination server cannot be reached. Off while no mesh is on. With port 22 closed it says what that means. -
cipi help zt(alsotailscale,netbird,mesh), completion. -
How long a deploy step may run, per app. Two clocks, in seconds, with a fixed number for every app that says nothing:
cipi app deploy-config <app> --build-timeout=SECONDS— the frontend build: thenode_buildof a Laravel or Octane app, the install and the build of a Node app. 60 to 3600; 1800 unless set.cipi app deploy-config <app> --step-timeout=SECONDS— every other command of the deploy (Deployer'sdefault_timeout): the clone, Composer, the migrations. 60 to 1800; 300 unless set. A migration that needs ten minutes no longer has to be taken out of the deploy.- In
cipi.yml:deploy.build_timeoutanddeploy.step_timeout, validated, planned (a change only when the file's number is not the app's), applied with the other deploy options, and written bycipi yml init. - A number out of bounds is refused before anything is written. The default, asked for by its number, is stored as nothing.
--jsonand the table ofcipi app deploy-configshow both. The build never gets less than the other steps. cipi app deploy-configtakes a Node app, for what is not an artisan hook:--keep-releases,--build-timeout,--step-timeout,--predeploy-snapshot(until now itskeep_releasescould only come fromcipi.yml). An artisan flag is refused with what the app does take.- Migration 5.18.0 writes the app's own number where it has one. The panel and the API: cipi/gui 4.10.0, cipi/api 1.48.0 (
build_timeout,step_timeout);cipi-cli deploy config set --build-timeout / --step-timeout.
-
cipi app create --db=NAME: a database made with a custom or a Node app. The WordPress of a custom app needs a database, and getting one took a second command once the app was there. Now the app can be created with it:--db=wpblogmakes the databasewpblog, with a user of the same name and a generated password, on--engine=mariadb|pgsqlor the server's default;--dbalone names it like the app. Without the flag a terminal asks — a name, or nothing for no database — and, with two engines installed, which one.--no-dbskips the question; the panel and scripts are never asked.- It is linked to the app (
cipi db list,cipi app show, the panel show it as the app's, and it travels with it incipi sync), exactly ascipi db create --name=NAME --app=<app>does afterwards. The summary ofcipi app createshows its name, user, password, host and port — the password once. - Checked before anything of the app is created: a name that is not a database name, an engine that is not installed, and a database that is already on the server are refused (
--dbmakes one, it does not take one over:cipi db linkdoes that). - A Laravel app is created with its own database, as before — named like the app, in its
.env— and refuses--db, with the command for one more.
-
cipi syncwithout a terminal — what the panel's transfer wizard runs. Moving apps to another server was a conversation with a terminal: a host to type, a passphrase to type twice, a password when the key was not trusted. Each of those now has a form that asks nothing:cipi sync push … --import --auto-passphrase— the archive is encrypted with a passphrase made by the command for that one transfer: 48 characters, never shown, never stored, handed to the target's import over SSH on its standard input (cipi sync import --passphrase-stdin) — not as a flag, which is in the target's process list and in the line its sudo writes toauth.log. Only with--import(nobody would know the passphrase of an archive left for later) and with Cipi 5.18.0+ on the target; a passphrase of your own (--passphrase=) works as before and now travels the same way to a 5.18.0 target.- With nobody to ask (no terminal, or sudo from the panel)
pushprompts for nothing and says what is missing:--host, a passphrase. It does not fall back to a password when the target does not trust the key, and an import that fails on the target fails the push — the archive nobody can open is removed from the target. cipi sync check --host=IP [--port=] [--json]— can this server push there? Its sync key accepted, Cipi answering and which version, or the reason:not-trusted,unreachable,host-key-changed,no-cipi. Nothing is sent.cipi sync pubkey --raw,cipi sync trust --key=without a question (the key must be onessh-keygenreads, on one line), andcipi sync untrust --key=— the other half that was missing: the server whose key it is no longer signs in ascipihere.- The host, port and user of a target are checked before
sshsees them. The panel's sudoers takepubkey --raw,check,trust,untrustandpush— notexport,importorlist, which read or leave an archive at a path.
-
A Coming soon page for an app with no repository.
cipi app create --customwithout Git — the files come later, over SFTP — now answers at its domain with a page of its own until they do: Coming soon, the domain, a line of text and a small drawing that blinks. One file with nothing fetched from anywhere: no web font (the visitor's system font), no image (inline SVG, the favicon included), no script or stylesheet of another site. In English. Light and dark by the visitor's theme, still for who asked for less motion, not indexed, and with no name on it but the site's — it is what the visitors of whoever runs the server see.- It is
coming-soon.html, the last choice of the vhost'sindex(index index.html index.php coming-soon.html): nginx serves it only while the folder has neither anindex.htmlnor anindex.php. The site that is uploaded takes its place by being there — WordPress'sindex.phpincluded, which anindex.htmlplaceholder kept hidden until someone deleted it. Nothing to remove; the file can be deleted, or kept and edited. - The summary of
cipi app createsays it is there and how it leaves.
- It is
-
The page cache purges some pages, not only all of them.
cipi cache <app> purge /blog/hello-world/ /category/news/*deletes those pages — on every domain and alias of the app, http and https,GETandHEAD, with their?utm_…variants — and leaves the rest of the cache warm. A trailing*is every page whose path starts so; a full URL (https://www.example.com/x/) is that page on that host only, and the host has to be one of the app's.--jsonsays how many files went. At most 500 pages at once;purgewith no page isclear, as before.- The app's own user can do it too:
sudo /usr/local/bin/cipi-cache-clear <app> <path>…— what a WordPress plugin, a deploy recipe or a Laravel listener calls when some content changes. Each target is checked before anything is deleted; the user may purge its own app only. The sudoers rule (cipi-cache-clear <app> *) is in every new app, and migration 5.18.0 adds it to the existing ones. - The WordPress plugin cipi-sh/cache-wp purges the pages a change touches — the post, its archives, the home page, the feeds — on publish, update, delete, comment, menu and theme changes. The PHP package cipi-sh/cache-php does the same from any PHP app, with a Laravel integration.
- A page is found by its own key: nginx writes
KEY: <scheme><method><host><uri>at the top of each cached file, and that line is what is matched — not a guess of the file's name.
- The app's own user can do it too:
-
Backups to SFTP: a server reached over SSH is a backup destination next to
localand the S3 ones — a VPS with a user of its own for backups, a Hetzner Storage Box (port 23), a NAS.cipi backup destination add box --type=sftp --host=u1234.your-storagebox.de --port=23 --user=u1234 [--path=cipi]keeps the address and makes a key of its own for that destination (/etc/cipi/backup-keys/<name>, root only), printing its public half and how to install it:authorized_keyson a server of yours,ssh-copy-id -p 23 -s …for a Storage Box. No password is asked for or stored.cipi backup destination test boxwrites and removes a file there;destination key box [--raw]prints the key again;edit --new-keymakes a new one.- A profile names it like any other destination (
--dest=local,box,destinations: [box]in cipi.yml): runs go to<folder>/cipi/<profile>/<timestamp>/, the layout of a bucket, and are pruned, listed, verified and fetched the same way. - Only SFTP is asked of the remote — no shell, no rsync — so a chrooted
internal-sftpaccount works. The host key is pinned on first use in/etc/cipi/backup-keys/known_hosts; every connection isBatchModewith that key only. - From the panel, the API, cipi-cli and the SDK too. An SFTP destination carries no secret, so the panel may add, edit and remove one (
backup destination add|edit <name> --type=sftp …,key,removein the panel's sudoers); an S3 destination is still added at the shell — the CLI refuses one asked for by the panel.
-
Safer self-updates, off unless turned on (
cipi self-update policy). Every server installs what is on GitHub every night, as before; two safeguards can now be added, alone or together, so that an account that is taken over cannot reach every server within a day:--verify=on— a signed release only. A release is installed only when its annotated tagv<version>points at the commit downloaded and is signed (SSH signature,git verify-tag) by a key of/etc/cipi/release-signers. That list is the server's own: a release cannot vouch for itself, it can only replace the list after it has been verified with the old one. The first trust is explicit — the keys shipped with the release are offered with their fingerprints, to compare with the ones published on cipi.sh (--fingerprint=SHA256:…without a terminal). A release that fails is not installed; the reason is logged and notified (self_update). A commit pushed on top of the signed tag is refused too: what is installed is what was signed. Maintainers sign withscripts/sign-release.sh.--delay=12h— wait before installing. A new commit is installed only once this server has seen it for that long (hours or days, a week at most;--delay=onis 12 hours). The clock is the server's — a commit date can be forged — and a branch that moves (a fix, a revert) starts a new wait. While a delay is on, an hourly check (/etc/cron.d/cipi-selfupdate-delay) installs a held release when it is due instead of waiting for the night.cipi self-update --nowinstalls at once — the signature is still checked.cipi self-update policy [--json]shows both, the trusted keys, what is waiting and why the last update was held. From the panel (Settings → Updates), the API (GET|PUT /api/self-update/policy), cipi-cli and the SDK too.
Fixed
-
A deploy stopped while building the frontend — "exceeded the timeout of 300 seconds" — some days and not others. Deployer stops any command after
default_timeout, 300 seconds, and the asset build of a Laravel app (node_build, usuallynpm ci && npm run buildas one command) is the step of a deploy that comes close to it: on a small server, or on a day when a backup or another deploy is running next to it, it went over, and the deploy failed attask cipi:node_buildwithThe command "… /.deployer/node-build.sh /home/<app>/releases/N" exceeded the timeout of 300 seconds. The build now has a limit of its own: 30 minutes.- Laravel and Octane apps:
cipi:node_build. Node apps:node:install(npm ci,pnpm install,yarn install,bun install) andnode:build, which were on the same 300 seconds each. - Every other step keeps Deployer's 300 seconds — the clone, Composer, the migrations, the switch: a step that hangs is still stopped soon, and the limit is back in place as soon as the build ends, also when it fails.
- In
deploy.phpit is one number,set('cipi_build_timeout', 1800)— the app's own where it has one (below) — and the build commands run throughcipi_build_run(), which raisesdefault_timeoutfor that command only. No named argument (timeout:), so the file still parses under PHP 7.4 on a server that kept Deployer 7. Adefault_timeoutsomeone turned off or made longer in a recipe of their own is never shortened. - The apps that exist get it with the update: migration 5.18.0 appends the block to each
deploy.php(deployer_build_timeout_ensure_hook) — the build task defined again, with the limit; nothing that was in the file is rewritten. The next deploy is the first one with 30 minutes. Adeploy.phpwhose build task is not the one Cipi wrote is left as it is and named, with the command that writes the recipe again;cipi syncgives the block to the apps it restores. cipi deploysays it in plain words when a step is stopped on that clock, right underDeploy failed: which step it was and for how long it ran — and, for a build in adeploy.phpthat does not have the 30 minutes, the command that gives them to it. Until now the reason was one line inside a PHP exception.- A deploy started from the panel had a second ceiling — ten minutes for the whole job, in the API. cipi/api 1.48.0 gives a deploy two hours.
- Laravel and Octane apps:
-
UFW rules numbered below ten were never removed by
cipi zt unlock http,cipi zt disableand the nightly refresh of Cloudflare's ranges.ufw status numberedpads the number ([ 1]), so it was not the first field the code read: the Cloudflare-only rules UFW had numbered 1 to 9 stayed after the lock was gone. The number is now read from the line itself. -
A custom app with a document root other than
htdocsanswered 404 until its first upload. The placeholder was written to~/htdocs/index.htmlwhatever--docrootsaid, and the folder nginx serves (~/htdocs/www,~/htdocs/public) was not even created. The page is now written in the document root, which is created with it. -
cipi app create --docroot=takes a folder name and nothing else. The value became nginx'srootas it was typed:--docroot=/www/gavehtdocs//www/, and..was not refused. It is now cleaned (/www/iswww;/and.arehtdocsitself) and checked — letters, digits, dots, dashes and underscores, folders separated by/, no..and no hidden folder — before anything is created. What the panel's API already accepted is accepted. -
The pre-deploy snapshot of a Node app did nothing.
deploy.predeploy_snapshotincipi.yml— and nowcipi app deploy-config <app> --predeploy-snapshot— was accepted for a Node app, and the deploy then skipped the dump: a Node app is a custom app, and has no database named after it. It now dumps the databases linked to the app (cipi app create --db=,cipi db create --app=,cipi db link), one file each, to/var/log/cipi/backups/<engine>_<database>_predeploy_<date>.sql.gz. With none linked the deploy says so, with the command that links one, and goes on;cipi deploy <app> --snapshot-requiredstops there instead. A failed deploy names the database in its restore line (cipi db restore <database> <file>). Laravel apps (their own database) and custom apps without a release recipe (no snapshot) are as before.
Changed
- The notifications
zt_enable,zt_disable,zt_lock_httpandzt_lock_sshare sent for the mesh too; their names incipi notificationsay so. A channel that takes them takes both sides'.
Notes
- Migration 5.18.0 touches
deploy.phpand nothing else (the build's time limit, above): nothing restarts, nothing is deployed. Of the mesh, nothing is installed or changed untilenable:setup.shandcipi self-updatenever call it. - Who reaches what is the network's own policy, not UFW's: the mesh interface is allowed as a whole, as Tailscale's own guide does (its client accepts its interface before UFW is asked). Write the tailnet's access rules, or NetBird's policies, so that the people who run the server reach tcp 22, 80 and 443 of it, and nobody else does.
- A database or Valkey from a laptop over the mesh: an SSH tunnel (TablePlus and DBeaver call it "over SSH") — the ports stay on localhost. There is no
tcp addfor the mesh. - Cloudflare's side stays read-only in the panel:
cipi zt statusonly, as before. Tunnels, hostnames, Access and their locks are still the server's shell. - Tailscale and NetBird themselves are not on the machine the release was prepared on.
tests/verify-5.18.0.shruns every command, from the shell and as the panel, against stubs oftailscale,netbird,ufw,ip,systemctlandapt-getthat keep a state and answer as the vendors' documentation says (tailscale status --json, NetBird's textnetbird status); the flags oftailscale upandnetbird upare the documented ones. On a first real server:cipi zt tailscale enable --auth-key=…, thencipi zt tailscale status, before any lock. - The panel's side: cipi/api 1.48.0 and cipi/gui 4.10.0.
- Custom apps created before: nothing changes. An SFTP-only app keeps the
index.htmlit was given; its vhost gets the newindexline the next time it is written, which changes nothing where there is nocoming-soon.html.