ScalWS 1.1.1

latest

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.

Size and SHA-256 from the signed Packages index; each file was downloaded and checked against them when this site was built. File date: Last-Modified on apt.scalws.com.
Package and versionArchFile dateSizeDownloadsSHA-256Download
scalws-scalpanel 1.1.1+scalpanel.1-1 newestamd6410.5 MiBaa985a0a4111.deb
scalws-scalpanel 1.1.1+scalpanel.1-1 newestarm6410.6 MiBc16150fcf2f9.deb
scalws 1.1.1-1 newestamd6429.3 MiBdb16b24f5cfa.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.deb

Debian 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/scalws version 1.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_client on every line of the text format, 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: the ACTIVE column (requests in flight) is renamed INFLIGHT. The new HEALTHY and ACTIVE columns show whether the member takes traffic and its active health (up, down, unknown, off). In pools with active_health, FAILURES shows consecutive failed probes and the new PFAIL column the consecutive passive failures; other pools keep passive failures in FAILURES and show - in PFAIL. Scripts reading the table by column name must follow the new columns; --json only gains fields (healthy, active, active_fails).

Added

  • ScalPanel mode: site.json runtime (kind php, node, python, ruby, container or static, version, upstream, entry, detected). node, python, ruby and container serve the files under document_root and proxy the rest to upstream (a socket inside the site folder or a loopback address), WebSocket upgrades included; static serves files only; php becomes optional for the other kinds; scalwsd --version lists runtime in site-json-fields. PHP source is never sent by the other kinds (403, or 404 without deny_dotfiles). Proxy: files_first serves existing files before proxying; static and files_first: deny_suffixes.
  • Static: current MIME types for .wasm, .mjs, .avif, .webp, .webmanifest, .woff2, .woff, .map, .ics, .vcf, .apk, .heic, .jxl, .md, .yaml, .yml and .toml (an .htaccess AddType still wins), unknown extensions as application/octet-stream with nosniff; scalwsd --mime-types prints the table as JSON and --version gains mime-table: 1.
  • Respond: body_file serves 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 --version lists respond_file.
  • Upstream pools: hash: {by: cookie, key_file} keys the affinity cookie with the bytes of a shared file (same rules as the sticky key file), so nodes and restarts agree on the cookie of a member; scalwsd --version lists affinity_key.
  • ScalPanel mode: upstream pools take active_health, which probes every member with GET path (optional host, fixed headers, interval, timeout, fails, passes, accepted status range). 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 without active_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 adds healthy, active, active_fails and since_unix_ms per member, and the gauge scalws_upstream_active_health{pool, member} exists for pools with active_health only (dropped when a member leaves or active_health is removed).
  • ScalPanel mode: in pools with active_health, a member whose probes bring it back up (down to up after passes successes) 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 than fails probes runs its cooldown as before). Pools without active_health are unchanged (ADR-0049).
  • ScalPanel mode: backends entries take an id ([a-z0-9-]{1,32}, unique in the route; default: the pool name; not on status entries), and a pool runtime takes balance: weighted (default) or balance: failover (the first healthy backend in list order, for a local pool with a peer pool behind it). With balance set, or a pool with active_health, backends whose members are all unhealthy are skipped; when none is healthy and a pool has active_health the 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's backends is a warning (an error once id or balance is used).
  • ScalPanel mode: pool members take backup: true (also in PUT /v1/upstreams/{name}). A backup member takes requests only while every non-backup member of its pool is unhealthy; when none is healthy, pools with active_health answer 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 shows backup: true on such members. scalwsd --version lists the edge features backup_members and pools.
  • ScalPanel mode: a pool runtime takes retry: {on, max, only_idempotent} (on: connect_error, timeout, status_5xx; max 0 to 5, default 1; only_idempotent default false). It replaces the pools' retries for 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 with only_idempotent); a written request (timeout, broken connection, 502 to 504) only for GET, HEAD, OPTIONS, PUT and DELETE (GET, HEAD and OPTIONS with only_idempotent). A written POST or PATCH is never sent again. Routes without retry keep 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 for retry when the reconnect fails, never as connect_error. Routes without retry resend 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, ignoring balance and weights. When its pool has active_health and no healthy member, a write gets 503 and never reaches another backend; a pool without active_health keeps its passive fallback. A write is retried only on another member of that pool, only after a connect error (with retry: only when on has connect_error and only_idempotent is 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 backend id and 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 check reads 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 with write_backend, balance: failover ignores it with a warning. scalwsd --version lists sticky.
  • ScalPanel mode: a pool runtime takes read_only: true. Every write (any method except GET, HEAD, OPTIONS and TRACE) and WebSocket upgrade gets read_only_response ({status, body, retry_after}, default 503 with an empty body; status 400 to 599, body at most 4 KiB, retry_after 1 to 86400 s) with Cache-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/reload or scalws-controller reload; not SIGHUP), 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 --version lists read_only.
  • scalws-controller: reload (POST /reload) answers 200 once the new generation serves alone (old instances drained and gone, at most 180 s). It answers 409 when the generation is rolled back or replaced (it used to answer 200 at once), and 504 when 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 on 409 or a refused configuration, and on 504 or its own timeout it reports the reload as still in progress and keeps the new file.
  • ScalPanel mode: runtime type: upstream_status answers GET/HEAD with 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 its listeners, else the application's) is a warning. scalwsd --version lists upstream_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. The X-ScalPanel-Via route 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 --version lists replica.
  • ScalPanel mode: listeners take tls.client_ca_file (a PEM file of CA certificates) and client_names (exact DNS names, at most 64, no wildcards): every client must present a certificate from that CA, and with client_names one 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 removing client_ca_file needs a restart; a changed CA file or client_names applies on reload to new handshakes. client_names empty is a warning (any certificate of the CA passes). Not with http3. The access log gains a last field tls_client (the matched name, the first DNS name, or -); a parser that reads the text format by position sees one more field. scalwsd --version lists peer_tls.
  • ScalPanel mode: pools take tls.client_cert_file and client_key_file (a PEM chain and its unencrypted key, together, only with scheme: 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 names client_key_file without quoting the key); a reload rebuilds the pool when either file changed, and a world-readable key is warned about.
  • ScalPanel mode: scalwsd --version lists 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, route listeners), sticky, upstream_health, peer_tls and read_only, plus affinity_key, backup_members, pools and respond_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_file and 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_only applies 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 409 that 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 undo read_only (audit replica R2).
  • TLS: a reload that revokes a node of a mutual-TLS listener (a new client_ca_file, or client_names without it) also refuses every further request on that node's open connections with 403 (client_cert_revoked): HTTP/1 closes the connection, HTTP/2 answers 403 per 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).