ScalWS 1.0.0
- Tag v1.0.0
- : ScalWS 1.0.0
- Debian version
- 1.0.0
Package builds
All 1 files of 1.0.0 in the apt repository, newest first. Install the newest with apt install scalws (see Install); a specific build with apt install scalws=<version>.
| Package and version | Arch | File date | Size | Downloads | SHA-256 | Download |
|---|---|---|---|---|---|---|
| scalws 1.0.0-1 | amd64 | 24.6 MiB | 93f9d02e9815 | .deb |
SHA-256 checksums
In sha256sum -c format; see Verify.
93f9d02e9815f9a09b336c03cca0c2e8f74f827190406abdd4cfc68a66a87cc5 scalws_1.0.0-1_amd64.debDebian versions and revisions
1.0.0 is 1.0.0 in Debian's spelling. The tilde sorts before everything, even the end of the version, so a release candidate is older than the final release it precedes and apt upgrades from one to the other.
The number after the last hyphen is the Debian revision (-1): a new package build of the same release. apt installs the highest revision; older ones stay in the repository index and can be installed by their full version.
Container image and Helm chart
Built and pushed by the release workflow for tag v1.0.0 (amd64 and arm64). Usage: Kubernetes guide, ingress controller. Registry access may require authentication.
- Image
ghcr.io/xsmtx/scalws:1.0.0- Helm chart
oci://ghcr.io/xsmtx/charts/scalwsversion1.0.0
Release notes
From CHANGELOG.md at tag v1.0.0, section [1.0.0]. The same file on scalws.com: changelog.
Security (2026-11-10): audit run 6
- HTTP/2: a response that makes no send progress within
write_timeoutgives up its body, and with it the tenant's concurrency permit, any upstream and its in-flight mark; hyper resets that stream if it polls the body again, and the connection's other streams go on, as do its requests whose responses have not started (an upload, a long poll). A connection ends when all its responses are stalled and no request is in service, or when, closing afteridle_timeoutor on shutdown, it has only dropped responses left (their streams would keep it open for ever), or once it has drained forwrite_timeoutwith no request in service (a finished response's last bytes, which h2 still held for a client granting no credit, kept a draining connection open for ever). A client that granted no flow-control credit (and answered the PINGs) made hyper wait for credit without writing to the socket, so the socket's write timeout never fired and the response held its body, the tenant's concurrency permit (max_concurrent_requests: 503 for everyone else) and any upstream for as long as the client kept the connection. HTTP/2 response bodies are now handed to hyper in steps of 16 KiB, each of which must go out within the timeout; a slow but steady reader gets the whole response. - HTTP/1 and HTTP/2: a connection whose request lasted longer than
idle_timeout(a slow download, a long poll) no longer keeps its task busy for the rest of the request: the connection loop slept until the idle deadline, which was already past, so it ran again at once, using a whole core per such connection; it also kept restarting the timer of the HTTP/2 send-progress check, which then never ran with the default timeouts. - HTTP/3: the peer's QPACK encoder and decoder streams are read and discarded (h3 never read them, so QUIC kept up to 1.25 MB of whatever a peer sent on each for the life of the connection, about 2.5 MB per idle connection); a second stream of either kind ends the connection. The receive windows are bounded as HTTP/2's: 1 MiB per stream (at least the largest HEADERS frame allowed plus 16 KiB), that plus 1 MiB per connection (quinn's default had no connection bound: 128 request streams of 1.25 MB), and no datagram buffer.
- HTTP/3: handshakes from unvalidated addresses are bounded in rate too: beyond a quarter
of
max_connectionsstarted pertls_handshake_timeoutover all HTTP/3 listeners of the instance, a new one gets a Retry. The quarter bounded only handshakes in progress, which a sender that never receives (as with a forged address) and closes each handshake at once never reached, so it got a TLS flight for every Initial. - QUIC demux: a registration is accepted only for the server id the controller issued to the registering process (the demux asks the controller over the handout socket), and a connection registers one server id, released when it ends. A process of the demux's user could register the ids the controller would give the next instances (which were then refused HTTP/3), and several ids on one connection, all but the last of which stayed live after the connection closed and drew new clients' Initials, which were dropped. During an upgrade, a new demux under a controller of an older version (which cannot answer) keeps the older rule until the controller restarts, and the controller is asked only for a connection's first id.
- Shared listening sockets (
listen: inherited): every socket option the instances' system call filter lets a holder set is now kept by the controller or cannot change what the shared sockets deliver, which a test checks against the filter's list. Set back each tick and reported:IP_RECVERRandIPV6_RECVERR(on the HTTP/3 socket, ICMP errors filled the receive buffer, which nobody reads from the error queue, until no datagram arrived for any instance; on a TCP listener, accepted connections ended at the first ICMP error), the options quinn-udp sets (now set by the controller the same way when it takes the socket), the TCP listener's accept backlog (listen(fd, 0)by a holder), its buffer sizes and the lock a size setting leaves (accepted connections lost autotuning; unlocked withSO_BUF_LOCK, Linux 5.14, and reported as lasting before it; a size that does not read back as set is reported once),TCP_NODELAY,IP_TTL,IPV6_UNICAST_HOPSand a device binding; a reuseport program on a TCP listener and a socket filter that is not locked are detached. - Shared listening sockets held by a process without the enforced core filter (sandbox
off,audit, not applied, or an instance on a binary an upgrade replaced) are tainted: such a holder could set states no check covers. A generation that runs with the filter enforced gets a new TCP socket instead (in the old one's reuseport group), a tainted UDP socket, which cannot be bound twice, is reported inlisteners.last_error, and after a controller restart a TCP socket bound to one device is not recovered. - Sandbox (L1):
sched_setaffinityis allowed for the calling thread only (pid 0, as the event loops pin themselves); a compromised instance or demux could re-pin the threads of every process of the service user (other instances, the controller, the demux), which neither the kernel nor Landlock prevents. Refused withEPERM, likeprlimit64for another process. - Sandbox (L1): writable rules are checked on the descriptor they open, as read rules
already were: a writable directory (
write_paths, the runtime, ACME state or cache directory) that the owner of a directory above it swapped for a link to scalws-controller's state, or to a directory over it, between the sandbox plan and its application now fails the instance's start instead of making the generations, records and QUIC keys writable. - scalws-controller: one fan-out slot is kept for root's clients: a peer of the service
user (a compromised instance) that keeps the 4 shared ones busy with calls to its own
slow admin socket no longer gets root's purge, tenant-limit change or usage, upstream and
certificate views answered
busy. The control API passes the client's uid (SO_PEERCRED) with each request that calls the instances. - scalws-controller: read views (usage, upstreams, certificates) and the tenant-limit
reply's
resultrelay at most 1 MiB of an instance's answer, as it came (it was parsed and written back, which could make it nearly four times larger, up to 16 MiB read); a larger answer is refused. A request now holds its fan-out slot until its reply is written or its connection ends, so clients that do not read their replies cannot make the controller hold more than 5 of them. - scalws-controller: run-time tenant limits are accepted only for tenants of the current
generation (404 otherwise; the name must follow the configuration's name rule) and end
with a tenant once a generation without it has taken over (it serves and no older
instance does): a reload that is rolled back, or a generation that cannot be read, drops
none. Any name used to be kept, in memory and
in
tenant-limits.json(written on every request), until the controller restarted. The file is written only when the kept limits change. - scalws-controller: from an issued-generation record at the plausibility bound (planted while the sandbox was not in force) the controller counted on to numbers whose record it did not believe at its next start, so its own generations from 2^52 up were ignored and a planted generation below 2^52 (or an old one) was current at every start. It now never issues such a number: from a record at the bound it counts on from its numbers below 2^52, and the plant is displaced for good.
- scalwsd: a protected directory that does not exist yet (the ACME state before the account is made, the disk cache before its first start) is judged by its nearest existing directory: a document root reached through a link at or over it is refused (503), where it used to be accepted and to serve the directory once ScalWS created it.
- scalwsd: a reload that protects a new directory (a TLS key directory or ACME state it
names) opens the roots of applications with
root_symlinks: followagain instead of keeping them: a kept root opened through a link into that directory went on serving it (keys written after the reload included) until a restart. Such a reload starts those applications' runtimes again. Each runtime records the protected set it was checked against, so a reload that protected a directory and then failed does not let the next reload keep such a root. --restrict-suid-sgid(and the OpenRC service sandbox) answer io_uring withENOSYS: its open and mkdir operations take a mode no seccomp filter sees. openat2 withO_CREATand a set-ID mode stays the one creation the filter cannot see (the bit is cleared on the first write withoutCAP_FSETID; see docs/guide/security.md for the older-kernelfallocatecase).- Upgrade: a drop-in with
RestrictSUIDSGID=false(the former remedy for a runtime directory without POSIX ACLs) no longer has an effect, since the units pass--restrict-suid-sgidinstead of setting it. UseEnvironment=SCALWS_RESTRICT_SUID_SGID=falsein that drop-in (scalwsd.service and scalws-controller.service); the package names such drop-ins when it is installed. - PHP output parked for slow clients: the pools' floors are now assigned from the quarter
kept for them and never promised twice. They were an equal share recomputed at each
charge, so when an in-process reload (SIGHUP,
scalwsctl reload,server.reload.watch, a panel sync) added pools while another tenant held its floors and the shared part, the floors already held exceeded the reserve and an existing pool's slow responses failed. An existing pool now always keeps at least its current share; a pool added meanwhile gets the rest of its share as the earlier, larger shares are given back (their parks end within 5 minutes, and a renewed park keeps no more than the new share). - OpenRC: root's drain (
rc-service scalws-controller shutdown,stopwhile the system goes down,apk del) andstop-quic-demux.shno longer read the service user's records in shell code:scalws-controller recorded-pidsopens only the names the controller writes (instances/web-0.jsontoweb-4095.json,quic-lb.json), so no flood of other entries hides a record, without following a link, and reads each only as a regular file of the service user under 64 KiB (never a FIFO).instances.maxis now at most 4096. A record named with a newline led root through a link or to a FIFO the checks had refused, and many records or FIFOs held the drain for minutes. The drain's timeout now counts seconds, not rounds. - Panel sync: a site put back to its previous file after a refused reload root cannot confirm no longer takes back a name its account gave up in the same pass and another account took (a hand-over): it is left out for the pass instead. The previous file and the other account's new one claimed the same name, and the next refusal reverted the other account's change or restored the whole pass, the operator's suspensions included. A site refused again after it was put back is left out too, rather than the whole pass restored.
Fixed (2026-11-10): final VM checks
- SELinux, Plesk webmail on AlmaLinux 10: the webmail domain
scalws_webmail_tgot none of its unconfined rules there, soscalwsctl panel webmail-fpmwas denied reading/var/lib/scalws-panel,/etc/scalwsand/etc/httpd, restarted in a loop and every webmail name answered 404. The package's module is built against the EL8 policy, whoseunconfined_domain()also names socket classes EL10's policy removed (bridge_socket,ib_socket,mpls_socket), so its optional block was left out at load time. The module now also spells those rules out with names EL8, EL9 and EL10 all have (tests/packaging/selinux-webmail.shloads the EL8-built module on AlmaLinux 8, 9 and 10). - The packaged
scalwsd.serviceandscalws-controller.serviceno longer setRestrictSUIDSGID=: systemd's filter cannot read openat2's mode and refuses the whole call withENOSYS, so every instance loggedopenat2 unavailableand served static files through the path walk instead of the kernel'sRESOLVE_BENEATHlookups. The binaries take--restrict-suid-sgidinstead, which the units pass: a seccomp filter with the same refusals (a set-user-ID or set-group-ID mode given to open or openat withO_CREATorO_TMPFILE, creat, mkdir, mkdirat, mknod, mknodat, chmod, fchmod, fchmodat, fchmodat2), inherited by the instances, the QUIC demux and the applications, with openat2 allowed. openat2 withO_CREATand such a mode is the one creation it cannot see; a write by the service user (noCAP_FSETID) clears the bit again. The service sandbox of OpenRC (--service-sandbox) now refuses the same creations; it never refused openat2. The console's unit keepsRestrictSUIDSGID=(it serves no files). A drop-in that repeatsExecStart=must keep--restrict-suid-sgid. - logrotate under SELinux:
tests/packaging/selinux-logrotate.shnow loads the EL8-built module on AlmaLinux 8, Rocky 9, AlmaLinux 10 and Fedora 44 and checks thatlogrotate_tmay map its configuration (logrotate 3.18 and later mmap it). Since the configuration moved to/etc/scalws-logrotate-instances.conf(etc_t, run 5), the policies grant that map; thescalws_etc_tpath of earlier packages failed with "Error mapping config file" on EL9 and Fedora 44.
Security (2026-11-09): audit run 5
- HTTP/3: a QUIC handshake must finish within
tls_handshake_timeout(it was bounded only by the idle timeout, so unanswered Initials held connection permits that TCP shares). Handshakes from addresses QUIC has not validated hold at most a quarter ofmax_connections, counted over all HTTP/3 listeners of the instance; beyond that a new one gets a Retry. Unvalidated handshakes count against their claimed source'sper_ip.max_connectionswithout taking its slots: a source at its limit gets a Retry and, validated, is refused before any TLS work, as on TCP; the slot of an unvalidated address is taken once the handshake has validated it. Forged source addresses hold at most a quarter of the permits and none of another address's slots, and their entries in the per-source table can always be evicted: a shard full of forged handshakes no longer leaves the sources that fall in it unlimited (a handshake that finds no room gets a Retry). - HTTP/3: any frame other than DATA (HEADERS, trailers, reserved types, on request streams
and the control stream) that declares more than
max_header_bytesplus 1 KiB resets its stream withH3_EXCESSIVE_LOADbefore its payload is read; h3 0.0.8 buffered such a frame whole before any limit applied. - HTTP/3: response sends obey
write_timeout: a send that makes no progress (a client that keeps the connection alive but grants no stream credit) resets the stream and drops the response, which releases the tenant's concurrency slot and any upstream connection. Body frames go out in steps of 16 KiB, each under the timeout, so a slow but steady client gets a large frame (a 256 KiB file chunk, a cached response) as over TCP. - QUIC server ids: the controller never hands out an id that a live or adopted instance holds (the counter wrapped from 65535 to 1, and a lost counter write could reissue ids after a controller restart), and the QUIC demux refuses a registration of an id that another connected process holds, for any listener, so one instance can no longer take or unregister another's HTTP/3 traffic. A refusal is answered: the instance logs it, stops advertising HTTP/3 on that listener and registers again every second.
- The shared HTTP/3 UDP socket (
listen: inherited): the instances' seccomp filter allows only the socket options ScalWS, its libraries and the C library set (by level and name) and refuses the rest, among them socket filters,SO_BINDTODEVICE,UDP_ENCAP(which hands every QUIC datagram to IPsec),UDP_CORK,IPV6_ADDRFORMandIP_TTL, so a compromised instance cannot stop the demux from receiving, or the other instances' replies, for good. Instances withlisten: inheritedand the demux, which bind nothing once sandboxed, are also refusedSO_REUSEADDRandSO_REUSEPORT: with them a socket of their own could bind a more specific address on a shared port, or join a shared TCP listener's group, and take its traffic. The controller checks the sockets on every tick:O_NONBLOCKcleared on the shared file is set again (the demux's batch read would wait for a whole batch), a connect to one peer is undone, a reuseport group is closed to new members,SO_REUSEADDRis cleared, a shrunk receive buffer is set back, packet information (IP_PKTINFO,IPV6_RECVPKTINFO) is turned back on andUDP_ENCAP,UDP_CORKandUDP_SEGMENTare set back to 0, each reported inlisteners.last_error; a socket filter or anIPV6_ADDRFORM(sandbox off) is reported, and a filtered socket is not recovered after a controller restart. server.ktls: a client that fragments its ClientHello so that rustls has fewer than 5 bytes of room for the next record header no longer panics its connection task in the vendored ktlsCorkStream(the header is handed over in parts).- A document root reached through a symbolic link (
root_symlinks: follow) is also refused when it leads into or over the directory of a TLS certificate or key the configuration names (listener certificates,server.admin.remote, and where their links lead, such as certbot'sarchive/): a tenant could otherwise serve a listener's private key, which the serving process reads. Such a refusal is logged as a warning naming the root and the key directory: a key kept directly in a wide directory (/srv/server.key) protects all of it, so keep keys in a directory of their own. scalwsctl check,scalwsd --checkand the panel sync's check no longer run the configuredfpm.binary(-v, for the PHP-FPM version): root runs the check in the package scripts and the panel sync over a file the console may write. The version is asked when the pool starts, by the process that starts it.- scalws-controller: purge, tenant limit, usage, upstream and certificate requests (which
call the instances) run at most 4 at once, more are answered
busy; a purge or read view whose client went away stops, and replies carry at most 2 KiB of an instance's answer (they embedded it whole, each control byte escaped to six). - scalws-controller control socket: a reply its client does not read ends the connection after 30 s, and 8 connections beyond the 64 shared ones are kept for root's clients (scalwsctl, the console), so peers running as the service user cannot hold every connection.
- scalws-controller keeps the highest generation number it issued in its state directory
(
issued-generation): a generation directory planted at or just below 2^52 while the instances ran without Landlock no longer becomes current again at every controller start, and a new generation never reuses an existing directory (an issued file is never written again). scalwsctlbounds the connect to a Unix socket (a full accept queue held it without end) and the mutual TLS handshake and reply of--remote(a peer sending a byte at a time kept one read going) by the call's timeout.- PHP output parked for slow clients: a serving process parks at most 4 GiB, whatever the number of PHP pools (cPanel runs one per domain, so one account can have hundreds). A quarter of it is kept for floors: each pool parks its first bytes (an equal share of that quarter among the process's pools, at most 32 MiB) from there, so other pools, another tenant's applications among them, spending the rest no longer fail a pool's slow responses.
- Panel sync: a failed check blames a site file only where its whole path stands in the
error (
a.test.yamlno longer matches another account'sa.test.yaml.b.test.yaml). - Panel sync: a refused reload that root cannot confirm never puts a suspended site back to its previous, unsuspended file: the suspension is applied, or the site is left out for the pass.
- The instance log rotation's configuration moved from
/etc/scalwsto/etc/scalws-logrotate-instances.conf: logrotate runs it as root (scripts included), and the root console may write everything in/etc/scalws, so a compromised console could have had a script run as root outside its sandbox. SELinux no longer lets logrotate readscalws_etc_t. - Sandboxed instances under scalws-controller: no Landlock read rule lies in or over the controller's state directory any more. A document root (or other read path) that is a link to a file beside the state opened the state's parent directory, and a root swapped for a link to the state between the plan and its application was followed; every directory a read path opens is now checked, and again on the descriptor opened when the rules are applied.
- The console's OpenRC service sandbox (root with CAP_CHOWN, CAP_FOWNER and
CAP_DAC_OVERRIDE) now also makes the read-only mount view of its unit's
ProtectSystem=strict: Landlock has no right for mode, owner, ACL, extended attribute or time changes, so a compromised console could chmod/etc/shadowor loosen root-run files outside its write fence. The service keeps CAP_SYS_ADMIN and CAP_SETPCAP (only withservice_sandbox=yes); the console builds the view in a mount namespace of its own and drops both from every capability set before it serves. Such changes outside the fence now fail withEROFS, by path or through a descriptor opened for reading. Where the mount calls are refused although CAP_SYS_ADMIN is there (a container's seccomp profile, an LSM), the console starts without the view and logsno read-only view (mounts refused: ...), as without CAP_SYS_ADMIN, instead of failing to start. rc-service scalws-controller shutdown(andapk del, andstopat system shutdown) drains every process in/sys/fs/cgroup/scalwsonce the controller is stopped, withcgroup.killon the whole group after the timeout, as systemd's--kill-who=all: a process of the service user parked in a group whose name starts with a dot, or in the controller group, was left running.apk delreports survivors by group membership, not by process name.- OpenRC: root's stop, shutdown, upgrade and removal steps read the controller's records
(
instances/*.json,quic-lb.json, in the service user's state directory) only as regular files the service user owns, never through a link, under 64 KiB, and then at most 64 KiB within 5 seconds: a record linked elsewhere was read and acted on, and a sparse record of many gigabytes made the step run for minutes and grow without bound.
Security (2026-11-08): audit run 4
- The console's OpenRC service sandbox (root with CAP_DAC_OVERRIDE) no longer lets it write
/proc(sysctls such askernel.core_pattern) or device nodes: of/devonly/dev/null,/dev/zero,/dev/fulland/dev/shmstay writable, as its systemd unit's PrivateDevices= and ProtectKernelTunables= give. Of/run/openrcit may write only the control file of the controller's supervisor (for the controller restart), never OpenRC's service state; starting or restarting scalws-controller restarts a running console so that it follows a new supervisor's file. - Without Landlock the OpenRC service sandbox is the system call deny-list only, and
scalwsctl statusnow says so (no write fence (no Landlock)) instead of claiming a write fence; the admin API'ssandboxobject hasservice_fence. - Sandboxed instances: a document root with
root_symlinks: refusegets its Landlock read rule without following links (a link there gets none), a path whose link leads into scalws-controller's state gets no rule, and a read-only path the kernel refuses as a rule (a link to/proc/self/ns/net) is skipped with a note instead of stopping the instance. - A document root reached through a symbolic link (the default
root_symlinks: follow) is refused when it leads into or over ScalWS's own directories (/etc/scalws,/var/lib/scalws*,/run/scalws*, the configured ACME state, runtime and disk cache directories, the controller's state): a tenant could otherwise serve the ACME keys. The check is made on the opened directory (device and inode), so swapping the root for a link while it is opened does not get around it.scalwsd --checkreports it. rc-service scalws-controller shutdown(andapk del) also drains the processes the controller recorded (instances, QUIC demux), checked by start time and owner: on cgroup v1 or hybrid hosts and withserver.cgroupsoff or an explicit path they were left running. The drain never splits the cgroup names the service user chose into words.apk delsays which ScalWS processes still run.- The instances' logs (
/var/lib/scalws-controller/logs/web-<n>.log, one access log line per request) are rotated on every package type from/etc/scalws-logrotate-instances.conf: daily and at 100 MB, 7 kept, as the server user, checked every hour (scalws-logrotate.timeron systemd hosts, enabled once by the package, and/etc/periodic/hourly/scalws-logrotateon Alpine), with a state file of its own; the system's daily logrotate run does not handle these logs. The apk depends on logrotate, the deb and rpm recommend it; the OpenRC service logs rotate at 100 MB too. SELinux labels the directoryscalws_log_tand lets logrotate reach it through the controller's state directory; the configuration isetc_t, which logrotate may read and map. - The installer no longer says the console's port 8090 "stays closed" whenever a firewall
is active. It says the port was not opened and the default policy blocks it only when
that is so (ufw's default incoming deny or reject, a firewalld zone target other than
ACCEPT, an nftables input policy of drop) and no rule for port 8090 was found; otherwise
it says the console may be reachable and to check the firewall. Whenever it starts or
enables the console it says that it listens on port 8090 of every address; an upgrade
that enables a console the operator disabled says so with
systemctl mask --now scalws-console, and a masked console is left alone. On an apk upgrade the console is restarted once (by the controller's restart), not twice. - Stopping scalws-controller (systemd
stopandrestart, OpenRCstop) also stops its QUIC demux (/usr/share/scalws/stop-quic-demux.sh, checked by start time, owner and arguments), so HTTP/3 is no longer answered. Where the instances keep serving after a stop (systemd 254 and later, OpenRC) they also keep the UDP 443 sockets they were handed: the port stays bound, without answering QUIC, until the controller starts again (TCP keeps serving) or the instances end (systemctl stop scalws-controller && pkill -TERM -f 'scalwsd .*--instance-id', OpenRCrc-service scalws-controller shutdown). On systemd before 254 the stop ends the instances too, and nothing stays bound. Under SELinux the policy module lets the stop script runscalws-controller(systemd runs it asinitrc_twith the unit's NoNewPrivileges); without that the demux was not stopped on the RHEL family and Fedora. - With
server.ktls, a TLS client could panic its connection task with a crafted control record (change_cipher_spec, an alert that is not 2 bytes) and leave the open-connections gauge raised: such records now end the connection with an error (third_party/ktls, SCALWS-CHANGES.md), and the connection close is counted on every way out of the task. - PHP output parked for a slow client: stderr records are cut to what the log keeps
(2 KiB), charged to the parking budgets and dropped at the park expiry (an HTTP/2 stream
with a closed window held up to 4 MiB each, outside every budget, for as long as the
connection lived). When a budget is spent, the response is no longer failed: the driver
hands over what it parked and waits for the client (as nginx does at
fastcgi_max_temp_file_size). Waiting holds a PHP-FPM worker, so it is bounded: one deadline per response, 5 minutes after it first parked (reading does not renew it), and at most a quarter of a pool's workers (rounded down: none in a pool of fewer than four) wait at once; a response beyond that fails as before. io_bandwidthon a tenant whose application roots have no block device (btrfs, ZFS, overlay) was silently not enforced. It is now reported (a warning once per tenant), fails the start incgroups.mode: required, and the admin API (io_bandwidth_enforced,io_unresolved) andscalwsctl limitsay it is not enforced.- scalws-controller, shared listeners: a reload that pairs a kept
[::]:pwith an IPv4 listener onpgets an IPv6-only TCP socket (the kept dual-stack one served IPv4 on every address); for UDP such a reload is refused with the reason. Sockets handed back after a controller restart are kept only if they listen (TCP) or are unconnected (UDP) and all instances handed back the same socket. A TCP listener a holder shut down listens again. The QUIC demux backs off on a UDP socket shut down for reading instead of spinning. - scalws-controller start with a QUIC demux left running: the start no longer fails in a
loop on
Address already in usefor the HTTP/3 UDP socket; the adopted demux is ended and the socket bound, and a generation whose sockets cannot be bound is retried instead of stopping the controller. - The QUIC demux is restarted when it runs with a sandbox mode less strict than the current
generation's or on a replaced binary (after a package upgrade);
statusshows its mode. Its record is bound to the boot and the program: a stalequic-lb.jsonnaming a reused pid is removed, and that process is neither adopted nor signalled. - Stored generation numbers above 2^52 (never issued by a controller) are ignored, and the
controller counts on from the numbers it stored itself, below 2^53. A planted
generations/18446744073709551615(or any number near the ceiling) no longer wraps or blocks the next reload, and does not come back at every start. - Calls from the controller to an instance's admin socket have a 10 s deadline and a 16 MiB answer limit; the replay of queued purges and tenant limits to an instance that became ready ends within 10 s, and at most 64 purges are queued (then one purge of everything). The control socket serves at most 64 connections, one request each, with a 10 s limit on the request head. The controller's own descriptor exhaustion no longer counts as an instance not answering (it restarted healthy instances).
- An instance of scalws-controller whose metrics port another local account holds starts anyway; the controller then reads its readiness and metrics over the admin socket.
- The panel sync blames a failed check or refused reload only on what an error line names
first (the application's
tenants[i].applications[j], a generated file's path). A customer's document root named after another site's file, after a descriptor shortage (os error 24) or with the log tail marker no longer takes other sites out or fails the pass for every account. - A failed check that one account causes by removing its document roots after the probe uses one round for that account: its sites whose roots no longer open are left out together, and the other accounts' changes are applied.
- A refused reload (a controller rollback reason, which processes of the server user can write) leaves out a site only when root confirms that the server user cannot open its document root. A site, certificate or webmail name blamed without that keeps its previous file for the pass (with a status warning), or is left out when it has none; the other accounts' changes are applied.
- A document root with a control character (newline, CR, NUL, other C0, DEL) is refused: that site is left out with a status warning.
- A panel domain whose site file name is an operator's own file in
sites.d/panel/(no generated header) is skipped; the operator's file is never replaced or deleted. - scalwsctl reads an admin or controller reply up to 16 MiB and within one timeout for the whole reply (10 s for a GET, 300 s otherwise), not per read.
Fixed (2026-11-08): managed PHP on EL8 and Alpine
- EL8's default PHP-FPM 7.2 refused every managed pool (exit 78) over
decorate_workers_output, a PHP 7.3 directive. scalwsd now asks the binary for its version (php-fpm -v) and writes the directive only for 7.3 and later. The installation guide has a PHP on EL8 section: thephp:8.2stream or Remi. - Alpine names the binary after the version (
/usr/sbin/php-fpm83), which managed PHP did not find. Withoutfpm.binary, scalwsd takesphp-fpm, else the newest versioned binary in either naming (php-fpm8.4,php-fpm84).
Added (2026-11-07): HTTP/3 in the packages
- The
.deb,.rpmand.apkare built with HTTP/3 (featurehttp3, ADR-0019), the QUIC demux of scalws-controller included. It stays off:http3: trueon a TLS listener turns it on, and neither the packaged configuration,scalwsctl site addnor the cPanel, DirectAdmin and Plesk generators set it. 0-RTT stays off. - The package does not open UDP 443. The ufw profile
ScalWSis now 80/tcp and 443/tcp only; the new profileScalWS HTTP3is 443/udp (sudo ufw allow 'ScalWS HTTP3'). The installation guide has the commands for ufw, firewalld, nftables and awall. - SELinux:
scalws_extra.cillabels UDP 443http_port_t(EL 8 and 9 leave it inreserved_port_t), so the confined server can bind it. - The seccomp allowlist of
server.sandboxis tested with HTTP/3 (a sandboxed scalwsd serves it). The out-of-box matrix has anhttp3check, passed on AlmaLinux 8, 9 and 10, Rocky Linux 8 and 9, Oracle Linux 8 and 9, Fedora 44, Debian 12 and 13, Ubuntu 22.04, 24.04 and 26.04 (also upgrading from 1.0.0~rc.1-11 on Debian 13 and Ubuntu 24.04 and 26.04), openSUSE Leap 15.6 and 16.0, SLE BCI 15.7 and 16.0, and Alpine 3.24; HTTP/3 also passed under SELinux enforcing on AlmaLinux 8, 9 and 10. scalwsd --featureslists the optional features a binary was built with; the release scripts requirehttp3in it.
Added (2026-10-28): in-process sandbox (Landlock and seccomp)
server.sandbox: onconfines scalwsd with Landlock and a seccomp allowlist: it writes only its runtime, state, cache, log and temporary directories and the tenant cgroups, runs no program, creates no process and makes no dangerous system call (mounts, namespaces,ptrace, io_uring, keyrings, eBPF loading). Under scalws-controller it also reads only what its configuration names. Applied when the configuration starts no processes (no managed runtimes or tenant users) and the kernel has Landlock (not EL8); otherwise scalwsd says why and runs as before. Under scalws-controller, panel mode included, tenant users are refused instead: a reload withtenants[].userneedssandbox: off, also on a new install, whose first install addssandbox: on.auditlogs whatonwould refuse.scalwsd --sandbox-selftestchecks it on a host. The QUIC demux is sandboxed the same way. A scalwsd running as root is not sandboxed (not applied: running as root): root standalone setups, eBPF accounting ones included, run without it; the guide shows how to run asscalwsinstead. Guide:docs/guide/sandbox.md.- The first install of the package adds
sandbox: onto/etc/scalws/scalws.yaml. The packaged file is unchanged and an upgrade or a reinstall never adds the key: an existing installation keeps running without it (off), without a configuration file prompt. --service-sandboxfor scalwsd,scalws-controller runandscalws-console rungives systems without systemd (OpenRC) the write fence and system call settings of the systemd units.scalwsctl statusand the admin status show the sandbox.- With systemd 254 and later a restarted scalws-controller replaces sandboxed instances instead of adopting them for good: the tenant cgroups they may write are removed when it stops. Instances without the sandbox are adopted as before.
Fixed (2026-10-28): stored configuration generations
- scalws-controller checks a stored generation against the digest it recorded before it starts an instance from it, validates generations it does not know again (after a restart), and takes the sandbox mode from its own record. Generation files are written read-only.
Upgrade notes
- A configuration with
server.sandboxis refused by older versions (unknown keys are errors): remove the key before downgrading. - scalws-controller keeps the files instances read in
<state_dir>/shares/and the QUIC demux socket in<state_dir>/quic-lb/; the old files are kept current while adopted instances of the previous version read them and removed afterwards. After a downgrade the older controller writes the old files again (its instances start with those paths);shares/andquic-lb/are then unused and can be removed. Stored generations are now read-only (0400), which older versions read without trouble. - ufw: the upgrade narrows an existing rule
ScalWSthat still opens 443/udp (added withufw allow 'ScalWS', as older packages suggested, while the profile listed 443/udp) to TCP 80 and 443 withufw app update ScalWS, and says so; no older package could serve HTTP/3. A listener withhttp3: trueis refused by packages before HTTP/3 was built in: remove it before downgrading.
Docs: panel and system coverage
docs/guide/control-panels.mdhas one matrix of cPanel, DirectAdmin and Plesk against every supported system, as tested: tested, tested in part, not supported by the vendor, or deferred.
Added (2026-10-28): Ubuntu 26.04 LTS
- Supported system: Ubuntu 26.04 LTS (amd64), from the same
.deband apt repository. Tested on a plain server (AppArmor, ufw, cgroup v2, systemd 259, PHP 8.5) and with DirectAdmin and Plesk in panel mode. cPanel: when the vendor supports it.
Fixed (2026-10-28): found by the Ubuntu 26.04 tests
- The upgrade from 1.0.0
rc.1-11 or older on systemd 259 (Ubuntu 26.04) restarts the controller: the old controller left the cgroup controllers on in the unit's group when it stopped, so the restart failed with "unavailable resources" and systemd retried for ever. The package now releases them and restarts once more; it also repairs that restart loop when an older release left it behind (rc.1-11 on Ubuntu 26.04).systemctl restart scalws-controllerwith 1.0.0
Added (2026-10-28): Alpine Linux 3.24
.apkfor Alpine Linux 3.24 (x86_64): a static musl build ofscalwsd,scalwsctl,scalws-controllerandscalws-console(scripts/release-build-apk.sh, built indocker/alpine-build.Dockerfilewith the compiler of the glibc build; ktls is vendored inthird_party/ktlswith a fix that lets it compile for musl). Versions are mapped for apk:1.0.0-rc.1release 12 isscalws-1.0.0_rc1-r12.apk.- OpenRC services
scalws-controller,scalwsdandscalws-consolewith the systemd units' behaviour: controller restarts hand the instances over,rc-service scalws-controller shutdown(and a system shutdown) drains them, cgroup v2 delegation for tenant limits in/sys/fs/cgroup/scalws, the same users and capabilities. Output goes to/var/log/scalws/, rotated by logrotate. The services start with--service-sandbox: the units' write fence (ProtectSystem=strict, ReadWritePaths=;rw_pathsin/etc/conf.d/<service>) and system call settings, in process;scalwsctl statussays what it covers (no private /tmp, devices or namespaces). - Signed apk repository
https://apt.scalws.com/alpine/v3.24/main(packages and index signed with RSA and SHA-256). The first install starts ScalWS on ports 80 and 443 and the console, as on the other systems, and opens 80 and 443 in an active ufw or a running nftables service with the stock ruleset (/etc/nftables.d/50-scalws.nft). With awall it only prints the commands for its policyscalws(awall activatereplaces the whole live iptables ruleset). - Messages that name a service command or the logs use the host's init system (OpenRC:
rc-service,/var/log/scalws/*.log,doas). - Guide: the Alpine section of
docs/guide/installation.md.
Added (2026-10-28): openSUSE Leap and SLES
- Supported systems (x86_64): openSUSE Leap 16.0 and 15.6, SUSE Linux Enterprise Server
16.0 and 15 SP7, with the same
.rpmand repository as the RHEL family: import the key (rpm --import, after checking its fingerprint),zypper addrepo https://rpm.scalws.com/scalws.repo,zypper install scalws. The.rpmnow depends on(shadow-utils or shadow)instead ofshadow-utils, and on/usr/bin/awk, which the install scripts need.scalws.repohastype=rpm-mdandautorefresh=1, so zypper sees new releases. - On Leap 16 and SLES 16 ScalWS runs with SELinux enforcing under the same policy module, unchanged; SUSE's php8-fpm (127.0.0.1:9000) works with it. On Leap 15.6 and SLES 15 SP7 (AppArmor or none) it runs unconfined, as on Debian and Ubuntu. No control panel supports SUSE.
Added (2026-10-28): the RHEL family, Fedora 44, Debian 12 and Ubuntu 22.04
- Supported systems (x86_64): AlmaLinux, Rocky Linux and Oracle Linux 8, 9 and 10, Fedora
44, Debian 12 and 13, Ubuntu 22.04 and 24.04. One build linked against glibc 2.28 serves
all of them: the
.debdepends onlibc6 (>= 2.28), the.rpmonglibc >= 2.28,shadow-utilsand/usr/bin/setpriv. Rocky Linux 10, Oracle Linux 10 and the standard (x86-64-v3) AlmaLinux 10 were tested under CPU emulation; full verification follows in the next release. AlmaLinux 10's x86_64_v2 build is fully tested. - Signed dnf repository:
curl -o /etc/yum.repos.d/scalws.repo https://rpm.scalws.com/scalws.repo, thendnf install scalws. Packages and the repository metadata are signed with the ScalWS archive key (repo_gpgcheck=1). - SELinux policy module in the
.rpm: ScalWS runs with SELinux enforcing in its own domains (scalws_t,scalws_console_t, andscalws_app_tfor the applications it starts). The console's port 8090 isscalws_console_port_t. The booleanscalws_can_network_connect(default on) lets proxies and applications connect to any TCP port. The container runtime is not supported under SELinux enforcing in this release. - The first install opens ports 80 and 443 in an active ufw (rule
ScalWS) or a running firewalld (serviceshttpandhttps, in the zone of the default route's interface), and says so. It never starts a stopped firewall and never opens the console port 8090; the output prints the command for it. Removal leaves the rules and prints how to remove them. This replaces the ufw hint. - On a cgroup v1 host (EL8 by default) ScalWS serves with tenant limits off, and the first
install prints how to switch to cgroup v2
(
grubby --update-kernel=ALL --args=systemd.unified_cgroup_hierarchy=1). - With systemd before 254 (EL8, EL9, Debian 12, Ubuntu 22.04) the package adds a
KillMode=control-groupdrop-in forscalws-controller: a controller restart or an upgrade restarts the instances too (a short interruption instead of the handover). - Guide:
docs/guide/installation.md(supported systems, dnf, firewall, SELinux, cgroup v1).
Fixed (2026-10-28): found by the RHEL-family tests
- Tenant limits stay in place after
systemctl restart scalws-controllerand package upgrades: systemd (255 and later) removes the empty tenant groups when the unit stops, and the instances the restarted controller adopted now rebuild them, where their reload was rejected until the nextscalwsctl reload. systemctl restart scalws-controllerworks with systemd 259.5 (the Fedora 44 release), where every restart with tenant limits failed with "Failed to spawn executor: Device or resource busy": a stopping controller removes the empty tenant groups and disables the cgroup controllers in the unit's group, which the adopted instances enable again.scalwsd.servicestarts with the package's default configuration: aserver.listenersentry on the IPv6 wildcard[::]:pis IPv6-only (IPV6_V6ONLY) when the sameserver.listenersalso has an IPv4 listener on portp(0.0.0.0:por a specific IPv4 address), so[::]:80no longer takes the IPv4 port that0.0.0.0:80binds (it failed with "Address already in use" whilenet.ipv6.bindv6onlyis 0). A[::]:pwithout an IPv4 listener onpkeeps the system's default and stays dual-stack, as before. scalws-controller's shared sockets (TCP, and UDP for HTTP/3) follow the same rule.- Tenants with a Unix
userwork under the packagedscalwsd.service: the tenant's socket directory is mode 0770 with a default ACL for groupscalwsinstead of the setgid mode 2770, which the unit'sRestrictSUIDSGID=truerefused. - A managed PHP-FPM pool of a tenant with a Unix
userstarts: the output pipes of such a tenant's applications belong to the tenant, so PHP-FPM can reopenerror_log = /proc/self/fd/2(it failed with "Permission denied"), and its errors reach the ScalWS log. The SELinux policy lets scalwsd hand the pipes over. - SELinux: managed PHP-FPM pools start with PHP 8.5 (Fedora 44), whose opcache locks a memfd ("Cannot create lock - Permission denied").
- The rpm requires
/usr/bin/setpriv(util-linux-core or util-linux): without it, applications under SELinux and tenants with a Unixuserrefused to start (minimal Fedora images lack it). - cPanel panel mode (found on AlmaLinux 9):
panel enable cpanelwaits up to 30 seconds for the PHP-FPM pools of cPanel's conversion, which runs in the background; PHP failed after the handover until a later sync when the domains were not on PHP-FPM before. - cPanel: the first suspension on a server is served within seconds:
panel enable cpanelcreates/var/cpanel/suspended(root:mail 0710, as cPanel does) when cPanel has not yet, since the sync's path unit cannot watch a directory that does not exist. - cPanel: PHP for a new subdomain no longer waits for the 5-minute timer when cPanel's queued PHP-FPM conversion takes longer than 30 seconds: a sync that rewrote sites and still finds a vhost without a pool asks for one more sync.
- cPanel:
panel enable cpanelon a server whose cPanel licence cannot be read reports cPanel's message ("whmapi1 servicestatus service=httpd: Cannot Read License File") instead of a parse error, and changes nothing. - DirectAdmin panel mode: a domain or subdomain created in DirectAdmin is served within seconds on AlmaLinux and Rocky Linux too. DirectAdmin runs its hook before it makes the new document root, so that sync left the domain out until DirectAdmin's next task queue run or the 5-minute timer; a vhost newly left out for a missing document root now gets one more sync 5 seconds later.
- Panel mode on cPanel and DirectAdmin: one retry sync for both (unit
scalws-panel-sync-retry, to the second). It leaves the sync request, so a retry that lands while a sync runs is not lost, and a retry that still finds a vhost without its PHP-FPM pool or document root re-arms itself up to 3 times, so domains created one after the other are not left to the 5-minute timer. A retry that cannot be scheduled is named in the sync's output.
Added (2026-10-27): Plesk panel mode
scalwsctl panel enable plesk: ScalWS replaces Plesk's nginx and serves the subscriptions' domains, additional domains, subdomains and aliases with the domains' PHP-FPM pools and Plesk's certificates, the hostname's default site and Plesk webmail (webmail.<domain>) through the PHP-FPM unitscalws-panel-webmail.service. Every PHP handler that is not FPM (domains and service plans) is switched to the FPM handler of the same version;panel disable --restore-phpputs the recorded handlers back. The unitnginxis kept down by a systemd drop-in while panel mode is on (Apache keeps running behind it on 127.0.0.1:7080/7081, untouched), and Plesk event handlers (35 events, registered withplesk bin event_handler, ids recorded instate.json) start a sync within seconds.scalwsjoins the grouppsaserv.panel disabledeletes the handlers and hands the ports back. The sync only reads Plesk's data (plesk dbSELECT queries, pool files, certificates);enablechanges PHP handlers and service plans. Every site answers Let's Encrypt challenges from Plesk's shared directory, also over plain HTTP; webmail is HTTPS only and refuses Roundcube's files without an extension as Roundcube's own rules do.SCALWS_PANEL=noneskips the takeover at install; removing the package prints the manual steps ifpanel disablefailed. Guide:docs/guide/control-panels.md.- The Console names the panel ("add the domain in Plesk", "managed by Plesk").
- A Plesk alias with
seoRedirecton (Plesk's default) answers with a 301 to its domain, keeping the path, as Plesk does, instead of serving the domain's content; a subdomain's name on it (<label>.<alias>) redirects to the subdomain.
Changed (2026-10-27): Plesk panel mode leaves Apache running
panel enable pleskhands overnginxonly;apache2is no longer recorded, stopped or given a drop-in. The live test showed that every Plesk web configuration change (domain create, PHP handler change,plesk repair web) fails while Apache is stopped: Plesk regenerates Apache's configuration and restarts it gracefully. Apache listens on 127.0.0.1 only. Apache alone on port 80 (nginx off in Plesk) is refused. A state written by an earlierenablethat handedapache2over is still given back bypanel disable(drop-in removed, enabled and started before nginx).
Security (2026-10-27): panel mode audit, run 3 (Plesk)
- Plesk webmail names are never taken from another site: they are reserved against every domain and active alias in Plesk's database (also forwarding domains and domains without hosting) and against the domains of the operator's own site files. A check error or a refused reload that blames the webmail site through one of its names leaves out that name alone, so Roundcube stays served for every other domain; a webmail site still left out is a warning that webmail is not served.
- One domain's Plesk webmail configuration that is missing, unreadable, runs as root or names another user, group or handler loses only that domain's webmail names (a skip note names it); the pool runs as the identity most domains share.
- A refused reload that names a site leaves out every new or changed site of the same account in that round: one account can use at most one of the three rounds, and the other accounts' changes are applied. A failed check still leaves out that site alone.
- Webmail's PHP-FPM pool:
userandgroupwritten quoted; a user or group that does not exist, or is uid or gid 0, refuses the webmail; anopen_basedir,disable_functionsordisable_classesvalue that the pool cannot take keeps the webmail from starting. Roundcube's/plugins/enigma/homeand/program/actionsare denied. - Aliases are served only with web on in Plesk, and get a webmail name only with mail on; a domain whose webmail is off in Plesk has no webmail names.
- The event handlers also cover customers' and resellers' status changes and deletions (35
events).
panel disabledeletes a recorded handler only while it still runs the hook script. panel enable plesk: a domain or service plan whose switch to PHP-FPM fails is a warning and is not recorded (all failing still stopsenable); the Plesk ids of switched domains and plans are recorded and--restore-phprestores only a row that still has its id.- An
nginxunit that is installed but stopped and disabled is held with the drop-in too and is never started bypanel disable; every sync warns while it runs in panel mode. scalws-panel-sync.servicestops a sync after 15 minutes;scalws-panel-sync-request.pathstarts at most 10 syncs a minute; the removal's Plesk recovery steps remove the hook script. An access probe that cannot run is a status warning naming why, and the hostname's document root is asked of the probe on DirectAdmin and Plesk.
Security (2026-10-27): panel mode audit, run 2
- The panel sync asks the kernel what the server user can open: a short child process
(
scalwsctl panel probe-access) runs asscalwswith its groups and opens each document root, webapp directory and PHP-FPM socket the way the server does, so an account's ACL that deniesscalwsleaves that vhost out instead of failing every reload. The mode bits remain the fallback when the probe cannot run. - A refused reload is traced to its site: scalws-controller's
last_rollbackcarries the failed instance's start error (reason), and the sync leaves out the site it names and reloads again (at most three times); only a refusal that names no site restores every account's previous files. Without a start error the reason is the instance's last log lines (reason_from: log tail), which blame no site. - A route whose own document root cannot be opened (a directory shared by many sites)
answers 503 under its prefix alone; the application's root and its other routes are
served, at a start, a reload and a controller instance start. The application's own
root keeps its rules (and so do the route roots of an application without a root);
scalwsctl checkstill reports such a root. - DirectAdmin: a webapp directory, or
/var/www/html, thatscalwscannot open leaves out the webapps routes (with a warning), never the sites. The hostname's site opens its roots withroot_symlinks: refuseand refuses/phpMyAdmin-<version>/logtoo. - DirectAdmin certificates: paths a domain's configuration names are used only inside
the account's own
domainsdirectory (or the server certificate and key); certificate files are read without following links, as regular files of at most 1 MiB; the copy holds only the certificates and key that parsed, written again as PEM, each certificate once. - The package never starts ScalWS on ports 80 and 443 on a panel's server (also with
SCALWS_PANEL=noneor on an upgrade); it prints the command that switches over. - A
panel syncthat gives up waiting for the lock leaves DirectAdmin's sync request for the one that runs.
Added (2026-10-27): DirectAdmin panel mode
scalwsctl panel enable directadmin: ScalWS replaces the web server CustomBuild installed (Apache, nginx, LiteSpeed, OpenLiteSpeed) and serves the main and additional domains, subdomains, alias and redirect pointers, Force SSL, suspended accounts and the hostname, with the accounts' PHP-FPM pools and DirectAdmin's certificates, plus/roundcube,/phpMyAdmin,/pma,/config, the ACME challenge path and the mail autoconfiguration. The old server's line inservices.statusis set toOFFand a systemd drop-in keeps its unit down while panel mode is on; DirectAdmin's hooks (user_httpd_write_post,user_destroy_post,ssl_save_post) start a sync within seconds;scalwsjoins the groupsaccessandapache. Every PHP slot in use must be php-fpm (enablenames theda buildcommand otherwise).panel disablehands the ports back. Guide:docs/guide/control-panels.md.- The Console names the panel ("add the domain in DirectAdmin", "managed by DirectAdmin").
Security (2026-10-27): PHP include files
- PHP include files (
.inc) are no longer served as files: PHP applications send them to PHP like.php.
Added (2026-10-26): cPanel panel mode
scalwsctl panel detect | sync | status [--json] | enable cpanel [--dry-run] | disable [--restore-php]: ScalWS replaces cPanel's Apache and serves its main, sub, addon and parked domains, the service subdomains (cpanel.,webmail.and the others, proxied tocpsrvd), the server's hostname and a page for suspended accounts. Certificates come from AutoSSL. The sites are generated into/etc/scalws/sites.d/panel/; the unitsscalws-panel-sync.pathand.timerkeep them in step.enableundoes its steps when one fails;disablehands the ports back to Apache. Guide:docs/guide/control-panels.md.certificates_filein a listener'stls: more certificate entries from a separate YAML file (-before the path: a missing file means none). Panel mode uses it for the AutoSSL certificates.- The Console's Domains page shows cPanel-managed sites read-only, with the sync status.
- The first install on a cPanel or DirectAdmin server takes over the panel's web server
(
scalwsctl panel enable; a failed switch is undone and the install still succeeds); the installer's--panel=none(SCALWS_PANEL=none) skips it. root_symlinks: refuseon an application or site: its document root must be canonical and is opened without following symbolic links (static files, PHP,.htaccess). Panel mode sets it on every account site, so an account cannot point its document root at another account's files or at the certificate keys. Defaultfollow: unchanged.- Panel mode details:
enableenablesscalws-controllerat boot, reloads it after the restart and waits until an instance answers HTTP;disableand a failedenablealso stop the controller's instances (they outlive the unit) before Apache starts, anddisableleaves the controller disabled. The panel's state, status and certificate copies live in the root-owned/var/lib/scalws-panel/; panel commands take a lock; the sync gives new document roots the groupnobody(FileProtect) and leaves out document roots reached through a symbolic link. Removing the package in panel mode runsscalwsctl panel disablefirst.
Security (2026-10-26): panel mode audit fixes, server and packaging
- PHP applications send
.phtmland.php3to.php8(any case) to PHP like.php, and anindexwith such a suffix is a script; those files,.pharand.phpsare never served as static source. Before, their source was returned as a static file. - Without
openat2(kernels older than 5.6, seccomp policies that block it) file lookups below a document root walk the path one component at a time from the opened root without following links (a link is refused), instead of checking a path and opening it again, which a tenant could race to read another account's files. - A running server no longer fails a start, or a reload that leaves an application's
root and runtimes unchanged, because that application's document root cannot be
opened: it answers
503, the error is logged, the others are served, and the next reload tries again. A reload that adds or changes an application whose root cannot be opened is still refused; underscalws-controllerthe instances of the new generation get the previous generation's configuration (scalwsd --previous-config) and fail to start, so the controller rolls the generation back.scalwsctl checkand the Console report it as an error. - The package keeps its "autostart done" marker in the root-owned
/var/lib/scalws-pkginstead of the server user's/var/lib/scalws, where a planted link could make the root package script create a file elsewhere; an old marker (or link) counts as done and is never written through; a directory planted there does not stop an upgrade or a removal. - The installer requires gpg (it installs
gnupgwhen missing) and installs only the pinned repository key, re-exported from the downloaded file, which must hold exactly that key. - Console drafts:
includeandcertificates_filemay only name files below the configuration directory, the certificates file is checked like a site file, and a file that does not parse is reported by name and position only, never with its content. The other files a draft's checks read (basic_auth.users_file, certificates and keys, CA bundles) must be below that directory too, unless the configuration on the server already names them. - Panel mode: a failed
panel enablethat startsscalws-controlleragain reloads it with the restored configuration and reports ScalWS as serving only once that generation is active (and says whether the controller did not start, did not load it, or does not listen on port 80); a controller without a running instance can be reloaded. Generated site names carry 96 bits of the domain's hash (before: 48). The manual repository instructions check the downloaded key and install only the pinned key.
Fixed (2026-10-26): Console DNS state
- The Domains page showed every domain as "Points elsewhere": the console unit did not
allow netlink sockets (
RestrictAddressFamilies), soip -j addrcould not list this machine's addresses.AF_NETLINKis allowed now, and when the addresses cannot be read the state is "unknown" instead of "elsewhere".
Changed (2026-10-26): document roots in home directories
- The server units (
scalws-controller,scalwsd) useProtectHome=read-onlyinstead of hiding/home, so a site can be served from/home/<user>/public_htmlor/home/<domain>./rootand/run/userstay hidden. - The Console's Domains page accepts document roots below
/home/(besides/srv/and/var/www/); its unit may create them (ReadWritePaths=-/home). scalwsctl site addwarns, with the fix, when userscalwscannot enter a directory on the way to the document root or read itsindex.html(mode bits;warningin--json). The Console shows the warning after adding a domain.
Added (2026-10-25): Domains page in the ScalWS Console
- Manage, Domains: every site with its other domains, type, target, HTTPS certificate
state and whether its DNS points at this server. Administrators add a domain (static,
PHP through an existing PHP-FPM socket, proxy or redirect) and remove one; both need a
password confirmation, are audited (
site.add,site.remove) and are serialised with configuration applies. New capabilitysites.manage(administrators only). - Backed by
scalwsctl site add|remove --json(new) and the extendedsite list --json(kind,target,acme,site,domain_list), so the console takes the same checked path as the command line; controllerGET /certsrelays the certificate state of a serving instance. scalwsctl site addwrites the site file (0640) and the placeholder page (0644) with explicit modes, independent of the umask (the console's unit runs withUMask=0077).- The console unit may write
/srv/www(created by the package) for new document roots.
Changed (2026-10-25): ready to publish after installation
- Default configuration (
packaging/scalws.yaml): listeners on ports 80 and 443 (IPv4 and IPv6; the IPv6 ones are commented out on hosts without IPv6), Let's Encrypt for every site (server.acme.enabled), and a catch-all application that answers hosts no site serves with a welcome page (/usr/share/scalws/welcome). Before, it answered only on127.0.0.1:8080, so an added site was not reachable. - The package starts the server: a fresh installation (and, once, the first upgrade to
this version) enables and starts
scalws-controller, unlessscalwsdor the controller is already enabled or another program listens on port 80 or 443 (the output names it). An upgrade that restarts the controller now also reloads, so a changed configuration file is applied to the adopted instances. ufw application profilesScalWSandScalWS Console. - Instances on small machines: the controller pins an instance only to CPUs the host
has. With the packaged
cpus: "0-3"on a 1 or 2 CPU server, the second instance of a rolling reload got CPUs 2-3,tasksetfailed and every reload (also the one ofscalwsctl site add) was rolled back; instances now share the CPUs there are. scalwsctl site add: without--root, a static or PHP site's document root is/srv/www/<domain>; a missing document root is created, a static site with a placeholderindex.html; both are taken back when the check or the reload fails.scalwsctl status|apps|tenants|certs|top|history|diffwork under scalws-controller without--socket: they use the first instance's admin socket.
Added (2026-10-19): user_agent in the access log
- Access log lines carry the request's
User-Agentheader asuser_agent(at most 256 bytes, bytes that are not UTF-8 replaced,-without the header). The header is kept only while the access log is on.
Added (2026-10-15): Gateway API (ADR-0052)
scalws-ingress run --gateway-apiserves GatewayClass, Gateway, HTTPRoute (gateway.networking.k8s.io/v1) and ReferenceGrant (v1beta1) next to Ingresses, in the same pod and the same translation;--ingress=falsemakes a Gateway-only install. New flags--gateway-controller-name(defaultscalws.com/gateway-controller) and--gateway-listener PORT=NAME(default80=http,443=https). Gateway listeners map by port onto the pod's fixedscalwsdlisteners; every Gateway shares the Service address. HTTPRoute matches, header modifiers, redirects, URL rewrites, timeouts and weightedbackendRefsbecome routes; unsupported filters (RequestMirror, CORS, ExternalAuth, ExtensionRef, filters onbackendRefs) and unknown fields inside matches and filters make the rule's matches answer 500 under their own keys (PartiallyInvalid,Dropped Rule ...); client certificate validation andtls.optionsmake the listenerAccepted: False; ExternalName Services are refused. Status withobservedGeneration, merge patches, sharedstatus.parents(stale entries removed, at most 32), Events (HostnameConflict,WeightRounded,UnsupportedFilter,UnsupportedField, ...) and metricsscalws_ingress_gateway_api_available,scalws_ingress_gateways,scalws_ingress_httproutes,scalws_ingress_status_writes_total. The CRDs are optional: discovered at start and every 60 s, Ingresses keep serving without them. Supported CRD bundles: standard channel v1.3.0 to v1.6.x.- Conformance (Gateway API v1.6.3, GATEWAY-HTTP): core
partial, 35 passed with one skip,HTTPRouteMultipleGateways(needs per-Gateway addresses, planned as phase 2d); extended 17 of 17 passed for the claimed features. Workflowgateway-conformancekeeps the report;conformance/run.shruns it locally. Guide:docs/guide/gateway-api.md. - Helm chart:
ingressController.gatewayAPI.enabled,.controllerName,.gatewayClass.create,.gatewayClass.name,.extraPorts(extra Gateway listener ports), andingressController.ingress.enabled. The chart never installs the Gateway API CRDs; it fails with the pinned install command when they are missing. - Configuration: application
listeners(serve an application on some listeners only; domains are unique per listener),**.example.comdomains (one or more labels, neverexample.comitself; lookup exact,*., longest**., catch-all; not withacme: true), andbackendsentries{status: 500..599, weight}that answer a share of the requests with that status. Configurations without them take the existing code paths.
Changed (2026-10-15): route precedence among equal paths
- Among routes with the same path type and path, a route with a method matcher is tried first, then the one with more header matchers, then more query matchers, then the earlier one (the Gateway API order); before, the total number of matchers decided. Order changes where same-path routes differ in the kind of matcher: a method list counts once however many methods it names, and header matchers outrank any number of query matchers. Configurations whose same-path routes use only header matchers, or only query matchers, keep their order, and so do the routes the ingress controller generates (ADR-0050 amended).
Changed (2026-10-15): ingress controller host ownership
- One ownership rule for Ingress and Gateway API: a host on a listener is served by the oldest claim (Ingress namespace, Gateway listener hostname or HTTPRoute namespace through a Gateway); an Ingress and an HTTPRoute never serve one host together.
- A host under an older wildcard of another namespace is no longer served for the newer
namespace: an Ingress for
shop.example.comgetsPathConflictwhen another namespace's older Ingress holds*.example.com(before, host patterns were compared only as written). Owners of the wildcard's own namespace are not affected.ingressController.crossNamespacePaths(--cross-namespace-paths) restores the old behaviour among Ingresses, and now also lets routes of several namespaces share a host of a Gateway; it never merges Ingresses with HTTPRoutes. - An Ingress
spec.defaultBackendclaims the catch-all host like a rule without a host.
Changed (2026-10-15): default certificate without server names, *.org SANs
- The
defaultentry ofserver.listeners[].tls.certificatesmay haveserver_names: []; it is then served only for an absent or unknown SNI name. Every other entry still needs at least one name. The Kubernetes controller uses it for the certificate of a hostname-less Gateway HTTPS listener whose routes have no hostnames. - The check that a certificate covers a server name accepts a wildcard SAN directly under
one label (
*.orgcoversexample.org), as RFC 6125 and Go clients do; before, such a certificate was refused for that name. Browsers do not trust such certificates.
Changed (2026-10-15): fountain accept policy caps connections per event loop
- With
server.accept_policy: fountainan event loop also counts as full while it holds twice its fair share of the open connections (max(8, ceil(2 x connections / loops))), and a loop at its cap leaves new connections to the loops after it (at most 2 ms). Keep-alive connections that arrive a few at a time no longer pile up on the first one or two loops: in the Kubernetes ingress benchmark fountain's p99 at a fixed rate fell from 2.80 to 2.46 ms (11.15 to 2.35 ms with Ingress churn), its requests/s rose to 0.92x to 0.98x ofshared, and its CPU saving is unchanged. Connections opened in one burst are still placed by the burst estimate;shared(the default) is unchanged and stays the recommendation for proxies and ingress mode (ADR-0044).
Changed (2026-10-14): ingress controller host ownership and retries
- Only the namespace a host belongs to (the namespace of its oldest Ingress for the host,
served or not; rules without a host count as one host) may add paths to it. A rule of an
Ingress of another namespace for the host is not served and gets a
PathConflictEvent naming the owning namespace; its rules for other hosts are still served. Before, every namespace merged paths into the host as in ingress-nginx, so another namespace could add a path or catch the owner's unserved paths with a broad prefix or regex. The old behaviour is opt-in:--cross-namespace-paths, chart valueingressController.crossNamespacePaths: true. - Generated pools retry twice instead of once (three tries, the ingress-nginx default),
still only for a failed connect or an idempotent request that failed before anything
reached the client. A scale-down that stops several pods at once no longer gives
502when the single retry hit another stopping pod.
Fixed (2026-10-14): no resend of a written POST on a stale keep-alive connection
- When a kept-alive upstream connection idle for 1 s or more turned out to be closed after
a bodyless request was written to it, the request was sent again on a fresh connection
whatever its method. A bodyless
POSTthe upstream processed before closing could run twice. Both upstream clients now resend a written request only for idempotent methods (GET,HEAD,OPTIONS,PUT,DELETE); a request none of which was written is still resent for any method.
Fixed (2026-10-14): findings of the Kubernetes ingress benchmark
- Upstream pools retry an idempotent request (
GET,HEAD,OPTIONS,PUT,DELETE) on another member when the connection breaks before the response head, for example a reset keep-alive connection to a pod that is shutting down. Before, such requests got a502(about 40 per backend scale-down in the benchmark). Other methods are still not repeated once written. - The shared listener socket (default
listener_mode) listens with a queue of 4096 connections (capped bynet.core.somaxconn) instead of std's 128, which dropped part of a burst of a few hundred simultaneous connections (1 s SYN retransmission). - Helm chart: no memory limit on the ScalWS container by default (was
256Mi, which gotscalwsdOOM-killed proxying 100 KiB responses at 256 connections); the memory request is128Mi.
Added (2026-10-14): ingress controller (ADR-0051)
scalws-ingress: Kubernetes Ingress controller that runs next toscalwsdin the pod. It watches IngressClass, Ingress, Service, EndpointSlice and Secret resources, translates Ingresses and the commonnginx.ingress.kubernetes.io/*annotations (rewrite, regex paths, redirects, TLS Secrets, basic auth, source ranges, CORS, timeouts, affinity, canary) into configuration, reloadsscalwsdthroughPOST /v1/reloadand keeps pool members current withPUT /v1/upstreams/{pool}without reloads. Ingresses asking for access control ScalWS lacks (auth-url,auth-tls-*, ModSecurity) are not served; one bad Ingress does not affect the others. Events, metrics on:10254, Lease leadership for the Ingress status. Guide:docs/guide/ingress-controller.md.- Helm chart ingress mode:
ingressController.enabledinstalls the controller, the IngressClassscalws, RBAC and aLoadBalancerService; kind e2e in CI. domains: ["*"]: the catch-all application for hosts no other domain matches (at most one).- Route
https_redirect: overrides the application's value for one route, both ways.
Added (2026-10-12): site files (ADR-0048)
include:inscalws.yamlreads one short file per site, e.g.sites.d/*.yaml:domain,aliases,www: none|alias|redirect,root,tls: auto|manualand one runtime shorthand (static,php,node,python,proxy,redirect) or the full syntax. Sites are expanded into tenants and applications at load time; messages name the site file; a domain may be served once. Site files must belong to root and must not be writable by group or others. Guide:docs/sites.md.scalwsctl site add|list|remove: writes<domain>.yaml, refuses domains already served, checks like a reload (and removes the file again on failure), reloads through scalws-controller when it runs. Under the controller, managed runtimes are refused up front with the alternative (--php-fastcgi,--proxy).scalwsctl migrate nginx|apache: reads an nginx or Apache configuration (with its includes; only read) and writes one site file per virtual host: names, root, index, PHP-FPM pools, proxies (also under other paths), redirects, HTTPS-only port-80 hosts (https_redirect),www.handling and.htaccess; everything else becomes# TODO:lines with file and line. Domains already served are asked about (--overwrite,--skip-existingwithout a terminal) and never written twice; a failed check or reload undoes the whole run.redirectruntime (to,status,keep_path): used bywww: redirect.https_redirect: trueon an application or site: plain HTTP gets a 301 to HTTPS (ACME challenges are still answered over HTTP).- scalws-controller stores a configuration with site files expanded as its generation; the console validates and checks drafts with the site files and counts their sites.
- Package:
/etc/scalws/sites.d(root:scalws, 0750) andinclude: sites.d/*.yamlin the default configuration (existing configurations are not replaced).
Fixed (2026-10-12): tenant limits under scalws-controller
scalws-highcpu/highram/highioandscalws-limit*answered "cgroups are not enabled" on servers run byscalws-controller: the controller process sat in the service's delegated cgroup, so scalwsd could not enable the cpu/memory/io/pids controllers there (cgroup v2 allows no processes in a group that delegates). The unit starts the controller in<cgroup>/controller(DelegateSubgroup=, systemd >= 254; without systemd the controller moves itself there) and instances use the parent. Running instances pick this up on the nextscalws-controller reload.scalwsctlprints the server's message instead of a JSON envelope; the usage tables size their columns to the content and show sizes as KiB/MiB/GiB.
Changed (2026-10-12): runtime performance
- Python runtime: managed processes start with
MALLOC_MMAP_THRESHOLD_=524288andMALLOC_TRIM_THRESHOLD_=1048576(unless the application setsMALLOC_*). CPython's 256 KiB socket buffer otherwise went through mmap/mremap/munmap per read until glibc's adaptive threshold happened to rise; the same uvicorn app ran at 5 940 or 6 360 req/s depending on that. Resident memory is unchanged. respondroutes are answered without building a request context or a handler future, after every check of the pipeline (.htaccessroutes keep the regular path).
Fixed (2026-10-12): console on a fresh install
- The install text said
systemctl enable --now scalwsd, but the console manages the server throughscalws-controller, so it showed "controller unavailable". The package message, README and OPERATIONS.md now enablescalws-controller(scalwsd.servicestays for managed runtimes and HTTP/3); the console's error names the command that starts it. - Console: live statistics stayed empty under
scalws-controller: the console (withoutCAP_SYS_PTRACE) could not read the instances' fd links, so no metrics port counted as the instance's. It now accepts a listening socket owned by the instance's user then. - The package restarts an active
scalws-controllerandscalws-consoleon upgrade (the console kept running the old binary) and disables the controller on removal.
Benchmarks (2026-10-12): run 7 on the VM
- The run-7 binaries on the development VM of the 2026-10-06 runs (two server CPUs,
MODE=release) against nginx 1.31.6 and 1.24.0: ahead on the small static file (1.03x), proxy (1.06x), cache hits (1.57x), TLS + HTTP/2 (1.04x), HTTPS 1 MiB (1.50x) and PHP (1.16x); level on Python and Node.js; behind on fixed responses (0.94x) and the 1 MiB file over plain HTTP (0.95x).docs/benchmarks/2026-10-12-vm-release-run7.md.
Benchmarks (2026-10-12): Adaptive Runtime on bare metal
- D1 and D5 repeated on the bare-metal host: web-tier paths scale with efficiency
0.98-1.04 and N instances are 1.02-1.05x one instance with N loops; PHP stays bound by
PHP-FPM (11.8k req/s with 1, 2 or 3 instances). Bursts of 1024 connections from idle:
47.0k, 95.6k, 144.5k req/s with zero errors; every D5 check passed.
docs/benchmarks/2026-10-12-xeon-adaptive-runtime.md.
Benchmarks (2026-10-12): run 7, LiteSpeed Web Server Enterprise
- Bare metal,
MODE=release, PGO + BOLT build of a7dc639 against nginx 1.28/1.31 and LiteSpeed Web Server Enterprise 6.3.7 (trial licence: two workers) instead of OpenLiteSpeed: ahead of nginx 1.31 on static-small (1.09×), proxy (1.07×), cache-hit (1.87×), TLS + HTTP/2 (1.39×) and php (1.15×), level on static-1m and node, behind on respond (0.97×) and python (0.97×, from 0.94×). Against LSWS: ahead on everything but static-small (0.98×) and node (0.93×).docs/benchmarks/2026-10-12-xeon-release-run7.md. bench/run.sh: LiteSpeed is stopped with USR2 + TERM repeated until it exits (a TERM it ignored once kept the harness waiting);bench/instances.shandscripts/controller-d5.shtakeUPSTREAM_CPUandLOAD_CPUS.
Benchmarks (2026-10-12): release mode after the run-6 fixes
- Bare metal,
MODE=release, PGO + BOLT build of 2f0e5b5 against nginx 1.28/1.31 and OpenLiteSpeed 1.9.3: ahead of nginx 1.31 on static-small (1.13×), proxy (1.07×), cache-hit (2.01×), TLS + HTTP/2 (1.37×) and php (1.06×); behind on respond (0.95×) and python (0.94×).docs/benchmarks/2026-10-12-xeon-release-run6.md.
Added (2026-10-12): apt repository
- Signed apt repository at https://apt.scalws.com (
stable main; https://scalws.com/apt redirects there):apt install scalwson Ubuntu 24.04+ / Debian 13+ (docs/OPERATIONS.md, "Install").
Added (2026-10-12): Tenant resource commands
scalws-highcpu,scalws-highram,scalws-highio(scalwsctl high cpu|ram|io): the tenants using the most CPU, memory or disk I/O now, with their limits.scalws-limitcpu,scalws-limitram,scalws-limitio(scalwsctl limit cpu|ram|io): limit a tenant (by tenant name or Unix user) at once, until scalwsd restarts;--persistalso writes it toscalws.yaml(comments kept) and reloads;--clearremoves it. Under scalws-controller every instance gets the limit, also instances started later.- Console: a Resources page lists tenants by CPU, RAM or disk I/O with their limits;
operators set or remove run-time limits there (audited as
tenant.limits). - Admin API:
POST /v1/tenants/{tenant}/limits,GET /v1/tenants/usage;GET /v1/tenantsshows each tenant's user. - Configuration:
resources.io_bandwidth(io.maxon the disks of the tenant's application roots);io_weightreturns to the default 100 when removed.
Security (2026-10-12): fixes from security audit run-6 (audits/run-6/REPORT.md)
- Console: a draft in which a YAML anchor, alias or merge key copies a redacted placeholder to a field that is not secret is refused (after the save the view showed the secret).
.htaccess:DirectoryIndexkeeps at most 16 names (each is looked up for every directory request); the directory cache weighs the parsed items, not only the source..htaccess: the<Files *>deny for cut access rules is added after the file's own<Files>blocks, so an earlier grant no longer overrides it..htaccess: every regular expression run costs 4 KiB of the request's budget on top of its subject, and<FilesMatch>patterns are charged too.- PHP: parked output expires five minutes after parking began, also while the script is still running.
- Tenant limits: instances started later (scale-up, restart) receive the run-time limits from the controller instead of resetting the shared cgroup to the configuration; the controller refuses invalid limits with 400.
- Workers: the port owner check fails closed when
/proc/net/tcpcannot be read and refuses a connection accepted by another user.
Security (2026-10-12): fixes from security audit run-5 (audits/run-5/REPORT.md)
- Console: draft validation messages quote no source lines (a parser's cropped snippet showed fragments of a secret); secrets are also replaced in their escaped form.
.htaccess:<Files>access rules inside an unsupported container, open at the directive limit or never closed now deny every name; a file cut at 64 KiB or replaced by the parse-budget stand-in denies below child directories that grant access too.- PHP: an expired parked response returns its parking budget, not only its disk blocks (a stalled HTTP/2 stream could hold the shared budget indefinitely).
.htaccess: the directory cache weighs a parsed file's source and warnings (warnings are cut at 240 bytes); a request's regular expressions may scan at most 8 MiB (500 past that).- Console: sign-in, sign-out and re-authentication are audited at most 20 times a minute per account (failed sign-ins per client network), the rest counted in one notice; the sign-in throttle keys IPv6 clients per /64; at most 16 sessions per account.
- Workers: the per-connection owner check judges the listening socket (the kernel lists a connection not yet accepted with uid 0).
ErrorDocument: the path of the document's URI (no query or fragment) is what is checked against the deny rules and routed.
Security (2026-10-11): fixes from security audit run-4 (audits/run-4/REPORT.md)
- Console: secrets are replaced by
(secret)in draft validation errors, warnings and--checkoutput (parser messages quoted the restored secret's line; high). .htaccess: access rules inside<IfModule>for a module scalws does not model, past the 1000-directive limit or in the part of a file beyond 64 KiB deny instead of being dropped..htaccess: the directory cache is weighed by path length too (long missing paths could keep ~560 MiB per application); nearly every pattern is weighed as 4 KiB; an application may spend at most 100 ms a second parsing files (past that, uncached directories deny until the next second).- Deny rules: segment-prefix matching is linear in the path (8 KiB paths cost ~20 ms of CPU each with the WordPress profile).
- A local
ErrorDocumentthat the deny rules block is not served. - Cache: entries are bound to the application that produced them (a host moved to another tenant by a reload got the previous owner's cached responses).
- PHP: parked output for slow clients is limited to 1 GiB per pool and 4 GiB in total, and expires after 5 minutes unread.
- Workers: every new connection to a TCP worker's port must reach a socket of the worker's user (a port released by a descendant listener could be taken by another account).
- Console: connections that have not presented a valid session are closed after 30 s; request bodies must arrive within 10 s; the audit view pages back up to 64 MiB; at most 30 new drafts per user a minute.
Security (2026-10-11): fixes from security audit run-3 (audits/run-3/REPORT.md)
- Console: secrets nested in a changed section no longer appear in the draft validation change list (a Developer could read every redacted secret; high).
- PHP: a client that stops reading (e.g. an HTTP/2 stream whose window never opens) no
longer holds a PHP-FPM driver: output it does not take is parked in an unlinked
temporary file, as nginx
fastcgi_bufferingdoes (one connection could take a tenant's PHP site down; high). - Console: at most 16 connections per client address, request-head and idle deadlines; throttled re-authentication is not audited one by one; audit search survives a window starting inside a UTF-8 character; stats are scraped only from an instance's own listener; at most 8 open drafts per user.
- Controller: readiness is read only from the instance's own
127.0.0.1listener (a listener on127.0.0.2/[::1]with the same port made the controller kill every instance). - FastCGI client (vendored): buffered records are emitted before reading more (output no
longer piles up in memory); a connection that ends before
END_REQUESTis an error. .htaccess: access rules that cannot be evaluated (HTTP authentication,<RequireAll>,<Limit>, …) deny instead of being ignored; tenant regular expressions are budgeted (32 KiB each, at most 8 up to 256 KiB per file) and the parsed-file cache is weighed.- Cache: purged entries are not spilled back to the disk tier; bypass rules match the normalised client path after a rewrite.
- Deny rules cover PATH_INFO, trailing slashes and directory indexes
(
/wp-content/uploads/*.phpno longer bypassed withshell.php/or anindex.php). - Runtimes: a worker leaves rotation as soon as its process exits.
- Own HTTP/1 server (experimental): a pending response body is dropped when the client leaves; tiny request-body frames are copied out of the read buffer.
- PHP: client
X-Forwarded-*and client-address headers are stripped like the proxy does; FastCGI stderr is rate-limited; a managed FPM socket must belong to the tenant user. - Static files:
openat2support is decided once per document root, not on a request'sEPERM. - Console install: the generated administrator password is never printed (apt records the installer's terminal); the installer says how to read it from the credentials file.
Added (2026-10-08): Per-domain request counters (ADR-0042)
scalws_http_host_requests_total{tenant,app,host,status},..._response_bytes_total,..._request_bytes_total,..._cache_total{result},..._requests_in_flight: per configured domain pattern, counted by index from the host router's entry, sharded per event loop (no lock, no label hashing, no allocation per request). Unknown hosts and domains pastmetrics.max_hosts(default 1000) count as_other. On by default (metrics.hosts); A/B gate: no throughput or CPU-per-request regression (docs/benchmarks/2026-10-08-domain-metrics.md).- Console: Domains tab on Traffic and "Top domains" on Overview (requests/s, trend, status shares, bytes in/out, cache hit ratio, in flight, totals).
scalws-h3-probe --stall-ms/--on-stallandscripts/h2-stall-dump.sh: the soak runs an independent HTTP/2 client and snapshots sockets, controller and instance state while a request is pending > 2 s (forensics for the rc1 soak's unexplained HTTP/2 timeouts).- Soak memory-pressure probe fixed (it probed before memory was low);
FAULTS_ONLY. scripts/console-systemd-e2e.sh: console ->systemctl restart-> controller with the packaged units' sandboxing; 12/12. Fixed: an apply re-sent after it completed (draft gone) returned 404 instead of the same operation.bench/run.shrefuses to measure when the server it started has exited (a leftover process holding the port was measured once).
Added (2026-10-08): ScalWS Console: live traffic, every setting editable, redesign
- Traffic page and overview charts: requests/s, latency p50/p95/p99, 4xx/5xx, bandwidth, connections, TLS handshakes per site (with its domains), listener, instance and method, from the instances' metrics (2 s samples, 15 min kept, server-sent events).
- Configuration rebuilt on JSON Schemas of the config structs (
scalws-configfeatureschema,scalws-controller config-schema): Server, Listeners & TLS, Tuning, Security, Cache, Logging & metrics, Sites, PHP / FastCGI, Proxy & applications, Advanced and Adaptive Runtime (controller.yaml) pages with every field pre-filled, defaults, units, inline validation, set/changed markers, reset and undo, search; review lists changed settings before the text diff; controller.yaml applies by controller restart with automatic restore.scalws-controller check-config. - New design system (tokens, rail navigation, metric strip, charts with table views, status
shapes, dark and light), screenshots in
docs/console-screenshots/.
Added (2026-10-07): ScalWS Console (web administration, port 8090)
scalws-console(cmd/scalws-console,docs/console-*.md): HTTPS web administration shipped with ScalWS (same packages, own unitscalws-console.service, enabled by the installer, which creates useradminwith a random password and prints it once). Separate process; talks toscalws-controllerover its local socket only.- Overview, Adaptive Runtime (decision and pressure contributors, distribution, instances, desired count, autoscaling mode), Listeners (socket generations, QUIC demux), Logs, Audit log, About (versions, capability matrix, accounts).
- Configuration transactions: drafts (raw YAML editor and structured listeners / sites /
limits editor), validation (
scalws-config+scalwsd --check), redacted diff and impact, apply as a new generation with health check and automatic restore of the previous file, history with restore, conflict detection (base hash), idempotent operations. - Security: argon2id credentials file (re-read on change, refused when readable by others),
server-side sessions,
__Host-cookie, CSRF token + same-origin, login throttling, re-authentication for apply/rollback/purge, strict CSP, roles administrator / operator / developer / viewer checked server-side, secrets redacted in every view and in the append-only audit log.
Added (2026-10-07): remaining gaps: listener generations, HTTP/3 with several instances
- Listener generations (ADR-0037,
docs/listener-generations.md):reloadadds and removes ports, changes bind addresses, adds HTTPS, IPv6 or HTTP/3 without restarting the controller. New addresses are bound before the generation is published (a failed bind rejects the reload, nothing changes); a socket is closed when no generation uses it. A restarted controller takes the sockets back from running instances (one queue per address survives). A generation whose instances do not start is rolled back while the previous one serves. - HTTP/3 with several instances (ADR-0039 … 0041,
docs/http3-multi-instance.md): the controller's QUIC demux (scalws-controller quic-lb) routes datagrams by routable, encrypted connection IDs; new connections are placed on instances that accept them; replies leave directly on the shared UDP socket. Scale-out/in, rebinding, controller restart and demux crash keep established connections.scalws-controller quic-lb-status. - Connection distribution (ADR-0038,
docs/connection-distribution.md): per-instance work, pressure imbalance and aharmfulflag instatus; logged, not acted on. scalws-h3-probe(bench/h3probe): HTTP/3 load and correctness client (pinned test certificate, rebinding, truncation/reset/refused counts).scripts/controller-h3.sh,scripts/controller-listeners.sh,scripts/controller-soak.sh,bench/h3-instances.sh.
Fixed (2026-10-07, found by the soak and the new tests)
- HTTP/3 shutdown closed every connection at once (also with one instance); connections
now drain: GOAWAY, in-flight requests finish, the server waits for the client to close
(response bytes in flight are not discarded), then
H3_NO_ERROR. scalwsd --worker-threadswithoutevent_loopsin the file made every reload fail ("requires a restart"): the event-loop count was applied at start only. Under the controller this meant limit shares never reached running instances.- Per-IP limits were part of the restart-only topology: changing them (or the instance's share) rejected the whole reload. They now change on reload; only switching per-IP limiting on/off or its table size needs a restart. Reload errors name what changed.
- An instance could fail to receive its sockets (EPIPE): it wrote its id in two writes while the controller answered after the first.
Added (2026-10-07): Adaptive Runtime limitations addressed
- Controller
listen: inherited(new default): the controller opens the listeners once and hands them to its instances (SCM_RIGHTS,scalwsd --listen-socket); every instance accepts from one queue. Scale-in no longer needsnet.ipv4.tcp_migrate_req; no failed request over 120 rolling reloads under connection churn (reuseport: 3); with a new connection per request +8…17 % req/s and lower p99; equal with keep-alive.listen: reuseportkeeps the previous behaviour. - WebSocket tunnels end with a close frame
1001 Going Awayat a frame boundary when the server drains (scale-in, restart, SIGTERM), after the HTTP connections; clients reconnect. Test:scripts/controller-ws-drain.sh(dependency-free echo server/client inbench/apps/ws).
Fixed (2026-10-07)
- Per-core event loops dropped their runtime as soon as the HTTP drain finished, killing tasks that the next shutdown step still needed (WebSocket tunnels were cut without a close frame in about half of the scale-ins). Loops now run until the server stops them.
Changed (2026-10-07): renamed to Scale Web Server (ScalWS), https://scalws.com
| Before | Now |
|---|---|
scb-webd | scalwsd (web server daemon) |
scbctl | scalwsctl (CLI) |
scb-controller | scalws-controller (ScalWS Adaptive Runtime controller) |
crates scb-* | scalws-* |
package scb-web | scalws |
/etc/scb, /run/scb, /var/lib/scb, user/group scb | /etc/scalws, /run/scalws, /var/lib/scalws, scalws |
metrics scb_* | scalws_* |
environment SCB_* | SCALWS_* |
response header server: scb | server: scalws |
The on-disk response-cache format keeps its magic (SCBC1); existing disk caches stay
valid. Records written before the rename (pre-Adaptive-Runtime baseline and backup,
dated benchmark reports) keep the old names: they describe artefacts that carry them.
Added (Adaptive Runtime, 2026-10-07)
scalws-controllerand the ScalWS Adaptive Runtime (ADR-0033…0036): severalscalwsdinstances on SO_REUSEPORT listeners, lifecycle and generations, observe-only and web-tier autoscaling, limit sharing, cache purge fan-out;docs/adaptive-runtime.md.- Drain: responses after the shutdown signal carry
Connection: close; fresh and idle connections get a grace period; accept loops are tracked by the drain.
Added (performance and .htaccess, 2026-10-06)
- Per-core event loops (
server.event_loops, ADR-0029): one current-thread runtime per CPU sharing the listening socket; per-loop upstream and FastCGI connection pools. - Open file cache for static files (
server.open_file_cache, ADR-0028). - Kernel TLS for HTTPS/1.1 (
server.ktls, opt-in, ADR-0030): large files withsendfileover TLS. .htaccesssupport (applications[].htaccess: true, ADR-0031): mod_rewrite, mod_alias, access rules, ErrorDocument, DirectoryIndex, Header, Expires; new cratescalws-htaccess.- mimalloc as the global allocator of scalwsd (feature
mimalloc, default on).
Changed
- Connections are served by hyper's HTTP/1 or HTTP/2 builder directly (protocol from ALPN or a peek at the first bytes) instead of hyper-util's auto-detection; TLS without ALPN is HTTP/1.1 (RFC 9113 §3.2).
- Response cache: hit-for-pass markers (10 s) for responses that cannot be stored, sharded miss-coalescing map, pre-resolved lookup counters; request metrics resolved once per label combination.
- Accept loops take a connection before waiting for a connection slot (fair with several sockets).
Added (tenant users and zero-copy files, 2026-10-06)
tenants[].user(ADR-0026): the tenant's PHP-FPM/Node/Python processes run as that account (setpriv; no capabilities, no new privileges), own socket directory2770; needs CAP_SETUID, CAP_SETGID, CAP_CHOWN and CAP_KILL, checked at activation.- Large static files on plain-TCP HTTP/1 are sent with
sendfile(2)(ADR-0027,server.sendfile, default on): 1 MiB files ~1.8× faster.
Fixed
- Proxied responses kept the upstream's HTTP version (an HTTP/1.0 upstream answered
HTTP/1.1 clients with
HTTP/1.0); the client connection now decides.
Added (hardening and serving, 2026-10-06)
- Application processes die with scalwsd even when it is SIGKILLed outside systemd
(
setpriv --pdeathsig TERM); processes left in cgroup leaves by a previous instance are killed at start (cgroup.kill). - Metric series of tenants/applications removed by a reload are dropped (after the old generation drained).
scalws_tls_certificate_expiry_seconds{listener,certificate}for configured certificates; warning 14 days before expiry, error once expired.- Static
precompressed: true:.br/.gzsiblings byAccept-Encodingq-values, withVary: Accept-Encoding; siblings older than the file are ignored. - Response cache: concurrent misses for one URL are coalesced (one upstream request; others wait up to 5 s and are answered from the cache).
security.rate_limits: [{path, requests_per_second, burst}]per client address (429 +Retry-After,scalws_security_blocked_total{reason="route_rate"}).
Added (eBPF network accounting, 2026-10-06)
- Optional
scalws-ebpf(featureebpf, ADR-0025): cgroup_skb programs count network bytes and packets per application cgroup;server.ebpf.network: truepublishesscalws_app_network_bytes/scalws_app_network_packets. Load failures are warnings only.
Added (cache disk tier, 2026-10-06)
server.cache.disk(ADR-0024): disk tier for evicted and oversized entries, bounded size with LRU, asynchronous writes, persistent across restarts, purge/invalidation on both tiers; metricsscalws_cache_disk_entries,scalws_cache_disk_bytes.
Added (Python process pool, 2026-10-06)
- Python
process_pool: true: scalws runsworkers.min..maxsingle-worker server processes (uvicorn/hypercorn/gunicorn with one worker each) as a scalable pool: live scaling by the optimizer orscalwsctl scale, zero-dropscalwsctl restart.
Added (ARM64 packages, 2026-10-06)
ARCH=arm64 scripts/package.sh [--verify]: aarch64 cross-compiled DEB/RPM, verified in arm64 Debian 12 and Fedora 41 containers (QEMU).
Added (AI advisor over HTTPS, 2026-10-06)
server.ai.endpointmay behttps://(system roots plus optionalai.ca_bundle); non-loopback endpoints still needallow_remote: true.
Added (remote administration, 2026-10-06)
server.admin.remote(ADR-0023): admin API over TCP with mandatory client certificates (mutual TLS, TLS 1.3); mutations audited with the certificate subject;scalwsctl --remote host:port --ca … --client-cert … --client-key ….
Added (trusted proxies, 2026-10-06)
server.trusted_proxies(ADR-0022): client address fromX-Forwarded-Forof trusted peers only (right-most untrusted entry), forwarded chain extended upstream; PROXY protocol v1/v2 per listener (proxy_protocol: true), untrusted peers refused; per-source limits, access logs andREMOTE_ADDRuse the real client.
Changed (proxy performance, 2026-10-06)
- Reverse proxy drives upstream HTTP/1.1 connections inside the request task with its
own LIFO pool instead of hyper-util's per-connection tasks: +28 % rps, −15 % CPU per
request (0.51× → 0.66× nginx on the 13-byte proxy benchmark).
docs/benchmarks/2026-10-06-proxy-profile.md; diagnosticscripts/proxy-compare.sh.
Added (M10 multi-node design, 2026-10-06)
- ADR-0021: multi-node control plane design (pull-based controller, signed configuration bundles, staged rollout and rollback). Design only; no implementation.
Added (M10 container runtime, 2026-10-06)
runtime: {type: container}(ADR-0020, cratescalws-runtime-container): containers run bypodman run/docker runas supervised workers in a scalable pool; bridge (loopback publish) or host networking;--security-opt no-new-privileges,--init, optional read-only root, dropped capabilities, user, validated bind mounts, pull policy; with podman and cgroups, containers live under the application's tenant cgroup.- Supervisor
cleanuphook (argv run after every worker exit): no container outlives its worker. - Linux test image: podman + catatonit; end-to-end container test.
Added (M10 HTTP/3 evaluation, 2026-10-06)
- Experimental HTTP/3 over QUIC behind the cargo feature
http3(ADR-0019; quinn, h3):listener.http3: true, same pipeline as HTTP/1.1/2, reloadable/ACME certificates, global and per-source connection limits, GOAWAY on shutdown,Alt-Svcon TCP. - Bench:
h3-static-smallscenario (scalws vs Caddy), HTTP/3 in the soak test;docs/benchmarks/2026-10-06-http3.md.
Fixed
- HTTP/3: completed request tasks were kept per connection until it closed (found by the benchmark before release: 1.1 GiB after 10 s).
Added (M10 ACME, 2026-10-05)
- ACME certificate automation (ADR-0018,
instant-acme): HTTP-01, one certificate per application (acme: true), served on listeners withtls: {acme: true}, renewal through the configuration controller (no restart), per-application backoff, state inserver.acme.state_dir(0600 keys),GET /v1/certs,scalwsctl certs, metricsscalws_acme_orders_total,scalws_acme_certificate_expiry_seconds. scripts/acme-e2e.sh: issuance, reload-triggered renewal and restart against Pebble.- Durations accept days (
30d). - systemd unit:
StateDirectory=scalws(/var/lib/scalws writable under ProtectSystem=strict).
Added (acceptance gate 6, 2026-10-05)
bench/soak.sh: sustained mixed load over every serving path with RSS/fd/thread sampling and a pass/fail verdict;bench/overload.sh: quota overload with refusal, memory, isolation and recovery checks. Both pass (30-minute soak: 43 M requests, flat memory). Bench upstream:/api/delay(50 ms).
Fixed
- Wording of the "running as root" warning.
Added (M9 operations, 2026-10-05)
- Admin API on a Unix socket (
server.admin.socket, default<runtime_dir>/admin.sock, mode 0660) with audited mutations: reload, rollback, application restart, scale, cache purge, explain requests; views: status, apps, tenants, config history and diff, diagnose, optimizer, explain (ADR-0017). - Configuration controller with history of the last 10 configurations, rollback, line diff, and zero-drop per-application restart.
- Read-only dashboard at
/dashboardon the metrics listener. scalwsctl: status, apps, tenants, top, reload, rollback, history, diff, restart, scale, purge, backup, restore, completion; global--config,--socket,--address.- DEB/RPM packaging (
packaging/nfpm.yaml,scripts/package.sh [--verify]),scalwssystem user, package default configuration, shell completions;docs/OPERATIONS.md.
Changed
- Cache purge and explain requests moved from the metrics listener to the admin socket;
the metrics listener is read-only (
POST→ 403). workers.autoscaleaccepts the YAML 1.1 booleanoff/falseasoff.- systemd unit:
RuntimeDirectoryMode=0750so groupscalwsreaches the admin socket.
Added (M8 local AI advisor, 2026-10-05)
scalws-ai(ADR-0016): redaction of all model input, size-capped input preparation, advice JSON schema with strict validation, OpenAI-compatible HTTP provider.- Advisor service:
server.ai(disabled by default; loopback endpoint unlessallow_remote;api_key_env;timeout,max_queue,min_interval,max_tokens), automatic explanations on new warning/critical findings,GET/POST /explain,scalwsctl explain [--refresh], metricsscalws_ai_requests_total,scalws_ai_queue_depth.
Added (M7 diagnostics, 2026-10-05)
scalws-diag(ADR-0015): deterministic findings with severity, evidence, suggestion and correlated resource causes.- Evidence collection per window: upstream failures by reason, quota rejections, runtime state and restarts, cgroup v2 memory/limit, OOM kills and pressure stall information.
- Recent failed/slow requests per application (
server.diagnostics.slow_request,recent_requests);GET /diagnose[?app=tenant/app];scalwsctl diagnose. - Metrics
scalws_diagnostic_findings_total,scalws_http_response_transfer_seconds,scalws_tls_handshake_seconds; log targetscalws::diag.
Changed
- Responses refused by tenant quotas no longer count as application requests in the optimizer telemetry.
Added (M6 deterministic optimizer, 2026-10-05)
scalws-policy(ADR-0014): pure rule engine (scale_up/scale_down with bands, streaks, cooldowns, bounds and memory precondition; outcome observation with rollback and rule suppression; memory-pressure and error-rate advisories).- Per-application telemetry (requests, 5xx, latency percentiles, in-flight, cache hit ratio, tenant memory pressure) and the optimizer task.
- Live worker scaling of managed Node.js pools (
workers.autoscale: auto); Python recommendations; PHP advisories. - Audit:
scalws::auditlog target,scalws_optimizer_decisions_total,GET /optimizerjournal on the admin listener,scalwsctl recommendations. - Configuration:
server.optimizer {enabled, interval, journal_size},workers.target_concurrency.
Changed
workers.autoscaledefaults torecommend(recommend-only by default).
Added (M5 cache and security, 2026-10-05)
scalws-cache(ADR-0012): opt-in bounded memory response cache (moka) with explicit freshness only,Varyvariants, profile/config bypass rules, stale-while-revalidate with single-flight refresh, invalidation on unsafe requests, purge by URL, prefix, tag or all (POST /cache/purgeon the loopback admin listener),X-Cache/Ageheaders.scalws-security(ADR-0013): profile + configured deny paths; per-source connection limit at accept and request rate (IPv4 / IPv6 /64) with bounded sharded state.limits.write_timeoutfor slow readers;strict_snilisteners answer 421.- Metrics
scalws_cache_lookups_total,scalws_cache_entries,scalws_cache_bytes,scalws_security_blocked_total; rejection reasonsource_connection_limit. - Property-based fuzz tests for path/host normalisation, ranges, Cache-Control, CGI headers, units and configuration parsing.
- Benchmark scenario
cache-hit.
Added (M4 application profiles, 2026-10-05)
scalws-profiles(ADR-0011): profiles as YAML data inprofiles/(php, wordpress, woocommerce, laravel, node, nextjs, python, django, flask, fastapi) with weighted detection rules, runtime templates, health checks, static paths, cache-bypass and security rules.- Detection engine with evidence and confidence; bounded, symlink-free scanning; fact extraction (Python application object, Django WSGI module, virtualenv, npm command).
scalwsctl detect <dir> [--json](read-only proposal) andscalwsctl profiles.profile:application key: supplies the runtime when omitted (static profiles) and health checks;runtimeis optional when a profile is set.
Added (M3 tenancy, 2026-10-05)
scalws-cgroups(ADR-0010): cgroup v2 hierarchy under scalws's delegated group (orserver.cgroups.path), tenant limitscpu,memory(+swap, default 0),pids,io_weight; workers jointenants/<tenant>/<app>before their first instruction; limits rewritten on reload; removed groups pruned; modesauto/required/off.- Per-tenant request quotas:
max_concurrent_requests(503) andrequests_per_secondburst(429), metricscalws_tenant_limited_total.
- Accounting metrics
scalws_tenant_{cpu_seconds,memory_bytes,pids,oom_kills},scalws_app_{cpu_seconds,memory_bytes,pids},scalws_cgroups_enabled. - systemd unit:
Delegate=yes,KillMode=control-group,RuntimeDirectory=scalws. - Linux test runs use a privileged container with a delegated cgroup root; OOM isolation and live limit change are tested end to end.
Added (M2 runtime platform, 2026-10-05)
- Process supervisor (ADR-0008): argv without shell, cleared environment, own process
group, readiness probes (socket or HTTP path), exponential backoff, restart-loop
detection (
Failed), graceful stop (SIGTERM/SIGQUIT then SIGKILL), rate-limited and sanitised stdout/stderr capture. scalws-runtime-node: managed Node.js processes (N workers, round-robin over ready ones) or external upstreams.scalws-runtime-python: ASGI (uvicorn, hypercorn, gunicorn + UvicornWorker) and WSGI (gunicorn) launch templates, virtualenvs, explicit commands with{socket}/{port}.scalws-runtime-php(ADR-0009): managed PHP-FPM pools with generated configuration or external FastCGI endpoints; PHP/static/front-controller routing withPATH_INFO; CGI response parsing; httpoxy protection;.phpnever served as static content.- Reverse proxy: WebSocket tunnelling with a server-wide limit and idle timeout; HTTPS upstreams (system roots + optional CA file).
- Reloads reuse unchanged runtime instances; new ones start before the swap, retired ones drain in the background.
- Metrics
scalws_runtime_ready_workers,scalws_runtime_restarts_total. - Integration tests for supervision and acceptance tests with real PHP-FPM, Node.js,
uvicorn and gunicorn; Linux test image
docker/test.Dockerfile; CI installs runtimes. - Benchmarks: PHP, Node and Python scenarios for scalws, nginx and Caddy.
Changed (2026-10-05, PHP performance)
- Persistent FastCGI connections (
FCGI_KEEP_CONN) to managed PHP-FPM pools, bounded bymax_children, with stale-connection detection and replay of small requests; 2 s routing plan cache. PHP throughput 0.70× → 0.93–1.0× nginx, CPU per request −34 %. - PHP request bodies ≤ 64 KiB are buffered (replayable); larger ones stream.
Changed (M2)
server.runtime_dir,limits.max_upgraded_connections,limits.upgraded_idle_timeoutconfiguration keys;proxyruntime gainswebsocketandtls_ca_file.- PHP request planning uses the same non-blocking cached lookup as static files.
Changed (2026-10-05, static file performance)
- Static files: Linux lookups via
openat2(RESOLVE_BENEATH | RESOLVE_NO_MAGICLINKS)from a root directory fd (closes the symlink TOCTOU window); non-blocking hot path withRESOLVE_CACHED+preadv2(RWF_NOWAIT); small files read in the lookup call; large files streamed with 256 KiB positional reads. 3.4× (13 B) and 4.6× (1 MiB) throughput. - Absolute symlinks inside a document root are now refused on Linux (ADR-0006).
scripts/profile.sh: perf-based profiling of any benchmark scenario.
Added (M0 + M1 vertical slice, 2026-10-05)
- Workspace, ADRs 0001–0007, architecture and threat-model documents.
scalws-config: YAML schema withdeny_unknown_fields, size/duration/CPU units, upstream parsing, semantic validation that reports every error with its document path.scalws-router: host routing (exact + wildcard) and segment-aligned path routing on normalised paths.scalws-tls: PEM loading, key/cert match and SAN coverage checks, SNI resolver with atomic replacement on reload.scalws-static: confined static files (traversal, encoded-slash, dotfile and symlink protections), ETag/Last-Modified, conditional and single-range requests.scalws-proxy: HTTP/1.1 reverse proxy over TCP and Unix sockets with hop-by-hop stripping, forwarding headers, timeouts, failure classification.scalws-http: accept loop with connection cap, TLS handshake timeout, HTTP/1.1 + HTTP/2 limits, idle-connection closing, graceful drain.scalws-server: request pipeline, prepare/activate/reload,/metricsand/healthz.scalwsddaemon (SIGHUP reload, SIGTERM drain) andscalwsctl check.- Integration and security test suites; Docker-based benchmark harness with nginx and Caddy comparison configs; CI workflow; cargo-deny policy; systemd unit.