mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
CHANGELOG: v1.40.6, what the review found, and what SECURITY.md said before
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9343a84f6c
commit
efadad7018
1 file changed
+44
-27
+44
-27
@@ -1,43 +1,60 @@
|
||||
# Changelog
|
||||
|
||||
## v1.40.6 (2026-10-30): a security release: the image, video and SGLang text lanes keep their engine's own sockets off the network
|
||||
## v1.40.6 (2026-10-31): the engines' own coordination ports stay off the network, where SECURITY.md said no setting could keep them
|
||||
|
||||
**Why.** Each engine of this repo is one process, and it still sets torch.distributed up: a rendezvous store and, in the
|
||||
diffusion runtime, gloo's and NCCL's bootstrap. torch makes its TCPStore listen on every interface whatever address it
|
||||
is given, and that bootstrap took the box's LAN address. Measured on the reference box on 2026-10-30, which has no
|
||||
firewall: the installed image and video lanes listened on *:30005 and on four ports of 192.168.1.71, and the 27B lane on
|
||||
*:23906, a port drawn at each start, none of them with a key. A connection to 30005 from the box's LAN address and from
|
||||
its tailnet address went through. Found while proving the move of the diffusion lanes to SGLang v0.5.22: v1.40.1 had
|
||||
kept their scheduler's channel on loopback, not these. FP4-Local, a vLLM lane, listened on nothing of the kind.
|
||||
**Why.** SECURITY.md has said since 2026-09-30 that each engine opens its own coordination port on every interface, with
|
||||
no key and no setting to narrow it, and advised a firewall: an engine of one process still runs torch.distributed's
|
||||
store, which torch binds to every interface whatever address it is given. No model and no data sit behind those ports,
|
||||
but a hostile connection can disturb the engine. There are settings after all. Measured again on the reference box on
|
||||
2026-10-30, which has no firewall: the installed image and video lanes listened on *:30005 and on four ports of
|
||||
192.168.1.71, the box's LAN address, the 27B lane on *:23906, a port drawn at each start, and under the real clients the
|
||||
27B and flash lanes on four ports of 192.168.1.71 as well, though the box's name resolves to 127.0.0.1. A connection to
|
||||
30005 from the box's LAN address and from its tailnet address went through. The vLLM lanes opened no such port.
|
||||
|
||||
**The image and video lanes.** Their units pass GLOO_SOCKET_IFNAME=lo and NCCL_SOCKET_IFNAME=lo, which put that
|
||||
bootstrap on loopback, and with a loopback bind, their default, IPAddressDeny=any with IPAddressAllow=localhost: the
|
||||
kernel lets the lane's processes talk to loopback alone, so the TCPStore, which still listens on every interface, is out
|
||||
of reach of any other machine. The lanes need no network to run (HF_HUB_OFFLINE=1). A bind past loopback (IMAGE_BIND or
|
||||
VIDEO_BIND) serves others on purpose and gets no filter.
|
||||
**The image and video lanes.** Their units pin gloo and NCCL to lo (GLOO_SOCKET_IFNAME, NCCL_SOCKET_IFNAME) and, with a
|
||||
bind on any loopback address (127.* or localhost, 127.0.0.1 by default), set IPAddressDeny=any with
|
||||
IPAddressAllow=localhost: the kernel lets the lane's processes talk to loopback alone, so the store, which still listens
|
||||
on every interface, is out of reach of any other machine (what one sends it is dropped, unanswered, and ss still lists
|
||||
*:30005). A lane no longer fetches an image named by its URL: an edit or a reference sends the image itself, as the
|
||||
cockpit always did. A bind past loopback (IMAGE_BIND or VIDEO_BIND) serves others on purpose: its unit's two filter lines
|
||||
are written empty, which sets no filter, and the installer now says that port 30005 is then open to the network. The
|
||||
rule is written once, in lanes.sh (lane_ip_deny).
|
||||
|
||||
**The SGLang text lanes.** The 27B lane, in all three of its units (the default, 1M of context, the 64 GB box), and the
|
||||
flash lane pass SGLANG_DISTRIBUTED_INIT_METHOD_OVERRIDE=file:///tmp/sglang-rdv: their rendezvous goes through a file in
|
||||
the container, which --rm makes new at each start, and no port opens for it. Both pinned images read it (the 27B's
|
||||
v0.5.22 and the flash lane's nightly, srt/distributed/bootstrap.py).
|
||||
v0.5.22 and the flash lane's nightly, srt/distributed/bootstrap.py). They pin gloo and NCCL to lo too: under the real
|
||||
clients, both lanes had listened on four ports of the box's LAN address, though its name resolves to 127.0.0.1.
|
||||
|
||||
**Proved on the reference box on 2026-10-30.** The installed image lane with the change laid on as a drop-in: nothing
|
||||
past loopback but *:30005, a connection to it from 192.168.1.71 and from 100.114.54.60 refused where both went through
|
||||
without the change a minute before, one from 127.0.0.1 accepted, and a 512x512 image in 4 s. The video lane with the
|
||||
change: nothing past loopback but *:30005 either, the same two connections refused and the one from 127.0.0.1 accepted,
|
||||
and the lane answered 711 s after its start, as it does without the change (691 to 715 s). The 27B lane started by its
|
||||
unit's own docker run with the variable: nothing listening past loopback that FP4-Local alone did not have, and an
|
||||
answer.
|
||||
past loopback but *:30005, a connection to it from the box's LAN address and from its tailnet address dropped (no answer
|
||||
in 4 s) where both went through without the change a minute before, one from 127.0.0.1 accepted, and a 512x512 image in
|
||||
4 s. The video lane with the change: nothing past loopback but *:30005 either, the same two connections dropped and the
|
||||
one from 127.0.0.1 accepted, and the lane answered 724 s after its start, against 691 to 715 s without the change.
|
||||
During the v1.40.5 matrix the same day, the 27B lane listened on *:28195 and on four ports of the box's LAN address, the
|
||||
flash lane on *:23283 and four more, and the five vLLM lanes on nothing past loopback. The four ports came only once
|
||||
clients ran, 60 and 104 s after each lane was ready, so the text lanes were proved under the matrix's eight real clients
|
||||
(through a second proxy, the file that serves, in front of a test engine), with what listened past loopback read every 5
|
||||
s until 5 min after the engine was ready. The 27B lane started by its unit's own docker run as v1.40.5 has it listened
|
||||
on its store and, 70 s after it was ready, on four ports of the LAN address. Started with the file rendezvous and gloo
|
||||
and NCCL on lo (ready in 376 s), and the flash lane by the installed launcher with the same three variables (ready in
|
||||
832 s), neither listened on any TCP port past loopback, and all eight clients answered on each.
|
||||
|
||||
**Tests.** Four tests fail on v1.40.5 and pass on this release: each diffusion unit keeps the runtime's bootstrap on lo
|
||||
and filters past loopback only for a loopback bind, as its installer computes it (the installer's own lines, run for
|
||||
127.0.0.1, localhost and other addresses), and every SGLang text start passes the file rendezvous once, in a container
|
||||
--rm makes new, with the reason in its unit (the 27B's three units, the flash lane's launcher and run.sh).
|
||||
**Tests.** Six tests fail on v1.40.5 and pass on this release: each diffusion unit pins the bootstrap to lo and renders
|
||||
its filter for a loopback bind only, as the installer's own lines compute it for 127.0.0.1, localhost, 127.0.0.2 and
|
||||
addresses past loopback, and says what a bind past loopback leaves open (image and video). An update restarts a serving
|
||||
image lane that runs older files and leaves one that does not alone, tried on the block alone and on the installer's
|
||||
lines with files older and newer than the lane, a restart that fails said as a NOTE (test_side_lane_proof.py, whose
|
||||
NOTE for the image lane this release replaces). Every SGLang text start passes the file rendezvous and the two variables
|
||||
once, in a container --rm makes new, with the reason in its unit (the 27B's three units, the flash lane's launcher and
|
||||
run.sh). The conformity tests take the diffusion units' rule from lanes.sh instead of a copy, a rule v1.40.5's lanes.sh
|
||||
does not have.
|
||||
|
||||
**What an update does.** A box whose serving lane is the 27B or the flash SGLang lane restarts that engine once, as its
|
||||
unit changed (about 7 min for the 27B, 378 and 401 s on the reference box that day, 12 to 15 for the flash). Every other
|
||||
lane takes the change at its next start, a serving image or video lane included, as the installer says. The vLLM lanes
|
||||
do not move. The cockpit restarts once.
|
||||
unit changed (about 7 min for the 27B, 378 and 401 s on the reference box that day, 12 to 15 for the flash). A serving
|
||||
image lane restarts too, in about 70 s, and an image being made then is lost (Hasan's choice, 2026-10-30). Every other
|
||||
lane takes the change at its next start, a serving video lane included, as the installer says. The vLLM lanes do not
|
||||
move. The cockpit restarts once.
|
||||
|
||||
## v1.40.5 (2026-10-30): when the box and its clone are one release, the cockpit's update banner names the commits between them, and opencode 1.19.5
|
||||
|
||||
|
||||
Reference in new issue
Block a user