Document the accepted MVP and retire superseded development plans
Rust development slice / linux (push) Failing after 14s

This commit is contained in:
2026-11-18 17:21:12 +01:00
parent f37b6dc4f7
commit 6963ad332c
188 changed files with 370 additions and 34933 deletions
+5 -42
View File
@@ -1,48 +1,11 @@
# Native agent transport regressions
# HTTPS-Gerätekanal testen
These are local Linux tests, **not VM/MVP acceptance**. They use ephemeral PKI,
strict server-name/CA verification and mandatory client certificates on loopback.
No production endpoint, VM, enrollment, job approval or database is touched.
Die lokalen Linux-Integrationstests betreiben einen TLS-Server auf Loopback und erzeugen eigene Zertifikate. Der Agent meldet sich mit Clientzertifikat an, sendet Nachrichten und fragt nach Arbeit. Der Test unterbricht eine Antwort und prüft anhand der Nachrichten-ID, dass beim erneuten Senden nur ein Datensatz entsteht. Weitere Fälle prüfen falschen Servernamen, unbekannte CA und fehlendes Clientzertifikat. [Transporttest](../../crates/agent/tests/https_channel.rs) · [Gemeinsamer Testserver](common.rs)
The OpenSSL fixture must set a session-id context for client authentication.
On this host (OpenSSL 1.1.1w), the isolated replay regression originally failed
on reconnect with `ssl_get_prev_session`, code `336433429`, reason
`session id context uninitialized`; the client received TLS `InternalError`.
Disabling the session cache and tickets did not provide that context. The fix
sets a fixture-specific session context and restores normal caching/tickets;
it changes neither production TLS nor certificate verification. Handshake
diagnostics print only SSL codes and static library/function/reason metadata.
Der Zertifikatstest deckt den Verlust einer Erneuerungsantwort und die Zuordnung des erneuerten Zertifikats zum vorhandenen Schlüssel ab. Er prüft die Übernahme nach einem unterbrochenen Wechsel und die Ablehnung ungültiger Identitäten. [Zertifikatserneuerung](../../crates/agent/tests/certificate_rotation.rs)
Locked versions: openssl 0.10.82 / openssl-sys 0.9.118; reqwest 0.12.28 uses
rustls 0.23.46 with ring 0.17.14 (workspace disables reqwest default TLS).
The replay test asserts missing response returns an error without a fabricated
ACK, repeats the exact encoded batch/message ID, and retains one deduplicated
application record. No execution retry is introduced. Rotation retains its
three identity/crash/recovery tests. Its harness also runs the four HTTPS
contract tests because it compiles and uses that same transport implementation;
rotation-only fixtures live in the rotation test, without dead-code allowances.
Reproduce locally (commands, not a VM acceptance recipe):
Aufruf im Projektstamm
```sh
OPENSSL_CONF=/dev/null cargo test -p rmm-agent --test https_channel --locked real_mtls_hello_poll_durable_replay_and_fencing -- --exact --nocapture
cargo test -p rmm-agent --test https_channel --test certificate_rotation --locked
cargo clippy -p rmm-agent --test https_channel --test certificate_rotation --locked -- -D warnings
cargo test --locked -p rmm-agent --test https_channel --test certificate_rotation
```
`OPENSSL_CONF=/dev/null` isolates only the test process from host OpenSSL config;
it does not disable TLS, trust, name verification or mandatory mTLS.
## Observed local verification (2026-11-12)
- Isolated pre-fix replay: failed with the server reason/code above and client
`received fatal alert: InternalError` on the second explicit send.
- After the context fix: isolated pair of targets passed (7 + 4 tests).
- Five additional consecutive native runs with the normal environment passed
(7 + 4 each; 55 test executions, seven distinct cases because the HTTPS
contract is deliberately included in the rotation harness).
- Targeted `cargo clippy ... -- -D warnings` passed; file-scoped rustfmt check
passed. No dead-code/lint suppression was added.
- VM execution, production backend integration and production wiring were not
performed by this dispatch; Linux-MVP acceptance remains outside this result.