[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 apackage.json(npm ci, then--build,npm run buildunless 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 outsideshared/—bin/app migrate --force(cipi app deploy-config <app> --no-migrateturns it off), then the release is started on the idle slot and has to answer on/upbefore nginx moves andcurrentfollows. A deploy that fails leaves the release that was serving where it was;cipi deploy <app> --rollbackswitches 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 — andstorage/as Laravel's skeleton has it: the two disks, the file sessions, the daily logs.SERVER_HOSTandSERVER_PORTare the slot's, set by Cipi for each process.- A database named after the app (
--db=NAMEfor another name,--no-dbfor none), on PostgreSQL where the server has it and on the server's default where it has not (--engine=mariadb|pgsqlsays otherwise): the driver is Go code of the app —Options.Driversinbootstrap/app.go— and Laravel's skeleton listspostgres.Driveralone. - The driver of the server's database is in the build (
go:driver, aftergo:config): the go command is asked which packages the binary is built from (go list -deps). Where theDATABASE_URL's driver is not among them and another of Laravel's is — the skeleton listspostgres.Driveralone, and the server has MariaDB — Cipi adds it to this release's copy ofbootstrap/app.go: the import ofgo.laravel.com/db/<driver>, marked as Cipi's, and the driver inOptions.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 singleDrivers: []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; latercipi app edit <app> --queue=on|off --scheduler=on|off):bin/app queue:workas 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 onSIGTERM;bin/app schedule:runevery minute from the app's crontab, andschedule:interruptafter a deploy. - Inertia SSR (
--ssr,cipi app edit <app> --ssr=on|off), on a port of the app's own:node bootstrap/ssr/app.jsbeside the app (<app>-ssr), on localhost, on a port between 13800 and 13899 kept inapps.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, andINERTIA_SSR_URLin the.envtells the app where it is — so any number of Laravel Go apps of a server can have SSR. The frontend build becomesnpm run build:ssr. With the SSR server down, Inertia renders in the browser. --go-main=<package>(andcipi 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 notmain, is the deploy's error, by name.- Reverb (
cipi app reverb enable <app>): the binary's ownreverb:startbeside 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>andlaravel <command>in the app's own shell for the commands of the binary,cipi app logs <app> --type=go(the process's output andstorage/logs),cipi app run --commands,cipi app showandcipi app list(runtimego),cipi app deploy-config(framework: "laravel-go"in its JSON),cipi node status|restart|logs, previews of a branch (cipi preview),cipi sync, and thenode:section ofcipi.yml(version, build, health_path).
- Releases from Git: the commit in
cipi go(lib/go.sh) —status [--json],install,update,remove,clean <app>.install(it comes with the first--goapp): the latest stable ofhttps://go.dev/dl/?mode=json— the highest version of the list, a release candidate is not one — itslinux-amd64orlinux-arm64archive downloaded over https, checked against the sha256 of the list and unpacked into/opt/cipi/go/<version>;/opt/cipi/go/binpoints at it. Root's, read and run by the apps.update: the latest stable beside the one in use, thenbinmoves 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.removeis 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.modthat 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-datasudoers):go status --json,go install,go update,go clean <app>. cipi help go, the commands incipi help, completion forcipi goand--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:
--removegoes back to it, or says that the app answers onhttp://only.cipi ssl installon 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 statusshows it with its date, andcipi 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-datamay runcipi ssl custom *. - Deleting the app removes it. A change of domain keeps it and says whether it is valid for the new name.
cipi syncdoes not carry it: the import says which apps had one.cipi zt's Origin CA certificate is not installed over it.
cipi api sslandcipi gui ssltake--cert= --key= [--chain=],--pem-stdinand--replace-custom— andcipi api <domain>,cipi gui <domain>and theirmovetake 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 explicitlowis high).- High is what Cipi has always written, byte for byte: the
cipiuser 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
cipiis optional. AnAllowUsersorAllowGroupsof the image is kept, and the installer says what that leaves out. cipi ssh hardening: the level, and whatsshdactually applies (--json).cipi ssh hardening highraises a server installed low: it needs a key forcipi, works on a copy thatsshd -taccepts andsshd -Tshows effective, keeps a backup, reloads. No command lowers it.cipi credentialsand the compliance report say the level.
- High is what Cipi has always written, byte for byte: the
- 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 ipshows the public, the internal and the declared one (--json),cipi server ip <address>declares it,autoforgets 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,bnames the folders of a site where files arrive (uploads,images/products),--exclude=c,dwhat the integrity check leaves out (cache),noneempties either,--json. Kept inapps.json, not incipi.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.
- 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 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 aCF-Connecting-IPof their choice. Refused, with the names, while a certificate still renews over HTTP-01 or a name does not go through Cloudflare (--forcegoes ahead), under Zero Trust (its own lock iscipi zt lock http), with real-ip off, with UFW inactive.unlockopens them;real-ip offis refused while locked;status --jsonsayslockedandlock_by.www-datamay runlock --yesandunlock.cipi php entry <app>(#588) — the.phpfiles of an app that PHP runs:index.php,admin/tool.php(ten at most),offfor every.phpas before,--json. With a list, any other.phpis a 404 from nginx: a file dropped among uploads is not executed. New Laravel apps on PHP-FPM are created withindex.php(--php-entry=<list>|offsays 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 --guiis the stronger one, and stays).enable [--user=NAME] [--password=PASS]:adminand 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 —guiis 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_basicand 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 -tmust 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 movekeeps it: the vhost written again for the new domain has the block.disabletakes the block, the file and the flag away and leaves the vhost as it was before;cipi gui removetakes the file with it.cipi gui statussays 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-switchandcipi-node-runknow the two frameworks by name (laravel-rust,laravel-goin the state file): the same slots, the same programs beside them,SERVER_HOSTandSERVER_PORTfor 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,--schedulerand--ssron an app of another type,--no-queueon create, Reverb on a custom app.--rust-binis 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 scanlooked for an app's upload folders under another app's home where the calling function had a variable namedapp(local app="$1" home="/home/${app}"reads${app}before it is set), and found no PHP file through thecurrentlink of an app in releases (find -Pdoes 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--goapp, not before. - nginx is in front of the app, on the same server:
m.Proxies = []string{"127.0.0.1"}inbootstrap/app.go, forhttps://URLs and the visitor's address. It is a line of the repository — the summary ofcipi app create --goandcipi help gosay so. - A Laravel Rust app's Inertia SSR is what it was: one app of the server, on 13714 (
lib/rust.shis unchanged). A Laravel Go app neither takes that place nor is refused by it. - The Go an app runs on: a
go.modthat asks for a newer Go is followed by the go command itself (GOTOOLCHAIN=auto), with no helper of root's — andcipi go statussays, 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.jsona Laravel Go app is what a Laravel Rust app is —custom: true,runtime: "node",node_mode: "ssr"— withnode_framework: "laravel-go"andgo_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 entryand 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:driveradding a driver against a module that stands in forgo.laravel.com's database packages,go buildwith and without--go-main,migrate, the binary started by the launcher on a slot's port, the SSR preload under a realnode— 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 andsetup_sshon a copy ofsshd_config— the high level compared byte for byte with what the installer of 5.24 writes — the address with every service down, andcipi ssh hardeningwithsshdstubbed.verify-5.25.0-ssl.sh(120) installs, replaces and removes certificates made with a realopensslCA, withnginxandcertbotstubbed.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 realsshd,nginx,ufw,certbotor 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 --goend to end is read from the source and run step by step.