ScalWS 1.1.1
- Tag v1.1.1
- : ScalWS 1.1.1
- Debian version
- 1.1.1
- Newest package
- 1.1.1-1,
Package builds
All 3 files of 1.1.1 in the apt repository, newest first. Install the newest with apt install scalws (see Install); a specific build with apt install scalws=1.1.1-1.
| Package and version | Arch | File date | Size | Downloads | SHA-256 | Download |
|---|---|---|---|---|---|---|
| scalws-scalpanel 1.1.1+scalpanel.1-1 newest | amd64 | 10.5 MiB | aa985a0a4111 | .deb | ||
| scalws-scalpanel 1.1.1+scalpanel.1-1 newest | arm64 | 10.6 MiB | c16150fcf2f9 | .deb | ||
| scalws 1.1.1-1 newest | amd64 | 29.3 MiB | db16b24f5cfa | .deb |
SHA-256 checksums
In sha256sum -c format; see Verify.
aa985a0a41118d22131ee4b201378cb427f721a40a8d43267cab50182c98d410 scalws-scalpanel_1.1.1+scalpanel.1-1_amd64.deb
c16150fcf2f9c7232f725d4867bac89a785a03afd9840395aa8ab3137466b0e3 scalws-scalpanel_1.1.1+scalpanel.1-1_arm64.deb
db16b24f5cfa2ba79b7a322c6f1403d71295ec4a2bb2dc606c3dbe9a5c2b84ad scalws_1.1.1-1_amd64.debDebian versions and revisions
1.1.1 is 1.1.1 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.
scalws-scalpanel (component scalpanel) is a separate package: ScalWS for ScalPanel's custom web server image. Its version 1.1.1+scalpanel.1-1 carries the release version with a +scalpanel.1 suffix.
scalws-scalpanel (component scalpanel) is a separate package: ScalWS for ScalPanel's custom web server image. Its version 1.1.1+scalpanel.1-1 carries the release version with a +scalpanel.1 suffix.
Container image and Helm chart
Built and pushed by the release workflow for tag v1.1.1 (amd64 and arm64). Usage: Kubernetes guide, ingress controller. Registry access may require authentication.
- Image
ghcr.io/xsmtx/scalws:1.1.1- Helm chart
oci://ghcr.io/xsmtx/charts/scalwsversion1.1.1
Release notes
From CHANGELOG.md at tag v1.1.1, section [1.1.1]. The same file on scalws.com: changelog.
Changed
- The access log gains a last field
tls_clienton every line of thetextformat, with or without mutual TLS (-when the connection has no client certificate); a parser that reads the format by position sees one more field. scalwsctl upstreams: theACTIVEcolumn (requests in flight) is renamedINFLIGHT. The newHEALTHYandACTIVEcolumns show whether the member takes traffic and its active health (up,down,unknown,off). In pools withactive_health,FAILURESshows consecutive failed probes and the newPFAILcolumn the consecutive passive failures; other pools keep passive failures inFAILURESand show-inPFAIL. Scripts reading the table by column name must follow the new columns;--jsononly gains fields (healthy,active,active_fails).
Added
- ScalPanel mode: site.json
runtime(kindphp, node, python, ruby, container or static,version,upstream,entry,detected). node, python, ruby and container serve the files underdocument_rootand proxy the rest toupstream(a socket inside the site folder or a loopback address), WebSocket upgrades included; static serves files only;phpbecomes optional for the other kinds;scalwsd --versionlistsruntimeinsite-json-fields. PHP source is never sent by the other kinds (403, or 404 withoutdeny_dotfiles). Proxy:files_firstserves existing files before proxying; static andfiles_first:deny_suffixes. - Static: current MIME types for
.wasm,.mjs,.avif,.webp,.webmanifest,.woff2,.woff,.map,.ics,.vcf,.apk,.heic,.jxl,.md,.yaml,.ymland.toml(an.htaccessAddTypestill wins), unknown extensions asapplication/octet-streamwithnosniff;scalwsd --mime-typesprints the table as JSON and--versiongainsmime-table: 1. - Respond:
body_fileserves a page from a file (a regular file, at most 1 MiB, not a link) read when the configuration is loaded and again on every reload, never per request; a missing or oversized file fails the start or reload naming the field;scalwsd --versionlistsrespond_file. - Upstream pools:
hash: {by: cookie, key_file}keys the affinity cookie with the bytes of a shared file (same rules as thestickykey file), so nodes and restarts agree on the cookie of a member;scalwsd --versionlistsaffinity_key. - ScalPanel mode: upstream pools take
active_health, which probes every member withGET path(optionalhost, fixedheaders,interval,timeout,fails,passes, acceptedstatusrange). A member down by its probes takes no requests, and a pool with no healthy member answers 503 (no fallback to an ejected member as in pools withoutactive_health). Members start up, kept members keep their state across reloads, and probes never carry client data. Probes have connections of their own, never reused by requests, and start only once the generation that built the pool is applied. The admin API addshealthy,active,active_failsandsince_unix_msper member, and the gaugescalws_upstream_active_health{pool, member}exists for pools withactive_healthonly (dropped when a member leaves oractive_healthis removed). - ScalPanel mode: in pools with
active_health, a member whose probes bring it back up (down to up afterpassessuccesses) leaves a running passive ejection at once; it stays on probation, so one failed request ejects it again. A probe success on a member the probes never saw down does not end an ejection (an outage shorter thanfailsprobes runs its cooldown as before). Pools withoutactive_healthare unchanged (ADR-0049). - ScalPanel mode:
backendsentries take anid([a-z0-9-]{1,32}, unique in the route; default: the pool name; not onstatusentries), and a pool runtime takesbalance: weighted(default) orbalance: failover(the first healthy backend in list order, for a local pool with a peer pool behind it). Withbalanceset, or a pool withactive_health, backends whose members are all unhealthy are skipped; when none is healthy and a pool hasactive_healththe route answers 503, otherwise the ADR-0049 fallback still sends the request. Routes without these keys choose as in 1.1.0. A pool listed twice in one route'sbackendsis a warning (an error onceidorbalanceis used). - ScalPanel mode: pool members take
backup: true(also inPUT /v1/upstreams/{name}). A backup member takes requests only while every non-backup member of its pool is unhealthy; when none is healthy, pools withactive_healthanswer 503 and others keep the ADR-0049 fallback. At least one member must not be a backup;unix:members cannot be backups. The admin API showsbackup: trueon such members.scalwsd --versionlists the edge featuresbackup_membersandpools. - ScalPanel mode: a pool runtime takes
retry: {on, max, only_idempotent}(on:connect_error,timeout,status_5xx;max0 to 5, default 1;only_idempotentdefault false). It replaces the pools'retriesfor that route: an attempt is retried on an untried member of the same pool, then on the next backend. A connect error is retried for any method (GET, HEAD and OPTIONS only withonly_idempotent); a written request (timeout, broken connection, 502 to 504) only for GET, HEAD, OPTIONS, PUT and DELETE (GET, HEAD and OPTIONS withonly_idempotent). A written POST or PATCH is never sent again. Routes withoutretrykeep ADR-0049's pool retries. - ScalPanel mode: on a route with
retry.only_idempotent: true, the resend of a request that was written on a kept-alive connection the member had closed (ADR-0043) applies to GET, HEAD and OPTIONS only; a written PUT or DELETE gets the error answer. A request written on such a connection counts as written forretrywhen the reconnect fails, never asconnect_error. Routes withoutretryresend as before. - ScalPanel mode: a pool runtime takes
write_backend: <index into backends>. Writes (any method except GET, HEAD, OPTIONS and TRACE) and WebSocket upgrades go only to that backend, ignoringbalanceand weights. When its pool hasactive_healthand no healthy member, a write gets 503 and never reaches another backend; a pool withoutactive_healthkeeps its passive fallback. A write is retried only on another member of that pool, only after a connect error (withretry: only whenonhasconnect_errorandonly_idempotentis not set), and a written PUT or DELETE is not resent after a stale kept-alive connection. It must name a pool backend. - ScalPanel mode: a pool runtime takes
sticky: {cookie, ttl, key_file}. The answer sets a cookie naming the backendidand member, signed with HMAC-SHA256 under the key file every edge shares (32 to 1024 bytes, owned by root or the service user, no group or other access (0600);scalwsctl checkreads it). A valid cookie for a healthy backend keeps it; a forged, unknown or unhealthy one gets the normal choice and a new cookie. Writes ignore it withwrite_backend,balance: failoverignores it with a warning.scalwsd --versionlistssticky. - ScalPanel mode: a pool runtime takes
read_only: true. Every write (any method except GET, HEAD, OPTIONS and TRACE) and WebSocket upgrade getsread_only_response({status, body, retry_after}, default 503 with an empty body; status 400 to 599, body at most 4 KiB,retry_after1 to 86400 s) withCache-Control: no-store, before its body is read and without reaching any upstream; reads are served. Once the reload that sets it has returned (scalwsctl reload,POST /v1/reloadorscalws-controller reload; notSIGHUP), every new request sees it, also on HTTP/1 keep-alive and HTTP/2 connections opened before, and every WebSocket tunnel the route's runtime opened before (through any earlier generation) is closed. Only a success answer means the fence is in place.scalwsd --versionlistsread_only. - scalws-controller:
reload(POST /reload) answers200once the new generation serves alone (old instances drained and gone, at most 180 s). It answers409when the generation is rolled back or replaced (it used to answer200at once), and504when the generation has not taken over within 180 s (the roll goes on). It used to answer as soon as the generation was created. scalws-console's Apply waits up to 200 s for it: it restores the previous file only on409or a refused configuration, and on504or its own timeout it reports the reload as still in progress and keeps the new file. - ScalPanel mode: runtime
type: upstream_statusanswersGET/HEADwith the health of every member of every pool the application's proxy runtimes use, as a JSON array of{app, pool, member, healthy, since, fails, active, ejected}(cache-control: no-store, no request data; other methods 405). For the agent's loopback probe listener: a route reachable from a non-loopback listener (by itslisteners, else the application's) is a warning.scalwsd --versionlistsupstream_health. - ScalPanel mode: route
listeners: [peer]applies a route only to requests that arrived on the named listeners; such a route is tried before routes of the same path without it. TheX-ScalPanel-Viaroute for forwarded requests is scoped to the node link, so a public client sending the header reaches the main route. Unknown or repeated names are errors, a listener the application is not on is a warning.scalwsd --versionlistsreplica. - ScalPanel mode: listeners take
tls.client_ca_file(a PEM file of CA certificates) andclient_names(exact DNS names, at most 64, no wildcards): every client must present a certificate from that CA, and withclient_namesone of its DNS names must equal a listed name. A connection without a valid certificate fails in the TLS handshake before any HTTP byte is read. Such listeners send no TLS 1.3 tickets and keep no session cache. Adding or removingclient_ca_fileneeds a restart; a changed CA file orclient_namesapplies on reload to new handshakes.client_namesempty is a warning (any certificate of the CA passes). Not withhttp3. The access log gains a last fieldtls_client(the matched name, the first DNS name, or-); a parser that reads thetextformat by position sees one more field.scalwsd --versionlistspeer_tls. - ScalPanel mode: pools take
tls.client_cert_fileandclient_key_file(a PEM chain and its unencrypted key, together, only withscheme: https), presented to every member and to the probes, for a peer edge that requires a client certificate. The pair is checked when the pool is built (a key that does not match, or an encrypted key, is an error that namesclient_key_filewithout quoting the key); a reload rebuilds the pool when either file changed, and a world-readable key is warned about. - ScalPanel mode:
scalwsd --versionlists the edge features of this release:access_log affinity_key backup_members forwarded_for gzip max_upgraded networks peer_tls pools prefix_proxy read_only referer remove_cookies replica respond_file route_order sticky upstream_health. The new ones:replica(active_health,backends[].id,balance,retry,write_backend, routelisteners),sticky,upstream_health,peer_tlsandread_only, plusaffinity_key,backup_members,poolsandrespond_file. ScalPanel turns replicas on only when the line lists what it needs. - ScalPanel mode: scalws-console accepts the new keys: its form lists them in order (pool
id,active_health,retry,sticky,write_backend,read_only,client_ca_file,client_names,client_cert_file,client_key_fileand the rest) and its draft checks confine the new file paths (client_ca_file,client_cert_file,client_key_file,hash.key_file,sticky.key_file,body_file) to the configuration directory like certificate files. - Docs: the replicas guide (two-node pattern, sticky key file,
write_backend, fencing and the reload boundary, loop prevention, the node link), ADR-0055, an amendment to ADR-0049 and threat model rows. The fencing text corrects the design draft:read_onlyapplies per request on every stack, so an already open connection is fenced at its next request without GOAWAY.
Security
- Console: an Apply whose generation another writer's reload replaced (a controller
409that is not a rollback, or a health check that finds a newer generation) no longer writes the previous file back over that writer's file or reloads it; it restores only while the file still holds its own draft. Before, a console Apply racing a fencing reload could undoread_only(audit replica R2). - TLS: a reload that revokes a node of a mutual-TLS listener (a new
client_ca_file, orclient_nameswithout it) also refuses every further request on that node's open connections with403(client_cert_revoked): HTTP/1 closes the connection, HTTP/2 answers403per stream until the idle timeout ends it. Upgraded tunnels already open are not ended. Before, a connection opened before the revocation kept the peer link (audit replica R3).