Skip to content

feat: publish Spamhaus text feeds - #4900

Merged
damacus merged 1 commit into
mainfrom
codex/spamhaus-public-feeds
Nov 26, 2026
Merged

damacus merged 1 commit into
mainfrom
codex/spamhaus-public-feeds

Conversation

@damacus

@damacus damacus commented Nov 25, 2026

Copy link
Copy Markdown
Owner

UniFi rejects dynamic list URLs that resolve to private addresses. Expose the two generated IPv4 and IPv6 text feeds at spamhaus.damacus.io through the existing Cloudflare tunnel. The route matches only those two paths with GET or HEAD. JSON feeds and metrics remain on the internal hostname.

The manifests render and pass local schema validation. Docker Desktop has no Gateway API controller. After deployment, confirm both public files match the internal feeds and that JSON and metrics return 404. Verify the initial import and a refresh for both UniFi lists before enabling firewall rules.

@github-actions

Copy link
Copy Markdown
@@ (root level) @@
# gateway.networking.k8s.io/v1/HTTPRoute/network/spamhaus-public
! + one document added:
+ apiVersion: gateway.networking.k8s.io/v1
+ kind: HTTPRoute
+ metadata:
+   name: spamhaus-public
+   namespace: network
+   labels:
+     kustomize.toolkit.fluxcd.io/name: spamhaus
+     kustomize.toolkit.fluxcd.io/namespace: flux-system
+ spec:
+   hostnames:
+   - spamhaus.damacus.io
+   parentRefs:
+   - name: traefik-internal
+     namespace: network
+     sectionName: websecure
+   rules:
+   - backendRefs:
+     - name: spamhaus-http
+       port: 8080
+     matches:
+     - method: GET
+       path:
+         type: Exact
+         value: /current/drop_v4.txt
+     - method: GET
+       path:
+         type: Exact
+         value: /current/drop_v6.txt
+     - method: HEAD
+       path:
+         type: Exact
+         value: /current/drop_v4.txt
+     - method: HEAD
+       path:
+         type: Exact
+         value: /current/drop_v6.txt

@damacus
damacus marked this pull request as ready for review November 26, 2026 08:58
@damacus
damacus merged commit dfafadb into main Nov 26, 2026
16 of 17 checks passed
@damacus
damacus deleted the codex/spamhaus-public-feeds branch November 26, 2026 08:58

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

Devin Review

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: spamhaus-public

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Public route survives a Git revert

Reverting the PR leaves spamhaus-public live because the Spamhaus Kustomization disables pruning. With wildcard tunnel routing unchanged, withdrawing the feeds requires deleting the route separately.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +139 to +141
hostnames: [spamhaus.damacus.io]
parentRefs:
- {name: traefik-internal, namespace: network, sectionName: websecure}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Public feed outages bypass existing alerts

If DNS, Cloudflare, or the public route fails, SpamhausFeedUnavailable can stay quiet. The ServiceMonitor scrapes the backend directly, bypassing all three.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant