An app hosting a live session for other machines sent the session token
in the clear over plain ws://. Such a host now serves TLS with an
ephemeral self-signed Ed25519 certificate (DER written by hand with ring,
no new crates), and its invite links pin the certificate's SHA-256
(`cert=`, URL-safe base64): figcraft://join?server=wss://…&cert=… and
wss://…/?cert=…
- tls: the shared session is a rustls::Connection (client or server),
keeping the split reader/writer locking; `accept` answers a server
handshake by the hello deadline; `handshake_pinned` uses a verifier
that compares the end-entity certificate's SHA-256 in constant time
and still checks the TLS 1.2/1.3 handshake signature, refusing any
other certificate before the Hello with a clear reason.
- invite: Endpoint::cert (None for Endpoint::plain), Endpoint::pinned;
a malformed pin, one on ws://, or two that disagree is an error that
never echoes the link. The pin stays out of the WebSocket request URL.
An automation allowlist entry allows only its own pin.
- host/hub: HostConfig::tls, Host::cert_sha256, Host::endpoint; the hub
carries the server config to each connection. Hosting::serve (the
server) is unchanged.
- link: NetLink::host serves TLS for non-loopback binds without a join
code. Join-code (short) shares stay plain ws://: a 20-symbol code has
no room for the pin, and its joiners share the token with the link.
- web: the browser refuses a pinned link with a clear reason.
Tests: pinned join and edit sync both ways, a plain client against a
TLS host, a host presenting another certificate (refused, not admitted),
the request carrying neither token nor pin, link round trips and
malformed cert= values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop app and figcraft-cli trusted only the compiled-in public
roots and FIGCRAFT_CA_FILE, so a server behind a proxy with a private
authority needed that variable on every computer. They now also add the
authorities in the operating system's certificate store, unless
FIGCRAFT_NO_SYSTEM_ROOTS is set. Certificates are still always
verified.
main moved figcraft-cli to RFC-0018 (#2645): main.rs is a thin wrapper and the
dispatch lives in lib.rs, so mcp_roots, the --automation-allow-server handling
and its test move there; headless mcp is checked before the fonts are scanned.
RW2, CR2, CR3, NEF, ARW, RAF, ORF, DNG and the other containers craft-raw
decodes now open, import, place and fill shapes. add_image develops a raw
once with craft-develop's stages (AHD demosaic, highlight rebuild, as-shot
white balance and colour matrices, neutral tone curve, sRGB, orientation)
and the document keeps the picture as a quality 95 JPEG, so every way an
image comes in takes raws. file.open and the Open, Import, Place and image
fill dialogs know the raw extensions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Saving a large imported icon library froze until the system ran out of
memory. The crash dump's stack (v0.18.1) runs Save, the thumbnail render,
a boolean group and then linesweeper 0.4.0's sweep, which loops and keeps
allocating on near-touching curves. The input is small, so the sweep caps
don't stop it.
linesweeper 0.5 fixes that loop. VectorCraft's pathops already uses 0.5,
so the lockfile drops the second copy.
Test: two shapes reduced from linesweeper's own regression input; the
boolean runs on a thread and must finish within 10 s. It times out on
0.4.0 and finishes in milliseconds on 0.5.
* Dependencies: take craft-libs main at 3af2280ee3
Every craft-libs crate in the workspace now comes from one commit,
3af2280ee3434a2c860012df2f440652621c2c81. They were on five revisions:
e11f9d9a, d13ac58a, 976eb51c, e9829954 (craft-update) and fd5e2fef
(craft-web-api and craft-web-host). Cargo.lock now holds one craft-zip
instead of two.
No FigCraft code changes. The new craft-font-store adds cap-primitives
and its dependencies to Cargo.lock.
* Dependencies: drop pin comments the craft-libs move made untrue
craft-update now uses the same craft-libs rev as the other crates, and
craft-window comes from craft-libs main. Remove the comment that says
craft-update is pinned separately and the comment that says craft-window
is pinned to an unmerged branch.
* Tests: look up craft-fig with cargo metadata filtered to the host
The i18n key test finds the craft-fig sources with `cargo metadata
--offline`. Since craft-font-store depends on cap-primitives, the graph
holds winx, which only Windows uses. Without a platform filter, cargo
metadata needs every platform's sources and failed on Linux CI with
"failed to download `winx v0.36.4`". The query now passes
`--filter-platform` with the host triple from `rustc -vV`.
* Dependencies: take craft-libs main at 453b0da782
Every craft-libs crate in the workspace moves from 3af2280ee3 to
craft-libs main at 453b0da782, and craft-sketch moves from ff142b3ad5
to the same commit. Cargo.lock now holds one craft-figma-rest and one
craft-zip instead of two of each; no other package changes.
* Dependencies: drop the design-file pin comment that no longer holds
craft-penpot, listed above the design-file crates, uses the same
craft-zip as craft-fig and craft-figcraft-format, and every craft-libs
crate is now on one rev, so the comment's reason for a separate rev is
removed.
Resolve ROADMAP.md and docs/localization-parity.md by keeping main's
newer log entries and the #1902 Noto Sans Arabic default-web-font notes.
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>