test(network): cover DNS pins not crossing binary rules with a crate test

Ouverte
#5,916 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

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

topic:testing

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

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de NVIDIA/OpenShell

Toutes les issues de NVIDIA/OpenShell

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.