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

Offen
#416 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
go
Bereich
cli, networking

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Go
Sterne
1
Forks
1
Ø Merge
8 Std. 3 Min.
Gemergte PRs (30 T.)
31

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TMHSDigital/subenum

Alle Issues in TMHSDigital/subenum

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.