Commit Graph

1583 Commits

Author SHA1 Message Date
Marc-André Moreau 932c4baff5 feat(agent): add durable NOW operations
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-07-10 17:04:31 -04:00
Marc-André Moreau 407b94d397 feat(agent): add NOW execution operations
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-07-10 16:43:32 -04:00
devolutionsbot c0a29813bf chore(release): clean up (#1440) 2026-07-10 16:59:01 +00:00
devolutionsbot 11a0810cfb chore(release): prepare for publishing (#1364)
Co-authored-by: Benoît Cortier <3809077+CBenoit@users.noreply.github.com>
ironrdp-rdpfile-v0.1.0 ironrdp-propertyset-v0.1.0 ironrdp-cfg-v0.1.0 ironrdp-blocking-v0.10.0 ironrdp-viewer-v0.1.0 ironrdp-rdpdr-native-v0.7.0 ironrdp-futures-v0.8.0 ironrdp-agent-v0.1.0 ironrdp-v0.17.0 ironrdp-server-v0.13.0 ironrdp-nscodec-v0.2.0 ironrdp-egfx-v0.3.0 ironrdp-ainput-v0.8.0 ironrdp-input-v0.7.0 ironrdp-client-v0.1.0 ironrdp-dvc-com-plugin-v0.1.3 ironrdp-tokio-v0.10.0 ironrdp-rdpsnd-native-v0.7.0 ironrdp-rdpsnd-v0.9.0 ironrdp-rdpdr-v0.7.0 ironrdp-mstsgu-v0.0.1 ironrdp-tls-v0.2.2 ironrdp-graphics-v0.9.0 ironrdp-echo-v0.4.0 ironrdp-dvc-pipe-proxy-v0.5.0 ironrdp-displaycontrol-v0.8.0 ironrdp-dvc-v0.8.0 ironrdp-cliprdr-native-v0.7.0 ironrdp-cliprdr-v0.7.0 ironrdp-acceptor-v0.10.0 ironrdp-async-v0.10.0 ironrdp-connector-v0.10.0 ironrdp-svc-v0.8.0 ironrdp-pdu-v0.9.0 ironrdp-core-v0.2.1 ironrdp-session-v0.11.0
2026-07-10 15:38:47 +00:00
Benoît Cortier 85443601fb ci: friendly release asset names and drift-free install docs (#1439)
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.
2026-07-10 13:35:19 +00:00
Benoît Cortier 131d7d3dc5 ci(xtask): add dependency-invariant guard for ironrdp-session (#1438) 2026-07-10 09:08:11 -04:00
Greg Lamberson 8a1fd0118e fix(pdu)!: send NetworkAutoDetect over the MCS message channel (#1348)
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.
2026-07-10 21:55:47 +09:00
Marc-André Moreau 437660fc59 ci: publish CLI binary release assets (#1437) 2026-07-10 18:06:37 +09:00
Benoît Cortier c6a0286dcb fix(session)!: remove ironrdp-connector dependency (#1435)
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.
2026-07-09 21:42:15 +02:00
Anton Mostovoy 9b4d01b403 fix(pdu): decode MousePdu wheel rotation as two's complement, matching encode (#1415) 2026-07-08 23:45:18 +00:00
Zac Bergquist 5c22f86a71 fix(session): reduce dependency on ironrdp-connector (#1419)
Removes the leftover legacy modules and moves actually useful utilities to ironrdp-pdu crate.
2026-07-08 13:30:06 +00:00
uchouT 32a8736d44 refactor(rdpeusb): eliminate repetition (#1407) 2026-07-08 01:56:17 +09:00
uchouT 069786c96f refactor(rdpeusb): seperate raw and validated InternalIoControl (#1403)
Signed-off-by: uchouT <i@uchout.moe>
2026-07-02 23:27:04 +09:00
Benoît Cortier 1cc7570ecb feat(agent): add generic --prop KEY:TYPE:VALUE property overrides (#1402) 2026-07-02 06:19:49 -04:00
Benoît Cortier a5522467ab feat(agent): add resize operation (#1401) 2026-07-02 06:19:29 -04:00
Greg Lamberson 18bf75c7b3 feat(server): accept connections with TLS terminated at a lower layer (#1281)
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.
2026-07-02 04:59:45 +00:00
clintcan d471bd066f feat(acceptor): honor the client-requested desktop size (#1373)
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>
2026-07-02 13:08:21 +09:00
clintcan 5ca84a5724 feat(acceptor): expose the client's keyboard layout on AcceptorResult (#1397) 2026-07-01 23:58:25 +09:00
Greg Lamberson d767d99032 feat(tls): make the rustls crypto provider selectable (#1387)
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.
2026-07-01 23:19:35 +09:00
uchouT 38980fc0eb feat(rdpeusb): implement urbdrc server processors (#1394)
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.
2026-07-01 13:36:26 +00:00
Rocco De Angelis 368fe8e68b fix(graphics): don't require CONTEXT block on every progressive frame (#1395)
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.
2026-07-01 18:33:39 +09:00
clintcan 2d3bdef1a7 feat(rdpsnd)!: misuse-resistant format negotiation for RdpsndServerHandler (#1359)
Move the negotiation into the crate and split selection from lifecycle:

```rust
fn choose_format<'a>(&mut self, common: &'a [NegotiatedFormat]) -> Option<&'a NegotiatedFormat>;
fn start(&mut self, format: &NegotiatedFormat);
```

Co-authored-by: Clint Christopher Canada <clint.canada@clubitech.com>
2026-07-01 13:44:43 +09:00
Benoît Cortier 2046639870 feat(agent): introduce ironrdp-agent crate (#1339)
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.
2026-06-30 14:52:26 -04:00
Benoît Cortier 1b752d282a fix(propertyset): remove logging from PropertySet (#1393)
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.
2026-06-30 13:40:43 +00:00
Benoît Cortier d6990d81a1 fix(error): propagate caller location through error constructor helpers (#1392)
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.
2026-06-30 13:21:25 +00:00
Benoît Cortier 7df0cf1417 refactor(client): drive viewer config through ConfigBuilder (#1391)
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.
2026-06-30 08:04:39 -04:00
Greg Lamberson b407c6fab4 fix(client): correct binding and error macro in SendInitiateFileCopy arm (#1390)
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`.
2026-06-29 20:30:46 -04:00
Greg Lamberson b6325f9ea6 feat(cliprdr): dispatch initiate_file_copy via ClipboardMessage (#1388)
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.
2026-06-29 22:08:45 +09:00
uchouT 66c9b5d14d feat(rdpeusb): implement urbdrc client (#1365)
Signed-off-by: uchouT <i@uchout.moe>
2026-06-29 13:05:36 +00:00
Benoît Cortier 8a8f8c84ea refactor(client): drive RdpClient configuration from the PropertySet (#1389)
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
2026-06-29 12:53:10 +00:00
Benoît Cortier f7e6106e0f feat(client): gate native backends behind Cargo features (#1338)
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
2026-06-29 12:06:46 +03:00
Marc-André Moreau 9d206a3da7 build: add iOS arm64 simulator NuGet RID
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-26 14:56:40 -04:00
Greg Lamberson 3f96d0029d fix(pdu): set COMPRESSION_USED on the FastPath update header when compressed (#1382) 2026-06-27 00:26:13 +09:00
Benoît Cortier 0a461b5d36 build(deps): align sspi and picky dependencies (#1385) 2026-06-26 15:24:36 +00:00
Greg Lamberson 8f76260ea7 feat(tls): expose negotiated TLS version and cipher suite (#1384)
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.
2026-06-26 12:52:54 +09:00
irvingouj@Devolutions d3705af18c perf(web): replace softbuffer with direct put_image_data canvas present (#1374)
## 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.
2026-06-25 14:53:02 -04:00
Greg Lamberson 45ec1ef4ab refactor(pdu): make the CapabilitySet encoder exhaustive (#1328) 2026-06-24 17:16:37 +09:00
Greg Lamberson 481ea5d161 feat(server): expose NetworkAutoDetect RTT via a shared handle (#1346)
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.
2026-06-24 17:03:02 +09:00
Greg Lamberson 37483ebd9b fix(rdpsnd-native)!: replace anyhow with typed RdpsndNativeError (#1277) 2026-06-24 17:01:08 +09:00
Greg Lamberson efa5732805 feat(acceptor): negotiate the MCS message channel (#1347)
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.
2026-06-24 16:59:42 +09:00
Rocco De Angelis a4fde9fc50 fix(connector): stay in CapabilitiesExchange when activation handles DeactivateAll (#1371) 2026-06-23 18:53:46 +00:00
Gabriel Bauman af2706d093 feat(web): add pluggable storage backends for RDP file downloads (#1221)
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.
2026-06-23 18:52:05 +00:00
Yuval Marcus f12bbce550 feat(web): supersede a stuck upload and complete zero-byte files (#1381)
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.
2026-06-23 18:22:54 +00:00
Copilot f38554277a fix(dvc-pipe-proxy): remove trailing punctuation from log messages (#1380)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Benoît Cortier <3809077+CBenoit@users.noreply.github.com>
2026-06-23 16:49:31 +00:00
Yuval Marcus 356d06e52a fix(web): recover file-upload state when a paste is interrupted or never pulled (#1372) 2026-06-24 00:56:39 +09:00
Benoît CORTIER c36032f91b fix: lower verbosity of routine logs in library crates
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.
2026-06-23 22:52:52 +09:00
Benoît CORTIER dca254dcf3 docs(style): define log-level policy for library crates 2026-06-23 22:52:52 +09:00
Yuval Marcus 5d534f10a6 fix(cliprdr): release outgoing locks before initiating a file copy (#1375) 2026-06-23 18:33:10 +09:00
uchouT 985d353543 feat(dvc): expose dynamic channel accessors (#1368)
Signed-off-by: uchouT <i@uchout.moe>
2026-06-23 18:31:49 +09:00
devolutionsbot 8fe59c19e2 chore(release): prepare for publishing (#1340)
Co-authored-by: Benoît CORTIER <git.divisible626@passmail.com>
Co-authored-by: Benoît Cortier <3809077+CBenoit@users.noreply.github.com>
ironrdp-nscodec-v0.1.0 ironrdp-dvc-com-plugin-v0.1.2 ironrdp-rdcleanpath-v0.2.2 ironrdp-dvc-pipe-proxy-v0.4.1 ironrdp-v0.16.0 ironrdp-server-v0.12.0 ironrdp-egfx-v0.2.0 ironrdp-ainput-v0.7.0 ironrdp-rdpsnd-v0.8.1 ironrdp-graphics-v0.8.1 ironrdp-echo-v0.3.0 ironrdp-displaycontrol-v0.7.0 ironrdp-dvc-v0.7.0 ironrdp-session-v0.10.0
2026-06-17 16:22:15 +00:00