Limrun network capture: serve tunnel traffic through network dump and a downloadable HAR artifact

Aberta
#4,064 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
networking

Direção de pesquisa

First check that #4080 is complete, since this issue is blocked by it. Trace Limrun's networkDump operation and the artifacts/close paths that write the HAR; map captured tunnel entries to NetworkDumpResult and register the HAR with trackDownloadableArtifact. Verify the stated completion conditions: redacted tunnel requests, a downloadable valid HAR 1.2 document, and continued reporting of metadata.failures.

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

Descrição

Purpose

Limrun's --provider-network-logs capture keeps completed requests in memory. Since #4080, artifacts and close write them to <state-dir>/network-har/<lease-id>.har on the daemon host. The CloudArtifact.url is that absolute daemon-host path. Remote and proxy clients can't download it, and network dump on a capture-enabled Limrun session never sees tunnel traffic.

Required behavior

  • While a capture is live, Limrun's networkDump operation returns the capture's in-memory entries, mapped from DestinationTunnelHAREntry to the NetworkDumpResult shape. network dump --include headers|body then applies the daemon's payload caps and redactNetworkLogText.
  • The HAR that artifacts and close write is registered with trackDownloadableArtifact, so remote and proxy clients can download it and the tracker's expiry owns retention.

Completion conditions

  • agent-device network dump --include headers on a Limrun session with --provider-network-logs lists tunnel requests, with redaction applied.
  • agent-device artifacts on a remote or proxy client lists a downloadable HAR, and the download yields a valid HAR 1.2 document.
  • metadata.failures (count, last typed kind, last dial failure) is still reported.

Dependencies

Blocked by: #4080.

Linguagem predominante
TypeScript
Estrelas
5.2k
Forks
359
Merge médio
13h 23min
PRs com merge (30d)
655

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 callstack/agent-device

Todas as issues de callstack/agent-device

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

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