Repository navigation
Releases
f69a721
Merge pull request #680 from selkies-project/dependabot/docker/infra/bundle/base-images-5b28003612
build(deps): Bump the base-images group across 1 directory with 4 updates
ec5ada0
fix(pixelflux): Lock tempfile in pixelflux's own lockfile
e7a503f made tempfile a dev-dependency of pixelflux and updated the
workspace lock, but not crates/pixelflux/Cargo.lock, which the
Licenses workflow resolves the crate by on its own with --locked
(scripts/ci/crate-licenses.sh), so that job failed on 12aa39a.
tempfile 3.27.0 was already in that lock through another crate; the
dependency edge is the only line added. scripts/ci/crate-licenses.sh
passes.
ec53080
test(pelorus): Hold a locked session's model writes and the shell tool to their settings
With --pelorus=true|locked every model write (create, names, update,
delete) answers 403 to a controller, and with commands off the tool
list offers no shell; with --command-enabled=true it does. Each runs
in a process of its own, since the settings are the process's.
b3217c6
docs(release-notes): Expand the 2.3.0 notes across the whole cycle
Cover every change since 2.2.1 rather than the packaging and the first
congestion work alone: the window manager and desktop shell, the desktop
images, Pelorus, the bundle and single executable, congestion control on
both transports, X11 and Wayland capture and pacing, the hardware encoder
fixes per vendor, the software encoders, input, the virtual camera, file
transfers, and the security changes, each with the measurements its
commits carry. An upgrade section lists what an operator must change, and
the contributors table credits each account.
ab60c99
test(selkies): Make the session tests' scratch directories through tempfile
Snyk Code (rust/PT/test, crates/selkies/src/session_screens/testing.rs
on cf69006) traced TMPDIR, read through std::env::temp_dir() in
Scratch::new, into the symlink named_process makes there. Scratch::new
now asks tempfile::Builder for a directory with a random name, made
exclusively and private (0700), in place of a name built from the
clock and a counter; Scratch still removes it on drop.
scratch_directories_made_at_once_are_distinct and the session_screens
and session_density tests pass.
9d6fb8a
refactor(selkies): Deny raw path writes and program starts where requests are handled
crates/selkies/clippy.toml lists the std::fs, tokio::fs, std::os::unix::fs
and nix calls that create, write, remove, or rename by path, and the two
Command::new. The crate allows the lint at its roots, and the modules
that handle requests (files, http, ws, webrtc, input, clipboard, pelorus)
deny it outside their tests, so a handler that writes a path a request
names other than through files::confine, or starts a program, fails
clippy unless an #[expect] there says why. confine is that place for
paths; the other thirteen are the server's own paths (the file manager's
root at start, the print spool, the CUPS scheduler's tree, the
unix_socket, the TLS pair, Pelorus' configuration file), fixed programs
(the app runner, xdotool, the clipboard tool), and the commands
command_enabled turns on (cmd, Pelorus' shell tool).
Two writes are written the way the lint asks instead: a chunked upload's
staging file is sized and removed relative to the directory descriptor
the walk verified, and through a fresh walk when it expires, rather than
by a path joined from the request; a folder archive is staged in
tempfile::tempfile(), unlinked as it is created.
clippy.toml is found from the crate's manifest directory, so no other
crate's lints change. cargo clippy --workspace --all-targets -D warnings
passes, and fails on a raw std::fs::write added to files/manager.rs and a
tokio::process::Command::new added to ws/handler.rs; cargo test -p
selkies --lib passes.
860850d
fix(http): Serve a web-root file from the entry its check pinned
A file of a web client served from a directory (web_root,
SELKIES_WEB_BUNDLE, or the tree's dist/web) was checked to resolve
inside the directory (resolves_inside) and then looked up again by name
by ServeDir, which follows links. A name swapped for a link out of the
directory between the two was served: on 4b73b4b, a name toggled
between a file and a link to a file outside while it was requested
served the outside file in 823 of 4000 requests.
After the check, the entry the name resolves to is pinned through
FileRoot (FileRoot::pin, as the file routes are), and ServeDir runs on a
Backend that opens and stats the pinned entry's /proc/self/fd path
whatever path it is asked for. ServeDir keeps everything else: its path
validation, the directory's 404, the type from the request's name, HEAD,
ranges and the conditionals. An entry gone or swapped since the check
is the 404 the check gives. index.html, manifest.json and ui_icon are
the server's own names and are opened as before.
the_pinned_entry_is_served_as_the_name_was compares the pinned
ServeDir with ServeDir on the name for a file, a type with capitals,
HEAD, a Range, one past the end, the three conditionals, an in-tree
link, a directory with and without its slash, and a .. it refuses:
status, headers and body are equal. a_web_root_name_swapped_after_the_
check_is_not_followed fails on 4b73b4b with the test seam called after
resolves_inside (200 with the outside file) and passes here, and a name
toggled 1000 times while requested is never served as the link's
target. cargo test -p selkies --lib passes, and clippy with -D
warnings. The suites that serve a client from a directory pass in a
sandbox against this server: e2e dashboards-layout and layout-toggle,
secure_mode-dashboards, apps_panel, credentials_in_url, subfolder and
embedded_client-websockets.
12aa39a
fix(computer-use): Take a recording's audio socket from the environment alone
record_start read audio_socket from the request body
(crates/pixelflux/src/computer_use.rs:1217 on the base) and handed it to the
recorder, which connects to it and muxes what it serves as the recording's
audio. A Computer Use token holder could so have the recorder connect to any
Unix socket this user can reach, and the two-second retry told whether one
existed. No in-repo caller sends it.
The body's field is RecordStartRequest::audio_socket: Option: a
body that still carries it, of any shape, is accepted, the value is never read,
and a debug line notes that it was ignored. The recording's audio socket comes
from PIXELFLUX_RECORD_AUDIO, as RecordOptions::from_env reads it, or the
audio_socket argument of start_recording and start_recording_screens, as
before. The options a request sets are built by record_options, which
a_request_names_no_audio_socket checks leaves the environment's socket in
place for a string, a number, an object, and null.
cf69006
fix(selkies): Check each step to the unpacked server on its descriptor
The single-file executable opened its unpacked server by the tree's path
joined with bin/selkies, the tree having been checked by path before.
The tree is now opened once as a directory, and the tree, bin, and the
server are each opened from the step before without following a link
and checked on the descriptor to be the user's own and no one else's to
write to; the server is executed by that descriptor as before.
9e9d991
fix(web): Minify the built pages with html-minifier-next directly
html-minifier-next 9 can only be imported as an ES module, and
vite-plugin-minify, whose package has no exports map, is loaded from its
CommonJS build, which requires it, so the web client's build stopped at
loading vite.config.ts. Both configs now carry the plugin, a
transformIndexHtml hook that runs last and calls minify with the same
options, and depend on html-minifier-next in place of vite-plugin-minify,
with no override.
The web client builds to the same 2037 files, byte for byte, as before the
dependency update.