Commit Graph

80 Commits

Author SHA1 Message Date
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
Marc-André Lureau dd787af5a0 feat(benches): add perfenc
Make some internal APIs publicly visible thanks to "visibility" when
compiling with the "__bench" feature.

("testsuite-core" also learned "__bench", because fast_path.rs is a
shared file)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2025-04-29 13:00:07 +02:00
Alex Yusiuk fe676eeac5 refactor(web): follow-up to #722 (#747) 2025-04-14 14:05:19 +00:00
Alex Yusiuk 0ff1ed8de5 refactor(web-client): refactor iron-remote-gui into iron-remote-desktop (#722) 2025-04-11 08:28:27 -04:00
Benoît CORTIER aa210204a7 chore(xtask): add ffi install task
This task is for installing all the requirements for ffi tasks.
(That is: `diplomat-tool`.)
2025-03-24 23:23:26 +01:00
Benoît Cortier 43f05a712d perf(web-client): enable WASM SIMD instructions (#703) 2025-03-13 14:48:03 +02:00
Benoît Cortier 0b5f691c1e chore(xtask): update binary dependencies (#663) 2025-02-05 18:12:10 -05:00
Marc-André Lureau 3dc8a56070 build(xtask): bump wabt to 1.0.36
https://github.com/WebAssembly/wabt/releases/download/1.0.33/wabt-1.0.33-macos-14.tar.gz
is now 404.
2025-01-24 12:37:29 -05:00
Marc-Andre Lureau a0d32d7245 fix: fix commit 9198284263 (#626)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Changelog: ignore
2025-01-06 09:29:30 -05:00
Benoît CORTIER 807eb59b07 refactor: enable clippy::std_instead_of_core lint 2024-11-20 01:28:31 +09:00
Richard Markiewicz 5e5e1aa217 ci: update macos-12 runners to macos-14 (#566) 2024-10-29 04:51:16 -04:00
Marc-André Lureau 4350058945 chore(xtask): check all targets
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-07-24 04:35:32 -04:00
Marc-André Lureau 7307148cb8 chore: use workspace lints
Among other things, this allows tools and LSP to pick up our settings.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-07-24 04:35:32 -04:00
Marc-André Lureau adf2797ef7 fix: unnecessary qualification
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2024-07-24 04:35:32 -04:00
irvingouj @ Devolutions 590221469a chore(ffi):allow Devolutions.IronRdp to be build and packed with Nuget with the dll on Windows (#457)
* Allow Devolutions.IronRdp to be build and packed with Nuget alone with the dll

* review fix
2024-05-03 15:29:04 -04:00