91 Commits

Author SHA1 Message Date
Karthik S Kashyap 0eb2d9d6b7 feat: add RDP session replay web component stack (#1216)
Add browser playback of recorded RDP sessions through a
protocol-agnostic Svelte player, an RDP WASM backend, and a demo with
local-file and HTTP range data sources. Consumers provide the
recordings; this does not add a recording mechanism.

Replay requires post-decryption Fast-Path captures. The HTTP demo
validates its index and bounds range requests and playback fetches.

---------

Co-authored-by: Marc-André Moreau <mamoreau@devolutions.net>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-11-20 14:43:50 -05:00
brokenlander fe9608b2ab feat(web): add monitor layout extensions (#2423)
The web client sent no Client Monitor Data and only logged the server's
monitor layout, so an application could not span one session across
several screens or learn the layout the server applied.

`monitor_layout` sends up to 16 monitors as Client Monitor Data
(MS-RDPBCGR 2.2.1.3.6), five numbers each: left, top, right and bottom
(both inclusive) and flags.
A valid layout has exactly one primary monitor at (0, 0), ordered
rectangles, and a 200–32,766-pixel virtual desktop in each dimension.
The requested desktop size is derived from the monitor union, overriding
any configured size; an invalid list is logged and ignored.

`monitor_layout_callback` is called in the same form with the layout the
server sends during connection finalization, after a
deactivation-reactivation sequence, and in a Monitor Layout PDU during
the session.
`iron-remote-desktop-rdp` exports `monitorLayout` and
`monitorLayoutCallback`, which take and pass `MonitorRect` objects.
The TypeScript callback exposes only the primary flag.

---------

Co-authored-by: Marc-André Moreau <mamoreau@devolutions.net>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-11-15 18:18:01 -05:00
brokenlander 2760894fb6 feat(web): add desktop scale and color depth (#2421)
The web client always sent a desktop scale factor of 0 and a 16-bit
color depth (32 with `legacy_graphics`). On a high-density screen a
session therefore showed either tiny text, when sized in device pixels,
or a blurry upscaled picture, when sized in CSS pixels.

`desktop_scale_factor` takes the display scale in percent (100 to 500)
and sends it with the desktop size, together with the matching device
scale factor (100, 140 or 180). `color_depth` takes 15, 16, 24 or 32 and
replaces the bitmap color depth, including the one `legacy_graphics`
picks. Values outside those sets are logged and ignored.
`iron-remote-desktop-rdp` exports `desktopScaleFactor` and `colorDepth`.

---------

Co-authored-by: Marc-André Moreau <mamoreau@devolutions.net>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-11-15 15:47:15 -05:00
meanaverage 7fc8a6fca3 feat(web): audio playback (RDPSND) through an audioPlayback callback (#2020)
## Problem

The web client has no audio output. It only attaches a no-op RDPSND
processor (to satisfy RDPDR's channel dependency when a printer is
redirected), so the remote desktop's sound is discarded.

## Change

- **`iron-remote-desktop-rdp`:** a new `audioPlayback(callback)`
extension. The callback receives `{ type: 'wave', sampleRate, channels,
data }` (interleaved 16-bit little-endian PCM in a `Uint8Array`), `{
type: 'volume', left, right }` (0 to 1) and `{ type: 'close' }`. Playing
it (for example, scheduling Web Audio buffers) is left to the embedding
application, as with the clipboard.
- **`ironrdp-web`:** a `WasmAudioBackend` (`RdpsndClientHandler`)
advertising uncompressed 16-bit PCM (stereo, 48, 44.1 and 22.05 kHz). It
forwards what the server sends to the session loop, which calls the
JavaScript callback. With a callback, `enable_audio_playback` is set in
the client info.
- Windows requires RDPDR to be advertised before it sends RDPSND
traffic, as documented in [MS-RDPEA Appendix
A<1>](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpea/deaaab30-d4d6-473e-ac56-3f76c4f6fb24#Appendix_A_1),
with Windows XP and Server 2003 excepted. Without a printer, a
device-less RDPDR (`NoopRdpdrBackend`) is attached; with one, the
printer's RDPDR serves, and the real RDPSND replaces the no-op one.
- Off by default: without the extension, nothing changes.

## Original validation

- At the original revision, unit tests in
`crates/ironrdp-web/src/audio.rs` covered advertised 16-bit PCM, PCM
data/rate/channel forwarding, the then-present unsupported-format guard,
and volume/close forwarding. The guard and its direct-call test were
intentionally removed in the review follow-up described below.
- `cargo test -p ironrdp-web --lib`: 33 passed. The 19
`clipboard::tests` failures are the same on `master` (they need a
browser for `JsValue`).
- `cargo xtask check fmt`, `cargo clippy -p ironrdp-web --all-targets --
-D warnings` (host and `wasm32-unknown-unknown`), `cargo xtask check
typos`, and `npm run check` in `iron-remote-desktop-rdp`.
- In use: built from `master` with this change, the web client plays
audio from Windows 11. Our end-to-end test plays a system sound inside
the session and checks that PCM with a non-zero peak arrives. GNOME
Remote Desktop 46 also works, together with #2019 (its Training Confirm
check) and the graphics pipeline, which GNOME requires (#1977).

## Rebase validation (October 11, 2026)

Rebased onto upstream `e4143f26306a6639a889d80c1c484ca69c365a8f`. The
session configuration conflict was resolved by retaining upstream's
`SecurityConfig` handling and applying the audio callback setup
alongside it.

Passed with Rust 1.94.1:

- `cargo test --locked -p ironrdp-web --lib audio::tests` — all 4 audio
tests present at that October 11 revision passed.
- `cargo test --locked -p ironrdp-web --lib
standard_rdp_security_overrides_enhanced_security` — existing security
regression test.
- `cargo clippy --locked -p ironrdp-web --all-targets -- -D warnings`,
on the host and with `--target wasm32-unknown-unknown`.
- `cargo xtask check fmt`, `cargo xtask check locks`, and `cargo xtask
check test-settings --base upstream/master --head HEAD`.
- `cargo xtask web check` — WASM/web builds, web package type checks and
lint, and web component tests.
- `npm test` and `npm run lint` in `web-client/iron-remote-desktop-rdp`
— all 117 tests passed.

The live Windows/GNOME playback results above are from the original
validation; live playback was not rerun for this rebase.

## Review follow-up

`e6c0b4f1` documented the Windows RDPDR advertisement requirement and
removed the redundant backend format guard and its direct-call test.
`Rdpsnd` dispatches entries from the negotiated client format list;
unsupported offers are excluded and out-of-range wave indices are
discarded before reaching the backend.

`e0966145` adds tests of all four audio/printer channel combinations,
negotiation through the web audio backend, concrete advertised PCM
formats, separate volume/close forwarding, and the actual
WASM-to-JavaScript callback contract. The WASM tests execute JavaScript
objects and typed arrays under Node and now run in `cargo xtask web
check`.

Passed locally with Rust 1.94.1:

- 6 host audio/channel tests, 9 WASM/Node tests, and 77 RDPSND
integration tests.
- Host and `wasm32-unknown-unknown` Clippy with `-D warnings`.
- `cargo xtask web check`: WASM/web builds, the 9 WASM tests, package
type checks and lint, and 20 component tests.
- 117 RDP TypeScript tests, formatting, typos, lockfile checks, and `git
diff --check`.

These results cover this PR's branch with the follow-up changes, without
a rebase onto current upstream master. Live Windows/GNOME playback was
not rerun; those results remain the original validation above.

## Related work

#904 is an earlier, still-draft implementation that owns Web Audio
playback, buffering and resampling inside Rust/WASM. This PR exposes
PCM, volume and close events through an `audioPlayback(callback)`
extension so the embedding application owns playback and its audio
lifecycle.

_Prepared with AI assistance; the change and validation results were
reviewed._
2026-11-15 15:04:49 -05:00
irvingouj@Devolutions b482f56c55 build(ffi): pin diplomat to Devolutions 0.17.0-devo.1 (#2353)
Moves the .NET bindings to Diplomat
[`0.17.0-devo.1`](https://github.com/Devolutions/diplomat/releases/tag/0.17.0-devo.1):
upstream 0.17.0 plus
[rust-diplomat/diplomat#1315](https://github.com/rust-diplomat/diplomat/pull/1315),
which keeps an argument alive when another argument may store it.

Nothing here stores an argument, so only the shared runtime files
(`BorrowLease.cs`, `RustHandle.cs`) change in the regenerated bindings.
No generated method changes.

Tested locally on Windows: regenerated bindings, .NET build and the .NET
tests pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 21:19:43 +00:00
Marc-André Moreau fbf2599863 feat(client): add MS-RDPECI core input dynamic channel (#2319)
Add the ironrdp-rdpeci crate with the MS-RDPECI PDUs and a client
processor for the Microsoft::Windows::RDS::CoreInput dynamic channel.
Input events reuse the fast-path input event type, since MS-RDPECI packs
events in the same format.

The client can opt in with the `core-input` feature and
ChannelConfig::core_input. Once the server opens the channel and selects
version 1.0, keyboard and mouse input is sent over it; otherwise input
stays on fast-path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 16:24:08 -04:00
Marc-André Moreau 5dd64fb8d0 feat: add MS-RDPET telemetry virtual channel (#2320)
Adds [MS-RDPET] (Remote Desktop Protocol: Telemetry Virtual Channel
Extension). Servers that advertise the
`Microsoft::Windows::RDS::Telemetry` DVC use the client's connection
timing report to measure logon and first-frame latency.

## New crate: `ironrdp-rdpet`

- `pdu::TelemetryPdu`: encodes and decodes RDP_TELEMETRY_PDU (§2.2.1).
Decoding rejects an Id other than 0x01 and a Length other than 0x12.
- `client::TelemetryClient`: a DVC processor. `send_report` encodes the
report for the open channel and returns an error when the channel is not
open. Any data the server sends on the channel is logged and ignored,
because the spec defines no server-to-client message.
- `no_std` + `alloc`. The crate does no I/O and reads no clock. Version
0.1.0, `release = false` in release-plz.toml.

## `ironrdp-client` wiring

- New `telemetry` feature, included in `all` but not on by default, plus
a `ChannelConfig::telemetry` option (off by default like the location
channel; enable with `with_telemetry(true)`).
- Measures time from the start of each connection attempt to two
milestones:
  - EGFX channel opened.
- First EGFX message received. CapsConfirm is the first EGFX message
(MS-RDPEGFX §1.7).
- Sends one report per connection, in a session-loop iteration that has
no other DVC batch to send, and never in the iteration that opens the
telemetry channel (so it follows that channel's DRDYNVC Create
Response).
- Both credential-prompt fields are 0 because the client never prompts
interactively, as the spec requires in that case.
- A connection without EGFX sends no report, which the spec allows
(§3.2.5.1).

## Tests

- `ironrdp-testsuite-core/tests/rdpet`: wire layout, rejection of a
wrong Id, wrong Length or truncated PDU, channel name, client send and
no-send (MS-RDPET §2.1, §2.2.1).
- `ironrdp-testsuite-extra/tests/client/telemetry.rs`: the report state
machine — milestone timing, ordering after the channel's Create
Response, waiting for an iteration without another batch, one report per
connection, and a property test against a reference model over arbitrary
iteration sequences.
- The PDU is also added to the fuzzing oracles (decode and round trip).

## Not tested

- No run against a live Windows server: neither the end-to-end report
delivery nor the client milestone timing was checked against a real
server.
- No test builds a live session, so the session-loop call site and the
mapping from session state to observations are marked `UNTESTED:`.
- Locally, `cargo xtask ci` passed fmt, typos, tests, lints and the
feature matrix, and the lockfile and public-deps checks pass. The run
stopped at the WASM check because `wasm2wat` is missing on this machine,
so that check and the fuzz and web steps after it did not run locally.
CI covers them.
- No server processor yet: it is deferred until `ironrdp-server` can
register it. The `ironrdp` meta crate does not re-export the crate.

[MS-RDPET]:
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpet/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 15:31:07 -04:00
Marc-André Moreau 7c31c98c8d fix(xtask): create the FFI dependencies directory under the repo root (#2307)
`cargo xtask ffi build` created `dependencies/runtimes/<rid>/native/`
relative to the process working directory, but copied the native library
into the same path under the repository root. Run from a subdirectory,
the task created the directory in the wrong place and the copy failed.
The directory is now resolved against the repository root, like the
other paths in that function.

This is the remaining nit from #845, which is already closed.

Verified by running `cargo xtask ffi build` from `crates/`: the library
is copied to `<repo>/dependencies/runtimes/win-x64/native/`, and no
`crates/dependencies` directory is created. `cargo xtask check fmt -v`
and `cargo xtask check lints -v` pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 15:01:35 -04:00
Maksim Krutikov bc3c09f6d4 perf(mstsgu): disable Nagle on gateway sockets (#2302)
Set TCP_NODELAY before TLS and proxy negotiation on gateway sockets so
small writes are not held by Nagle buffering. Share the connector across
direct and proxied RPCH/HTTP connections, matching the existing AVD and
RDCleanPath socket policy.

Propagate socket-option failures. Disabling this buffering can increase
the number of small TCP packets.

Add a loopback regression for numeric and hostname endpoints, and run it
from the standard CI test commands.
2026-10-29 13:10:30 -04:00
Marc-André Moreau 376eb8f566 feat: support Remote Credential Guard over RDPEAR (#2256)
Remote Credential Guard redirects Kerberos and NTLMv2 operations over
the `Microsoft::Windows::RDS::AuthRedirection` dynamic virtual channel
(MS-RDPEAR) so TGT keys and password hashes remain client-owned instead
of delegating credentials through CredSSP `TSTicketCreds`.

Add `ironrdp-rdpear` with `no_std`/`alloc` outer envelope framing,
strict ASN.1 DER `TSRemoteGuardInnerPacket` codecs, and portable NDR32
type-serialization codecs for all 23 MS-RDPEAR Kerberos and NTLM
request/response calls under both the published IDL profile and the
Windows-native wire profile. Bound inbound static and dynamic channel
reassembly before fragment retention via
`SvcProcessor::max_message_size`, `DvcProcessor::max_message_size`, and
`DrdynvcClient::with_max_transport_message_size`.

Wire the opt-in `remote-guard` feature through `ironrdp-connector`, the
async/blocking/Tokio drivers, `ironrdp-cfg`, `ironrdp-client`,
`ironrdp-daemon`, and `ironrdp-agent` (`--remote-guard` and
`ironrdp_remote_guard` with `Disabled`, `Negotiate`, `Ntlm`, and
`Kerberos` modes) backed by `sspi` 0.23.1. RCG requires `HYBRID` or
`HYBRID_EX` with `REDIRECTED_AUTHENTICATION_MODE_SUPPORTED`, strict TLS
validation, and a completed CredSSP context handoff, and omits
passwords, smart-card PINs, and auto-reconnect cookies from Client Info.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-10-27 19:22:49 -04:00
Benoît Cortier f1b3cbbc1c ci(release): give dependents of breaking releases a breaking version (#2241)
release-plz chooses each crate's version from that crate's own commits
and API, so a crate that exposes a dependency through a `# public`
dependency gets a patch release when that dependency takes a breaking
one. Users who run `cargo update` then get the new patch release, whose
types no longer match the old dependency's.

Add `cargo xtask release check-public-deps`, which compares each
released crate's version with its latest `<crate>-v<version>` tag and
requires a breaking release when a public workspace dependency takes
one, following the chain to a fixed point. With `--fix` it applies the
bumps: the crate version, every requirement on it, the generated
changelog header and compare link, and both lockfiles.

The open-PR job runs it with `--fix` on every regenerated release PR,
before it amends the release commit.

xtask's unit tests are enabled so the version logic is tested; a binary
crate cannot be exercised from the test-suite crates.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 22:11:12 -04:00
Marc-André Moreau 79343b26cb feat(rdpeudp): support STUN and ICE candidate gathering (#2245)
Add a standalone RFC 8489 STUN Binding probe and an optional `ice`
feature to `ironrdp-rdpeudp-tokio` for UDP ICE candidate gathering,
connectivity checks, nominated-pair selection, and UDP TURN relay
transport beneath the existing RDPEUDP2, TLS, and RDPEMT stack.

Expose `connect_udp_with_socket`, `gather_ice_candidates`,
`connect_udp_with_ice`, `accept_udp_with_ice`, and
`MultitransportBootstrap::connect_with_ice` while keeping the default
direct `connect_udp` path unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-10-26 21:23:20 -04:00
irvingouj@Devolutions e3affd83c5 build(ffi)!: move to Diplomat 0.16.1-devo.2 (#2165)
The .NET bindings were generated by Diplomat 0.7 from a personal fork,
years behind upstream. Move to the protected `Devolutions/diplomat` tag
that IronVNC and picky-rs already use, with the same xtask pinning and
install flow.

Rust side:
- pin `diplomat` and `diplomat-runtime` to tag `0.16.1-devo.2` and drop
the `[patch.crates-io]` entry for the old fork; its zero-length slice
fix is upstream now, since slice parameters go through `DiplomatSlice`,
which maps a null pointer to an empty slice
- `opaque_mut` on the 20 types that are mutated through `&mut`, named
lifetimes on borrowed returns, `DiplomatWriteable` renamed to
`DiplomatWrite`, and no explicit `Clone`/`Copy` on bridge enums
- move `dotnet-interop-conf.toml` to the `lib_name` + `[dotnet]` layout

Tooling: xtask installs `diplomat-tool` from the tag with Rust 1.96.0,
because the tag does not build with the workspace toolchain. It records
the source and version so a tool from another tag is never reused,
checks that the tool and the ffi crate use the same tag, and calls the
tool by absolute path. The `ffi` CI job caches those records with the
binary, so a cache hit does not reinstall the tool.

The library and examples use properties instead of the removed
`GetX()`/`SetX()` methods.

`ffi/README.md` gains a migration section with these steps.

BREAKING CHANGE: for consumers of `Devolutions.IronRdp`:
- `GetX()`/`SetX()` methods that duplicated a property are removed
- the `&mut` getters on `ClientConnectorState` and
`CredsspSequenceInitResult` are methods only
- `IronRdpErrorKind.IO` and `WrongOS` are now `Io` and `WrongOs`
- `Position`, `MultitransportRequest` and `NetworkCharacteristics` are
structs with public fields instead of classes with properties
- the `Devolutions.IronRdp.Raw` namespace is internal, and the public
`AsFFI()` methods and raw-pointer constructors are removed
- `DiplomatWriteable`, `DiplomatOpaqueException` and the
`IronRdpError.ToDisplay(DiplomatWriteable)` overload are removed
- `IronRdpException` is no longer `partial`
- only the ten types listed in `ffi/README.md` are `IDisposable`; every
other type, such as `Config`, `InclusiveRectangle` and
`ClientConnector`, is released by its finalizer and no longer has
`Dispose()`
- overlapping calls on one native object now throw, such as calling
`ActiveStage` from the PDU loop and an input handler at once, or using a
`CredsspSequence` while its `CredsspProcessGenerator` is alive

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-26 13:12:48 -04:00
Rostyslav Romanets 64133f5de3 chore(graphics): add RemoteFX decode benchmarks (#2149)
Add native Criterion and Node-driven WebAssembly benchmarks for RemoteFX
frame, tile, entropy-mode, and individual decode-stage costs using
deterministic synthetic screens.

Generate encoded fixtures before timing and retain the decoder context
across video-mode frames. Restore stage inputs outside timed batches and
keep decoded output observable so measurements exclude encoding, input
copies, and wasm-bindgen glue.

Expose both suites through `cargo xtask bench`, including native
baseline comparisons and an optional WASM SIMD build.

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Marc-André Moreau <mamoreau@devolutions.net>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-10-26 09:04:19 -04:00
MuNeNiCK 860cf6ccb1 feat(web): support WebSocket subprotocols (#1970) 2026-10-21 07:36:37 +00:00
Benoît Cortier fa9665501e feat(xtask): add pinned benchmark corpus (#1942)
Pin public Wireshark RDP captures for repeatable benchmark inputs.

Fetch only immutable raw URLs with curl, verify SHA-256 digests, and
atomically replace corrupt cache entries. CI rejects tracked packet
captures.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-10-20 13:43:12 +09:00
Jérémie Laval c003152b37 build: support linux-arm64 build of wasm2wat (#2035)
Adds Linux ARM64 support when installing wasm2wat for WASM validation.
2026-09-29 06:01:23 +00:00
uchouT ee26c2f208 ci(pr-automation): add usb scope (#1875)
Signed-off-by: uchouT <i@uchout.moe>
2026-09-04 00:23:34 +09:00
Greg Lamberson 2e4d7d04c3 feat(xtask): add fuzz coverage subcommand (#1733)
## Summary

- Coverage-guided fuzzing typically plateaus around 12 hours in
(Liyanage et
al., ICSE 2023), and several targets in this workspace have run far
longer
than that without any coverage-feedback check. A target can keep running
  for hours after its coverage stopped growing, hiding bug-finding
  opportunity elsewhere, with nothing surfacing it.
- Adds `cargo xtask fuzz coverage [--target NAME]`: runs a target (or
all
  targets, matching `fuzz run`'s existing default) against its existing
corpus via `cargo fuzz coverage`, then renders a per-file line coverage
  report via the toolchain's own `llvm-cov`, filtered to only files with
  nonzero coverage. Auto-discovers targets via the existing
  `discover_targets()` used by `run`/`list`/`corpus-min`.
- `llvm-cov`/`llvm-profdata` are resolved from the pinned nightly
toolchain's own `rustlib` tree rather than a plain `PATH` lookup: a
`PATH`
  resolution can land on an unrelated system-wide LLVM install with an
incompatible profile format, which is what happened locally when testing
  this. `cargo fuzz coverage` resolves `llvm-profdata` the same way
  internally, for the same reason.
- Adds the `llvm-tools-preview` rustup component to `fuzz install`,
needed
  to merge raw coverage profiles. Without it, `coverage` fails partway
through with a missing `llvm-profdata` error instead of at install time.
- `fuzz/coverage/` is gitignored alongside the existing `corpus` and
  `artifacts` entries.

## Validation

`cargo xtask check fmt/lints/tests/typos/locks` all pass. Also ran the
subcommand end to end against a seeded `pdu_decoding` corpus: correctly
narrowed the full linked-binary report from ~60 source files down to the
49
the target actually touches.

## Notes

Pure additive, no existing subcommand changes. The compiled fuzz
binary's
path assumes the `x86_64-unknown-linux-gnu` target triple, matching
`cargo
fuzz coverage`'s own documented default rather than introducing a new
limitation.
2026-08-27 14:14:53 -04:00
Marc-André Moreau 761dae12b0 feat(mstsgu): add smart-card gateway authentication (#1741)
Add an opt-in Kerberos PKINIT path for HTTP Negotiate gateway
authentication while retaining the password Negotiate, NTLM, and Basic
flows.

The public credentials type accepts an application-supplied UPN, redacts
credentials, and rejects unsupported smart-card feature or challenge
combinations without exposing them.
2026-08-21 21:52:41 -04:00
Marc-André Moreau 476b897129 feat(mstsgu): add Negotiate and NTLM HTTP gateway auth (#1715)
Corporate RD Gateways typically challenge with Negotiate or NTLM rather
than Basic, so the WebSocket-only client could not complete the upgrade.

The first upgrade request omits Authorization. On 401, WWW-Authenticate
is parsed as an HTTP challenge list and Negotiate is preferred (Kerberos
then NTLM inside SPNEGO via sspi network_client), then NTLM, then HTTP
Basic. SSPI and KDC resolution run on spawn_blocking. A 101 may complete
SSPI from a final GSS token when present. connect and connect_with_port
signatures are unchanged.

sspi 0.21 is an implementation-only dependency. HTTP auth tests live in
tests/http_auth.rs so [lib] test = false can stay. xtask runs that
target with native-tls. RPCH, UDP, reauth, Detect, extended-auth packet
exchange, and TLS channel bindings remain out of scope.
2026-08-19 22:55:40 -04:00
Benoît Cortier 346f316afa ci: protect Cargo test settings (#1650)
Reject pull requests that remove `test = false` or `doctest = false`
from Cargo targets so tests remain centralized in the testsuite crates.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-08-13 22:37:25 +09:00
Marc-André Moreau bbef8d98bf chore(xtask): allow the rdpei title scope (#1649)
Add `rdpei` to the canonical PR title scopes so MS-RDPEI work can use
`feat(rdpei):` titles.

Needed before https://github.com/Devolutions/IronRDP/pull/1647 can pass
pull-request conventions (that workflow validates titles against the
base branch).
2026-08-13 07:34:19 -04:00
Marc-André Moreau 50fa88b29e feat: add AUDIO_INPUT protocol crate (#1645)
Introduce `ironrdp-rdpeai` for MS-RDPEAI (AUDIO_INPUT) PDUs and client
handler, plus the shared RDPSND format matching helper used during
negotiation.

The crate is workspace-internal (`publish = false`) with unit coverage
in `ironrdp-testsuite-core`. Capture backends and ActiveX wiring land in
a follow-up stacked PR.
2026-08-12 16:46:41 -04:00
Marc-André Moreau 0161906731 feat(pdu): add RemoteApp protocol primitives (#1636)
Add portable RAIL wire types and a typed Remote Programs capability set.

Validate the RAIL crate's bare `no_std` and allocation-backed
configurations in the workspace feature matrix.

Keep connection setup and windowing behavior outside this protocol
layer.
2026-08-11 19:58:17 -04:00
Greg Lamberson 8934e4a530 chore(xtask): allow the rdpeudp and rdpemt title scopes (#1628)
# chore(xtask): allow the rdpeudp and rdpemt title scopes

Two entries in `CANONICAL_SCOPES`, following #1615.

The RDP-UDP transport @mamoreau-devolutions asked for on #140 arrives as
two
crates, `ironrdp-rdpeudp` and `ironrdp-rdpemt`. Neither name is in the
list, so
`cargo xtask pr check-message` rejects the titles of the PRs that add
them:
#1626 and #1627 are both red on `Check message` for exactly this, with
everything else green.

Placed next to `rdpeusb`, which keeps the protocol extension crates
together.

## No scope for the tokio adapter

The transport also comes with `ironrdp-rdpeudp-tokio`, and I have
deliberately
not added a scope for it. The list names subsystems rather than crates,
which is
why there is no `tokio`, `async`, `blocking` or `-native` entry either,
so
changes to that crate belong under `rdpeudp`. Say the word if you would
rather
have one per crate and I will add it.

## Test plan

`cargo xtask check fmt/lints/tests/typos/locks`

Also checked directly against the titles this unblocks, by feeding each
to
`cargo xtask pr check-message` with a synthetic event file: the two
filed PRs
and the three still to come all validate, as does this PR's own title.
2026-08-11 08:24:57 -04:00
Greg Lamberson dbc26e8a35 chore(xtask): allow the fuzz title scope (#1615) 2026-08-11 00:23:35 +09:00
Benoît Cortier 98a5edec6d ci(pr-automation): validate PR messages (#1607)
Enforce repository title, scope, breaking-change, and footer rules from
the trusted base branch without rerunning code CI for metadata edits.

Keep pull request metadata in the GitHub event file so shell parsing
never interprets its contents.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-08-10 00:57:24 +09:00
Alex Yusiuk bda96e573d chore(xtask): update binaries versions (#1525)
Co-authored-by: Alexandr Yusuk <aleksandr.yusuk@apriorit.com>
2026-08-03 14:27:47 +00:00
Marc-André Moreau f1d53c78d3 fix(tls): make certificate validation explicit (#1520)
IronRDP deployments commonly use self-signed or private-CA certificates.
This keeps the historical permissive behavior for unmodified callers
while making platform-root and server-name validation an explicit
opt-in.

## Approach

- Keep `upgrade` and `ConfigBuilder` defaults compatible with existing
self-signed endpoints, including the prior native-TLS SNI behavior.
- Expose `CertificateValidation::Strict` for callers that require normal
certificate-chain and hostname validation.
- Retain the Rustls callback path for certificate pinning or other
explicit exception decisions; configuring a callback selects strict
validation before invoking it.
- Preserve CredSSP's existing public-key binding and disabled TLS
resumption behavior.

MS-CSSP section 3.1.5 does not require a common trusted CA root and
permits servers to use self-signed certificates, so strict verification
cannot be introduced as a transparent default.

## Validation

- `cargo xtask check fmt -v`
- `cargo xtask check lints -v`
- Focused Rustls default/strict/callback runtime test
- Focused native-TLS default/strict runtime test

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-08-02 18:14:19 -04:00
Benoît Cortier 131d7d3dc5 ci(xtask): add dependency-invariant guard for ironrdp-session (#1438) 2026-07-10 09:08:11 -04: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
Greg Lamberson 479a13aa49 feat(egfx): cascade Arbitrary derives across ironrdp-egfx public PDU types (#1334) 2026-06-02 01:37:30 +09:00
Alex Yusiuk 3905d177f2 build(web): pass extra optimization flags for WASM release build (#1342)
Co-authored-by: Alexandr Yusuk <aleksandr.yusuk@apriorit.com>
2026-05-30 01:53:40 +09:00
Benoît Cortier 30a79a0413 chore: remove code coverage pipeline (#1324)
The cargo-llvm-cov + grcov coverage report pipeline has been broken for
a while and is no longer used. Drop the GitHub Actions workflow, the
`cargo xtask cov` subcommands and module, the pinned tool versions, and
the related `.gitignore` and AGENTS.md entries.
2026-05-27 13:29:13 +00:00
Benoît Cortier 5663ce206a ci(fuzz): discover fuzz targets dynamically (#1290)
Mirror the `check features` pattern: expose `cargo xtask fuzz list`
(with `--format github-matrix`) that enumerates fuzz targets by scanning
`fuzz/fuzz_targets/*.rs`, and have the fuzz workflow build its matrix
from that output. New targets dropped into the directory are picked up
by CI automatically, with no workflow edits required.
2026-05-20 15:06:55 +00:00
Greg Lamberson a8a813a22d feat(fuzz): add bulk decompression fuzz targets (MPPC, NCRUSH, XCRUSH) (#1285) 2026-05-20 22:35:54 +09:00
Greg Lamberson d18c51171b ci: add check features matrix gate with dynamic CI fan-out (#1283) 2026-05-19 17:04:33 +09:00
Gabriel Bauman c98a8fb774 feat(cliprdr,web,ffi): implement clipboard file transfer support (#1166)
Add end-to-end clipboard file transfer (upload and download) across the
CLIPRDR channel per MS-RDPECLIP.
2026-04-09 14:53:39 +09:00
Benoît Cortier 79869f9a76 chore: upgrade toolchain to 1.89.0 and migrate to Rust edition 2024 (#1153)
- Bump pinned toolchain from 1.88.0 to 1.89.0 in rust-toolchain.toml
- Migrate all workspace crates from edition 2021 to edition 2024
- Run `cargo fix --edition` to auto-migrate source code for edition 2024
compatibility (unsafe in unsafe fn, tail expr drop order, etc.)
- Replace all `expr_2021` macro fragment specifiers with `expr` now that
the workspace is fully on edition 2024
- Remove `keyword_idents_2024` lint (now enforced by the edition itself)
- Remove removed `clippy::string_to_string` lint (covered by
implicit_clone)
- Fix new clippy lints from 1.93.0: `manual_is_multiple_of`,
`useless_let_if_seq`, `manual_map`, `derivable_impls`,
`redundant_imports`, `unused_crate_dependencies` (but didn’t bump MSRV)
- Drop `core::future::Future` unnecessary qualifications (Future is now
in the Rust 2024 prelude)
- Remove direct `bytes` deps from ironrdp-futures and ironrdp-tokio
(re-exported by ironrdp-async)
2026-03-09 14:32:53 +00:00
Alex Yusiuk 9622619e8c refactor: add as_conversions clippy correctness lint (#1021)
Co-authored-by: Benoît CORTIER <git.divisible626@passmail.com>
2025-11-05 22:23:22 +00:00
devolutionsbot 8dc41e2feb chore(release): prepare for publishing (#989) 2025-09-24 08:01:35 +00:00
Alex Yusiuk 630525deae refactor!: enable unwrap_used clippy correctness lint (#965)
Co-authored-by: Benoît CORTIER <git.divisible626@passmail.com>
2025-09-11 11:41:02 +00:00
Alex Yusiuk b1f6004ab1 refactor: add non_ascii_literal clippy correctness lint (#932) 2025-08-26 08:18:22 -04:00
Alex Yusiuk 6fddcaae38 refactor: add needless_raw_strings clippy correctness lint (#931) 2025-08-25 07:17:25 -04:00
Alex Yusiuk c84b46be91 refactor: add macro_use_extern_crate rustc style/readability lint (#919)
This lint warns on each `macro_use` attribute on an extern crate. Such a
way of importing macros from a crate is being phased out. Instead of it,
we should directly import the needed macro using `use` import.
2025-08-19 09:45:34 -04:00
Benoît Cortier cd184d30bd build: fix xtask web build task (#912) 2025-08-13 07:56:52 -04:00
Alex Yusiuk 8634ab05bc ci(xtask): pin nightly version (#897) 2025-07-30 04:40:38 -04:00
Alex Yusiuk f96b1b2ce8 refactor: add allow_attributes clippy to "Extra-pedantic clippy" section (#880) 2025-07-23 08:55:40 +00:00
Benoît Cortier 48e02441d2 chore: update Rust toolchain to 1.88.0 (#852)
MSRV is also bumped to 1.84.
2025-07-03 07:38:28 +03:00