test(network): cover DNS pins not crossing binary rules with a crate test
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 62/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- rust
- Bereich
- networking, testing
Rechercherichtung
Start by reading the legacy test e2e/rust/tests/transparent_tcp.rs (the rootless_podman_private_dns_pins_do_not_cross_binary_rules case) to see exactly what property it asserts, then grep crates/openshell-supervisor-network for existing resolver fakes and DNS-pin tests before writing anything. If an existing test already covers the pin-not-crossing-binaries case, link it and close; otherwise add a crate test that resolves a name for binary A's rule, connects to that address as binary B, and asserts denial. Done is that test passing in the crate's own suite.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
User Story
I'm moving the e2e/rust tests onto testkit (#5281). One of them checks a security property but can't run end to end in any test environment, so I need that property covered somewhere else before the legacy test is deleted.
Description
transparent_tcp::rootless_podman_private_dns_pins_do_not_cross_binary_rules checks that a DNS pin made for one binary's network rule doesn't let a different binary reach the same address. It needs a server at a private address reached through a *.openshell.test name. Neither the Docker nor the Podman test environment can provide that, and the test never ran in CI. #5695 (PR5 of the #5297 plan) drops it from the port.
Cover the same property with a crate-level test in the network supervisor (crates/openshell-supervisor-network), where the resolver can be faked.
Context
- Decision D in the #5297 plan proposes this.
- Legacy test:
e2e/rust/tests/transparent_tcp.rs, kept until decision D is settled.
Definition of Done
- Check whether an existing crate test already covers "a DNS pin from one binary's rule does not allow another binary". If one does, link it here and close this issue.
- Otherwise, add a crate test that resolves a name for binary A's rule, then connects to the resolved address as binary B, and asserts the connection is denied.
- Vorherrschende Sprache
- Rust
- Sterne
- 21.5k
- Forks
- 2.1k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus NVIDIA/OpenShell
-
state:triage-needed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
-
state:triage-needed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failureEvtl. vergeben @TaylorMutch hat das vor 9 Tagen übernommen. Offenstate:accepted state:pr-opened
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
state:triage-needed
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
state:triage-needed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Alle Issues in NVIDIA/OpenShell
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 2 Tagen
-
autofixer: follow-up
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
tursodatabase/turso#12531 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug help wanted ui
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
userFRM/egui-charts#4292 ·
Maintainer antworten meist innerhalb von 1 Tag
-
CHANGELOG.md out of dateOffenIssue-Bug Need-Review
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
PowerShell/DSC#1832 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag