github cipi-sh/cipi 5.25.0
Version 5.25

one hour ago

[5.25.0] — 2026-12-04

Laravel Go, compiled on the server and switched blue/green. cipi app create --go: the app Laravel for Go compiles to — one binary that serves HTTP itself — built with go build at every deploy, started beside the release that is serving and given the traffic only once it answers on /up. The second app of that kind after Laravel Rust, on the same blue/green slots. Experimental, as the framework is in beta.

A Go for the server. cipi go: the latest stable Go from go.dev in /opt/cipi/go, checked against the sha256 go.dev publishes for it. A go.mod that asks for a newer one is followed by the go command itself, in the app's own cache.

A certificate of your own, next to Let's Encrypt. cipi ssl custom <app> --cert= --key=: one bought from a CA, issued by a company's CA or made by hand is served instead of the Let's Encrypt one — for an app, and with cipi api ssl / cipi gui ssl --cert= --key= for the panels. Checked before it is installed, never renewed, removed with one command.

The installer asks how far to harden SSH, and works on a private network. High — what Cipi has always done — unless low is chosen: nothing else leads there. The server's address falls back to the one of its own interface where no public one is found, and can be said.

Basic auth in front of the panel (#597): cipi gui basicauth enable — a user name and a password the browser asks for before the panel's own sign-in page.

Three issues: cipi scan paths and the PHP files that appear among uploads (#586), cipi nginx real-ip lock (#587), cipi php entry (#588).

Added

  • cipi app create --go (or --framework=laravel-go, or Laravel Go in the menu):
    • Releases from Git: the commit in releases/<n>, the frontend build when the repository has a package.json (npm ci, then --build, npm run build unless told otherwise), go build -o bin/app . — the module cache and the build cache kept between releases in ~/.cache/cipi-go, outside the releases and outside shared/ — bin/app migrate --force (cipi app deploy-config <app> --no-migrate turns it off), then the release is started on the idle slot and has to answer on /up before nginx moves and current follows. A deploy that fails leaves the release that was serving where it was; cipi deploy <app> --rollback switches back to the binary of the release before.
    • shared/: the .env — APP_KEY, APP_URL, APP_ENV=production, APP_DEBUG=false, DATABASE_URL, sessions, cache and queue in the database (cookie, memory and sync with --no-db), logs to stderr, which is the slot's log — and storage/ as Laravel's skeleton has it: the two disks, the file sessions, the daily logs. SERVER_HOST and SERVER_PORT are the slot's, set by Cipi for each process.
    • A database named after the app (--db=NAME for another name, --no-db for none), on PostgreSQL where the server has it and on the server's default where it has not (--engine=mariadb|pgsql says otherwise): the driver is Go code of the app — Options.Drivers in bootstrap/app.go — and Laravel's skeleton lists postgres.Driver alone.
    • The driver of the server's database is in the build (go:driver, after go:config): the go command is asked which packages the binary is built from (go list -deps). Where the DATABASE_URL's driver is not among them and another of Laravel's is — the skeleton lists postgres.Driver alone, and the server has MariaDB — Cipi adds it to this release's copy of bootstrap/app.go: the import of go.laravel.com/db/<driver>, marked as Cipi's, and the driver in Options.Drivers; the build then runs with -mod=mod, so the go command takes the package from the go.laravel.com the app already requires. The repository is not touched, the deploy says which two lines make it the repository's own, and until then each deploy does the same. Where it cannot be done — no single Drivers: []db.Driver{ to add to, a module the go command cannot get — the file is put back and the deploy stops before the build, with go's own words and the lines to write. An app with none of Laravel's drivers (it may have one of its own) gets a warning; one that is not built on Laravel's database package, nothing.
    • The queue worker and the scheduler, on by default as a Laravel app has them (--no-queue, --no-scheduler; later cipi app edit <app> --queue=on|off --scheduler=on|off): bin/app queue:work as a Supervisor program beside the two slots (<app>-queue), restarted on the release that went live once nginx has moved, with two and a half minutes to finish its job on SIGTERM; bin/app schedule:run every minute from the app's crontab, and schedule:interrupt after a deploy.
    • Inertia SSR (--ssr, cipi app edit <app> --ssr=on|off), on a port of the app's own: node bootstrap/ssr/app.js beside the app (<app>-ssr), on localhost, on a port between 13800 and 13899 kept in apps.json (go_ssr_port). The bundle the frontend build writes listens on Inertia's 13714 whatever the app, so the program is started with a preload of Cipi's (/usr/local/share/cipi/ssr-port.cjs) that makes its server listen on the app's port instead, and INERTIA_SSR_URL in the .env tells the app where it is — so any number of Laravel Go apps of a server can have SSR. The frontend build becomes npm run build:ssr. With the SSR server down, Inertia renders in the browser.
    • --go-main=<package> (and cipi app edit <app> --go-main=): the main package when it is not the repository's root — ./cmd/server — for the build and for the driver. . unless given; a package that is not there, or is not main, is the deploy's error, by name.
    • Reverb (cipi app reverb enable <app>): the binary's own reverb:start beside the slots, on a localhost port, with nginx sending the Pusher paths to it. Every Laravel Go binary has the command: nothing to add to the build.
    • The rest of an app: Cipi's Git webhook (no cipi/agent), cipi app artisan <app> <command> and laravel <command> in the app's own shell for the commands of the binary, cipi app logs <app> --type=go (the process's output and storage/logs), cipi app run --commands, cipi app show and cipi app list (runtime go), cipi app deploy-config (framework: "laravel-go" in its JSON), cipi node status|restart|logs, previews of a branch (cipi preview), cipi sync, and the node: section of cipi.yml (version, build, health_path).
  • cipi go (lib/go.sh) — status [--json], install, update, remove, clean <app>.
    • install (it comes with the first --go app): the latest stable of https://go.dev/dl/?mode=json — the highest version of the list, a release candidate is not one — its linux-amd64 or linux-arm64 archive downloaded over https, checked against the sha256 of the list and unpacked into /opt/cipi/go/<version>; /opt/cipi/go/bin points at it. Root's, read and run by the apps.
    • update: the latest stable beside the one in use, then bin moves in one step. Apps keep running the binary they have and are rebuilt by their next deploy; the Go that was in use stays on disk until the update after — a build that is running finishes with it.
    • remove is refused while a Laravel Go app is there. clean <app> removes the app's module cache and build cache, as the app (the next deploy downloads and compiles from the start).
    • A go.mod that asks for a newer Go than the server's, or names a toolchain, is followed: the go command downloads that toolchain itself (GOTOOLCHAIN=auto), verified against Go's checksum database, into the module cache of that app. No helper of root's, and nothing another app sees. The deploy says which Go built the release.
  • The panel (www-data sudoers): go status --json, go install, go update, go clean <app>.
  • cipi help go, the commands in cipi help, completion for cipi go and --go.
  • cipi ssl custom <app> (lib/custom-cert.sh) — --cert=<file> --key=<file> [--chain=<file>], --pem-stdin, --remove, and with nothing, or --json, what is installed.
    • Checked before anything changes: PEM, one key without a passphrase, the key is the certificate's, the dates, and the certificate is valid for the app's primary domain. Told, and done anyway: an alias it does not cover, an expiry within 30 days, a certificate that came without its chain.
    • Served instead of Let's Encrypt's, from /etc/ssl/cipi-custom/<app>/ (root's): the vhost takes the certificate of your own first, then a Cloudflare Origin CA one, then Let's Encrypt's. A certificate nginx refuses is not installed, and what was served before — the previous one of your own, Let's Encrypt's, plain HTTP — is back.
    • The Let's Encrypt certificate stays on the server and keeps renewing: --remove goes back to it, or says that the app answers on http:// only. cipi ssl install on an app served with its own is refused unless --replace-custom: yours keeps serving until Let's Encrypt's is issued.
    • Nothing renews it. cipi ssl status shows it with its date, and cipi monitor's certificate check reads it as it reads the others.
    • From the panel the certificate and the key come on standard input (--pem-stdin), never as a path of the server; www-data may run cipi ssl custom *.
    • Deleting the app removes it. A change of domain keeps it and says whether it is valid for the new name. cipi sync does not carry it: the import says which apps had one. cipi zt's Origin CA certificate is not installed over it.
  • cipi api ssl and cipi gui ssl take --cert= --key= [--chain=], --pem-stdin and --replace-custom — and cipi api <domain>, cipi gui <domain> and their move take the first three at setup. Checked as an app's is; the panel's vhost is as it was if nginx refuses. A move to a name the certificate is not valid for removes it and asks Let's Encrypt; one to a name it still covers (a wildcard) keeps it. Without a certificate of your own, the two commands are what they were.
  • The installer asks the SSH hardening level (SSH_HARDENING=high|low, or the question: Enter, no terminal, anything but an explicit low is high).
    • High is what Cipi has always written, byte for byte: the cipi user alone, with a key, no root login, no passwords.
    • Low leaves who may log in, and how, as the image has it — root, passwords, other users — and adds what Cipi needs; a key for cipi is optional. An AllowUsers or AllowGroups of the image is kept, and the installer says what that leaves out.
    • cipi ssh hardening: the level, and what sshd actually applies (--json). cipi ssh hardening high raises a server installed low: it needs a key for cipi, works on a copy that sshd -t accepts and sshd -T shows effective, keeps a backup, reloads. No command lowers it.
    • cipi credentials and the compliance report say the level.
  • The server's address, on a private network too. The installer asks three services for the public address instead of one, takes only an answer that is an IPv4 address, and falls back to the address of the interface the default route leaves from: a VPS in a VPC with no public address installs. Behind NAT both are shown. SERVER_IP=<address> says it at install; cipi server ip shows the public, the internal and the declared one (--json), cipi server ip <address> declares it, auto forgets it. Every place that asked one service — the summaries, cipi ssh, cipi sync, the API's and the metrics' status, the panels' DNS check — asks this.
  • cipi scan paths <app> (#586) — --uploads=a,b names the folders of a site where files arrive (uploads, images/products), --exclude=c,d what the integrity check leaves out (cache), none empties either, --json. Kept in apps.json, not in cipi.yml: a file in the app's tree can be written by what the scan is there to catch. The folders Cipi already knew (wp-content/uploads, storage/app) are scanned as before.
    • A PHP file that appears in an upload folder, or changes there, is reported by name by the nightly scan, in a section of its own and in the notification, until it goes or is accepted (cipi scan manifest <app>). The ones there when a folder is first watched are accepted as they are, and listed once.
    • An app with no manifest gets one at its first scan, with a notification, instead of being skipped every night.
  • cipi nginx real-ip lock (#587) — [--yes] [--force]: 80/443 from Cloudflare's ranges only, in UFW, written again every night with the ranges — nobody goes around the proxy with a CF-Connecting-IP of their choice. Refused, with the names, while a certificate still renews over HTTP-01 or a name does not go through Cloudflare (--force goes ahead), under Zero Trust (its own lock is cipi zt lock http), with real-ip off, with UFW inactive. unlock opens them; real-ip off is refused while locked; status --json says locked and lock_by. www-data may run lock --yes and unlock.
  • cipi php entry <app> (#588) — the .php files of an app that PHP runs: index.php,admin/tool.php (ten at most), off for every .php as before, --json. With a list, any other .php is a 404 from nginx: a file dropped among uploads is not executed. New Laravel apps on PHP-FPM are created with index.php (--php-entry=<list>|off says otherwise; a clone and a preview take their source's). Existing apps, and every other type, keep the vhost they have until the command is run. A vhost nginx refuses is put back.
  • cipi gui basicauth enable|status|disable (#597) — HTTP basic auth (RFC 7617) on the whole panel, for a server whose panel is not behind Cloudflare Access (cipi zt access enable --gui is the stronger one, and stays).
    • enable [--user=NAME] [--password=PASS]: admin and a generated password, shown once, when not given (a terminal asks). Run again with another --user= to add a user; the same name replaces its password. The credentials are an apr1 htpasswd file, /etc/nginx/cipi-basicauth/gui.htpasswd (root:www-data, 640), in the directory the apps' basic auth uses — gui is a reserved name, no app can have that file.
    • In the vhost, between two marker comments, in the server block that has the panel's root: auth_basic and the file, and the ACME challenge path (/.well-known/acme-challenge/) left open so the certificate keeps renewing. Put in — and taken out — in the vhost as it is, after certbot has rewritten it: what certbot wrote is untouched, the redirect block has none.
    • Nothing half-done: nginx -t must accept it; if it does not, the vhost, the credentials and the flag are as they were. A flag without credentials is not on, so nobody is locked out by a missing file.
    • cipi gui move keeps it: the vhost written again for the new domain has the block. disable takes the block, the file and the flag away and leaves the vhost as it was before; cipi gui remove takes the file with it. cipi gui status says when it is on.
    • Logged, and notified (gui_basicauth, Security). Not a command of the panel's own sudoers: a panel does not decide who may reach it.

Changed

  • cipi-node-switch and cipi-node-run know the two frameworks by name (laravel-rust, laravel-go in the state file): the same slots, the same programs beside them, SERVER_HOST and SERVER_PORT for the slot. A Laravel Rust app's programs are written as they were; only a Laravel Go worker gets the longer stop.
  • Messages that named Laravel Rust alone name the two where the two are meant: --queue, --scheduler and --ssr on an app of another type, --no-queue on create, Reverb on a custom app. --rust-bin is still a Laravel Rust app's, and is refused on a Laravel Go app (its binary is the main package of the repository).

Fixed

  • cipi scan looked for an app's upload folders under another app's home where the calling function had a variable named app (local app="$1" home="/home/${app}" reads ${app} before it is set), and found no PHP file through the current link of an app in releases (find -P does not follow it). Both in the nightly scan.

Notes

  • Nothing changes on a server without Laravel Go apps. No migration: an update brings lib/go.sh, the recipe, the switch and the launcher, and writes the panel's sudoers again. Go is installed with the first --go app, not before.
  • nginx is in front of the app, on the same server: m.Proxies = []string{"127.0.0.1"} in bootstrap/app.go, for https:// URLs and the visitor's address. It is a line of the repository — the summary of cipi app create --go and cipi help go say so.
  • A Laravel Rust app's Inertia SSR is what it was: one app of the server, on 13714 (lib/rust.sh is unchanged). A Laravel Go app neither takes that place nor is refused by it.
  • The Go an app runs on: a go.mod that asks for a newer Go is followed by the go command itself (GOTOOLCHAIN=auto), with no helper of root's — and cipi go status says, for each app, the Go its binary was built with.
  • The queue worker of a Laravel Go app is given 150 seconds to stop; a Laravel Rust one 60, as before.
  • In apps.json a Laravel Go app is what a Laravel Rust app is — custom: true, runtime: "node", node_mode: "ssr" — with node_framework: "laravel-go" and go_queue, go_scheduler, go_ssr. What is the same for the two is asked of the kind (app_binary_kind, lib/common.sh).
  • The API, the panel, the SDK and the CLI client follow — cipi/api 1.54.0, cipi/gui 4.18.0, the PHP SDK and cipi-cli — with Laravel Go apps (create and edit, go_main, the server's Go and the Go each app runs on) and the certificate of your own for an app, and the documentation site has the pages of this release. The SSH level, the server's address, cipi scan paths, cipi php entry and the real-ip lock are commands of the server, with no route.
  • Not run on a real server. Four suites, 573 checks. tests/verify-5.25.0.sh (234) runs the recipe's tasks for real with this machine's go — go:config, go:driver adding a driver against a module that stands in for go.laravel.com's database packages, go build with and without --go-main, migrate, the binary started by the launcher on a slot's port, the SSR preload under a real node — the toolchain over a mirror for curl, and the blue/green switch over stubs. verify-5.25.0-server.sh (111) runs the installer's questions and setup_ssh on a copy of sshd_config — the high level compared byte for byte with what the installer of 5.24 writes — the address with every service down, and cipi ssh hardening with sshd stubbed. verify-5.25.0-ssl.sh (120) installs, replaces and removes certificates made with a real openssl CA, with nginx and certbot stubbed. verify-5.25.0-issues.sh (108) compares the vhost of every type of app with the one 5.24 writes, and runs the scan on real trees. The earlier suites give what they give on 5.24 (one of them counted two SSL install paths: there are three now). Not run: a real sshd, nginx, ufw, certbot or ClamAV. Laravel's own skeleton (laravel/go, 0.x) was taken as far as its frontend goes — npm run build:ssr, the SSR server answering — and the framework's source (go.laravel.com v0.2.0) was read for what the recipe relies on; its Go build needs Go 1.27 and go.laravel.com's modules, and the machine this was written on reaches neither go.dev nor Go's module proxy. cipi app create --go end to end is read from the source and run step by step.

Don't miss a new cipi release

NewReleases is sending notifications on new releases.