Rename prebuilt binary assets to friendly os-arch names (e.g.
ironrdp-agent-<version>-linux-x64.tar.gz), dropping the Rust target
triple from the filename, and make the triple authoritative by passing
--target to cargo so a runner/target mismatch fails loudly instead of
silently mislabeling an asset.
Move the detailed download/verify instructions out of the READMEs and
into the GitHub Release body, generated by the workflow so they can
never drift from the actual assets. The block is injected idempotently
between sentinel markers, so re-running the workflow (the recovery path
for a failed matrix leg) replaces it in place rather than appending. The
READMEs are demoted to short evergreen pointers to the Releases page.
Extract the duplicated native-dependency install steps (Linux ALSA
headers, Windows NASM) into a shared .github/actions/install-build-deps
composite action reused by ci.yml and release-binaries.yml.
Corrects Network Auto-Detect framing and routing to match MS-RDPBCGR by
moving it off the I/O channel slow-path Share Data PDUs and onto the MCS
message channel with the required Basic Security Header
(SEC_AUTODETECT_REQ / SEC_AUTODETECT_RSP). This aligns IronRDP with
mstsc/xfreerdp behavior and enables both connect-time and continuous
auto-detection to actually function.
Removes the last ironrdp-connector coupling from ironrdp-session by
turning Deactivate-All handling into a bare signal and shifting ownership
of the Deactivation-Reactivation activation sequence back to each consumer.
It introduces a ConnectionActivationFactory (fresh sequence per reactivation)
and an ActiveStageBuilder so session construction no longer depends on
ConnectionResult.
Adds a way to run a single RDP connection over a byte stream whose
confidentiality is already provided by the embedder's transport, rather
than having ironrdp-server perform the inner TLS handshake itself when
X.224 selects PROTOCOL_SSL.
Adds an opt-in server/acceptor knob to negotiate the RDP session desktop size using the client’s originally requested resolution (from GCC Client Core Data) so the server can start at the client’s native size without a Deactivation–Reactivation resize round trip.
Co-authored-by: Clint Christopher Canada <clint.canada@clubitech.com>
Makes the ironrdp-tls rustls backend’s crypto provider selectable at compile time by restructuring Cargo features, avoiding forcing a single provider onto downstreams via tokio-rustls default features.
Adds the server-side RDPEUSB (URBDRC) protocol processors to ironrdp-rdpeusb, introduces a backend-facing rdpeusb::io data model shared by client/server, and refactors TS_URB representations to better separate headers from payload variants.
Fixes progressive RemoteFX (MS-RDPEGFX) decoding by no longer requiring a CONTEXT block on every WireToSurface2 progressive frame once a codec context has already been established (keyed by codec_context_id). This aligns the decoder with real-world server behavior and the spec’s “establish once, then reference” model for progressive contexts.
Add a CLI-driven, daemon-backed RDP client designed for programmatic
(e.g. LLM) consumption. A single binary plays two roles: a long-lived
daemon that owns the ironrdp-client engine and one RDP session, and a
short-lived CLI that drives it over a local IPC transport (Unix domain
socket / Windows named pipe).
Highlights:
- Binary, length-delimited IPC protocol using ironrdp-core's
Encode/Decode traits (no JSON). Connection config travels as a
binary-encoded PropertySet inside a strictly-typed Request::Connect;
runtime input/query operations are strictly-typed messages.
- Secrets never reach the IPC reader: ConfigBuilder::build strips every
ironrdp_cfg::is_secret_key property, and the daemon seeds its live bag
from the post-build config, so dumps/status/logs cannot leak them.
- Operator overlay: daemon-start --overlay FILE preloads a .rdp file
applied on top of every connect (overlay wins) to provision any
setting out of band, credentials in particular. Status reports
credentials_loaded so a caller knows whether it must supply a password.
- Separate logging: the daemon's own logs go to stderr (default INFO,
IRONRDP_LOG), while each RDP session's logs are captured into a small
queryable ring buffer (default DEBUG) via a thread-local subscriber,
refinable per-connect with --log-directive for troubleshooting.
- --help-agent prints a structured, LLM-friendly operation guide.
The debug! logging in insert/remove/get stringified raw keys and values
on every access, which exposed secrets such as ClearTextPassword,
gateway_password and rdcleanpath_token in logs. Observed debugging value
was low, so the logging is removed entirely rather than redacted, and
the tracing dependency is dropped.
The error constructor helpers in several crates wrap the #[track_caller]
ironrdp_error::Error::new, but were not themselves marked
#[track_caller]. As a result, the captured location pointed at the
helper body instead of the real call site, giving misleading "@
file:line" info in error reports.
Reorganize and complete the PropertySet-backed configuration flow so the
.rdp PropertySet is the single source of truth, with the CLI layered on
top.
ironrdp-cfg:
- Reorganize PropertySetExt into co-located getter/setter/clearer
triplets, grouped (MS standard keys / IronRDP extensions / multi-key
helpers), alphabetized and documented.
- Add clear_* methods mirroring every setter so callers can remove keys.
ironrdp-client:
- Make ConfigBuilder set/clear symmetric: clearing an option
(compression, kerberos, sound, destination) now removes the mirrored
property instead of leaving a stale value behind.
- Introduce addressing-only TransportKind as builder input; resolve it
into the bundled Transport at build() time, folding in the separately
tracked secrets and erroring on missing gateway/RDCleanPath credentials.
- Add MissingField::RDCleanPathToken and with_rdcleanpath_token
- Enrich docs on TLS/CredSSP/domain/desktop/compression setters.
ironrdp-viewer:
- Replace apply_cli_args_to_properties/PartialConfig with ViewerConfig +
apply_cli_to_builder (CLI overrides the .rdp-derived builder).
- Replace --compression-enabled=<bool> with a plain --no-compression
flag.
- Prompt for RDCleanPath token like gateway credentials; relax the CLI
so --rdcleanpath-url no longer requires --rdcleanpath-token.
- When dumping the .rdp, dump the effective, secret-stripped PropertySet
from the built Config.
The `ClipboardMessage::SendInitiateFileCopy` arm in the clipboard event
handler refers to a `cliprdr` binding and a `session::custom_err!` macro
that are not in scope. The surrounding handler binds the processor as
`cliprdr_client`, and every other arm in the same match uses
`ironrdp_session::custom_err!`. With the `clipboard` feature enabled
this fails to compile:
```
error[E0425]: cannot find value `cliprdr` in this scope
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `session`
```
so master does not build with the clipboard feature on. This aligns the
arm with its siblings.
Verified with `cargo check -p ironrdp-client --features
rustls,clipboard`.
Extends the CLIPRDR backend-facing API to properly support offering clipboard file lists (so later FileContentsRequests can be serviced) by introducing ClipboardMessage::SendInitiateFileCopy(Vec<FileDescriptor>) and wiring it through the in-tree ClipboardMessage dispatchers.
Make ironrdp-client configurable almost entirely from a .rdp PropertySet
so that a single ConfigBuilder::from_property_set overlay can build a
working client, enabling fully reproducible sessions from .rdp files.
Viewer-only settings remain in PartialConfig with special treatment.
- cfg: add ironrdp_ vendor properties for compressionlevel, colordepth,
dvcplugin, tls, serverpointer and autologon.
- client: read compression level, color depth, DVC plugins and kerberos
from the PropertySet; default bulk compression to K64 unless disabled or
specified otherwise.
- client: move anti-idle "fake events" into active_session; consumed via
fake_events_interval, dropping it from the viewer GUI
- viewer: upsert CLI flags into the PropertySet; prune PartialConfig to
CLI-only fields
ironrdp (meta crate):
- Added: client, client-all, client-sound, client-clipboard,
client-rdpdr, client-smartcard, client-gateway,
client-dvc-pipe-proxy, client-dvc-com-plugin, and
top-level rustls / native-tls (forwarded to ironrdp-client)
- Modified: qoi, qoiz now also gate ironrdp-client's codec
ironrdp-client:
- Added: sound, clipboard, rdpdr, smartcard, gateway,
dvc-pipe-proxy, dvc-com-plugin, all; optional
subsystem crates are pulled in only via these features
- Modified: default no longer forces rustls; rustls / native-tls
stay mutually exclusive (exactly one required), and
qoi / qoiz now point at ironrdp-connector / ironrdp-session
ironrdp-viewer:
- Removed: direct ironrdp-client / backend-crate dependencies and
qoi / qoiz features
- Modified: rustls / native-tls now forward to ironrdp instead of
ironrdp-client; pulls client + client-all from the meta crate
Adds a backend-neutral way to query the TLS parameters negotiated for an established
ironrdp-tls::TlsStream, enabling downstream diagnostic tooling to report the negotiated
protocol version and cipher suite alongside the existing certificate information.
## Summary
The web client presented frames through `softbuffer`, whose web backend
repacks
the **whole surface** (RGBA → u32 → RGBA into a fresh buffer) on every
present.
This replaces it with a direct `put_image_data` that uploads only the
dirty
region, and drops the `softbuffer` dependency.
Same idea as the IronVNC change.
## What changed
- Remove the `softbuffer` dependency; present each dirty region with
`put_image_data` at its origin.
- No full-surface buffer and no per-region scratch.
`extract_partial_image` fills
a single `WriteBuf` reused across frames, so steady-state draws don't
allocate.
- Force opaque alpha before upload (kept — see Correctness).
- Add `WriteBuf::filled_mut` to `ironrdp-core` (mutable counterpart of
`filled`).
- `web-sys`: add `CanvasRenderingContext2d` + `ImageData`, drop the
softbuffer-only
features.
## Performance
Draw-stage time on a 1080p replay (595 frames / 110 dirty regions),
headless
Chromium, 8 measured passes × 3 runs, median. Both rows are reproducible
branches
off the replay-bench harness; the only difference is the render path.
| Render path | draw (ms) | vs softbuffer | branch |
|---|--:|--:|---|
| softbuffer `present_with_damage` | ~1031 | — | `bench/draw-softbuffer`
|
| this PR (direct upload, reused `WriteBuf`) | ~97 | **~10.6×** |
`bench/draw-zerocopy` |
- The win is structural: upload the dirty region instead of repacking
the whole
surface every present.
- Reusing one `WriteBuf` (vs a per-frame allocation) keeps the
steady-state draw
allocation-free; the remaining cost is the unavoidable `ImageData` JS
copy.
- Output is **byte-identical**: framebuffer CRC32 `2d8e1b79` matches the
recorded
ground truth and the rendered-canvas FNV-1a is unchanged.
- Absolute ms carry ~±15% noise from machine load (decode drifted
1.5–1.9 s); the
ratio held across runs.
Reproduce:
```sh
git checkout bench/draw-softbuffer # or bench/draw-zerocopy
cd crates/ironrdp-web && wasm-pack build --target web --release -- --features bench
cd bench-harness && node run.mjs --capture /bench-corpus/<your>.irdprec --passes 8
```
## Correctness
`put_image_data` stores alpha verbatim, and the decoded framebuffer
isn't
guaranteed opaque — it's zero-initialised, a widened whole-rows region
can cover
not-yet-painted columns (alpha 0), and the QOI-RGBA path copies source
alpha. So
we force alpha opaque before upload. A scan-then-conditionally-force was
tried and
is *slower* than just forcing (the check touches the same bytes), so the
unconditional force stays.
## Follow-up (separate PR)
Guarantee framebuffer opacity upstream in `ironrdp-session` (init alpha
to `0xff` +
clamp `apply_rgba32`); after that the web side can drop the alpha force
entirely.
Exposes the server’s NetworkAutoDetect RTT measurement via a shared Arc<AtomicU32> handle so display backends can read a fresh RTT value even after run() takes ownership of the server.
Updates the handshake to properly negotiate the MCS message channel by advertising Extended Client Data Blocks support and, when requested by the client, allocating/joining the message channel and surfacing its ID in AcceptorResult. This enables server-initiated PDUs that must use the message channel (e.g., network auto-detect) to have a valid transport.
Adds a pluggable download storage layer to `iron-remote-desktop-rdp` so large RDP file downloads can stream to persistent storage (OPFS) instead of buffering all chunks in RAM, while keeping a universal in-memory Blob fallback.
Updates the web `RdpFileTransferProvider` (in `iron-remote-desktop-rdp`) to make uploads more resilient: starting a new upload now supersedes any in-progress batch, and empty (0-byte) files can complete without ever receiving a RANGE request, preventing the provider’s `uploadState` from becoming stuck.
Library crates should not emit info! for routine, repeating operations;
that floods the default logs of the final consumer, which owns the
verbosity decision. Reserve info! for rare connection/session lifecycle
milestones, debug! for significant one-off events, and trace! for the
fine-grained detail only needed when nothing else explains a problem.