crt.sh is the only CT source; add a fallback

Aberta
#416 0 comentários 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
55/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
go
Domínio
cli, networking

Direção de pesquisa

Read internal/passive/passive.go around Known and the ct source mapping, then inspect internal/ct/ct.go and internal/retryhttp. Check the proposed service's terms, unauthenticated quota, and pagination requirements before choosing its API. Add a selectable CT source with hermetic httptest coverage and document it in the passive-sources docs; verify it can be selected through -sources.

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

Descrição

enhancement severity: low

Summary

crt.sh is the only Certificate Transparency source. When it is overloaded or down, which is common for large domains, -ct contributes nothing to that run.

Where

  • internal/passive/passive.go:40-43 (var Known = []string{"ct", "wayback"})
  • internal/passive/passive.go:78-86 (ct maps to the crt.sh client only)

Details

Passive-source failures are reported per source, so a crt.sh outage simply leaves the CT seeds empty.

Impact

crt.sh often returns 5xx or times out on large domains. Scheduled Action monitoring then silently loses its CT-derived candidates for that run, while the run still succeeds.

Suggested fix

Add a second keyless CT source under its own name in Known, for example SSLMate Cert Spotter's issuances API, which has an unauthenticated tier with a small hourly quota. Optionally let ct fall back to it when crt.sh fails. Reuse internal/retryhttp and the existing size caps.

Open questions: the unauthenticated quota is small and large domains need pagination. Check the service's terms before adding it.

Acceptance criteria

  • A second CT source selectable through -sources
  • Hermetic tests against an httptest server
  • Documented in the passive-sources docs

Getting started

  • Relevant files: internal/passive/passive.go, internal/ct/ct.go, internal/retryhttp

Filed by repo-audit/full-audit at dd5b156. Severity: low. Effort: M. audit-key: enhancement|internal/passive/passive.go|Known

Linguagem predominante
Go
Estrelas
1
Forks
1
Merge médio
8h 3min
PRs com merge (30d)
31

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

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 TMHSDigital/subenum

Todas as issues de TMHSDigital/subenum

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

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