v1.7.3 — Spamhaus Submit hotfix
Summary
Hotfix: Spamhaus Submit was never wired into the reporting pipeline — the spamhaus.Client interface existed but had no concrete implementation. This release adds SubmitClient (POST /portal/api/v1/submissions/add/ip, Bearer token) and wires it into reporting.Service independently of AbuseIPDB: own 24h per-IP dedup, fail-open on error, independent metrics. AbuseIPDB behaviour is unchanged.
Fixes
- FIX-SPAMHAUS-SUBMIT —
internal/security/enrichment/spamhaus.SubmitClientimplementsClient.Report()viaPOST https://submit.spamhaus.org/portal/api/v1/submissions/add/ipwith Bearer token auth. HTTP 401/403 → auth error, 429 → rate-limit, 5xx → retryable. All errors fail-open (logged WARN, do not affect AbuseIPDB result). - FIX-SPAMHAUS-DEDUP —
spamhausIPDeduptracks submitted IPs with a 24h TTL, independent from AbuseIPDB's dedup window. - FIX-SPAMHAUS-WIRE — startup wiring reads
spamhaus.api_keyfrom credential store and gates on provider-enabled state.
Metrics Added
spamhaus_submit_totalspamhaus_submit_failures_totalspamhaus_submit_dedup_total
Full changelog: see CHANGELOG.md