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>
## 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.
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.
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.
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>
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).
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.
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.
# 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.
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>
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>
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
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.
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.
- 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)
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.
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>