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

Aberta
#5,916 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
62/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
rust
Domínio
networking, testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
Rust
Estrelas
21.5k
Forks
2.1k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de NVIDIA/OpenShell

Todas as issues de NVIDIA/OpenShell

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.