test(network): cover DNS pins not crossing binary rules with a crate test
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 62/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- rust
- Domaine
- networking, testing
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Rust
- Étoiles
- 21.5k
- Forks
- 2.1k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de NVIDIA/OpenShell
-
state:triage-needed
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
-
state:triage-needed
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failurePeut-être pris @TaylorMutch l’a pris il y a 9 jours. Ouvertestate:accepted state:pr-opened
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
state:triage-needed
Difficulté 1/5 1-3 heures Accessibilité débutants 78/100
-
state:triage-needed
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Toutes les issues de NVIDIA/OpenShell
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 2 jours
-
autofixer: follow-up
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
tursodatabase/turso#12531 ·
Les mainteneurs répondent en général sous 1 jour
-
bug help wanted ui
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
userFRM/egui-charts#4292 ·
Les mainteneurs répondent en général sous 1 jour
-
CHANGELOG.md out of dateOuverteIssue-Bug Need-Review
Difficulté 1/5 1-3 heures Accessibilité débutants 85/100
PowerShell/DSC#1832 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour