Skip to content

docs(adr): ADR-0130, give Alertmanager its own DNS fallback - #1690

Merged
Gerrrt merged 7 commits into
mainfrom
docs/adr-alert-path-dns-fallback
Nov 23, 2026
Merged

Gerrrt merged 7 commits into
mainfrom
docs/adr-alert-path-dns-fallback

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

What changed

ADR-0130 gives Alertmanager its own resolver list: 10.0.99.1 (morpheus) first, then 1.1.1.1 and 9.9.9.9, set as dns: on the alertmanager service in stacks/observability/compose.yaml. docs/observability.md and forward-dns-to-adguard.md §4 now say the ntfy.sh copy and the heartbeat still resolve while AdGuard is down. The changelog records it, and README's ADR count is 130. The house's DNS is unchanged; ADR-0055 stands for every client.

Why

The prometheus audit's finding 4. With AdGuard on trinity as morpheus's only forwarder, a trinity outage stops the ntfy.sh copy of every urgent page and the healthchecks.io heartbeat from resolving. The only page is then healthchecks.io calling Alertmanager dead, which names the wrong machine. That happened on 2026-11-13 (lookup hc-ping.com … server misbehaving, 18:21–18:23). A fallback on morpheus itself is ruled out by ADR-0055's leak measurement, so this covers the alert path alone.

Blast radius

Alertmanager's own name lookups. morpheus stays first, so the matrix.elysium overrides (the in-house ntfy) still answer from it. A public resolver is asked only when morpheus fails, and only for Alertmanager's three receiver hosts. Merging recreates alertmanager at the next converge. Its silences live in its volume, so they survive.

  • No change to network segmentation or firewall rules (VLAN 99 already reaches public resolvers, as blackbox's 8.8.8.8:53 probe does)
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • Measured on prometheus (Docker 29.9.1): a scratch container on a user-defined network with --dns 10.0.99.1 --dns 1.1.1.1 resolved doubleclick.net, which morpheus answers with SERVFAIL, from 1.1.1.1. It still resolved ntfy.matrix.elysium to 10.0.99.40. With --dns 10.0.99.1 alone, doubleclick.net did not resolve.

  • 1.1.1.1 and 9.9.9.9 answer from prometheus over UDP and TCP.

  • docker compose config --no-interpolate renders the dns list under alertmanager.

  • python3 scripts/check_docs.py: docs OK. ./scripts/lint.sh: yamllint, markdownlint and editorconfig pass.

  • make validate: exit 0, 374 PASS, 5 SKIP. The skips: the tmpfs path refusal (CI covers it), and four checks that need the deployment checkout. It ran on the first commit. The review fix (ADR text only) and the merges of main landed while it ran, and CI runs the full set on the final head.

  • After deploy: docker exec alertmanager nslookup doubleclick.net should return an address, which proves the fallback in place.

  • make validate passes (5 skipped, listed above)

  • Deployed to the lab and confirmed working

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

With AdGuard on trinity as morpheus's only forwarder (ADR-0055), a
trinity outage left the ntfy.sh copy of urgent pages and the heartbeat
unable to resolve. Alertmanager now lists morpheus first, then 1.1.1.1
and 9.9.9.9; Docker's embedded resolver was measured moving to the
next server on SERVFAIL while keeping the matrix.elysium overrides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt marked this pull request as ready for review November 23, 2026 20:45
Copilot AI balanced review requested due to automatic review settings November 23, 2026 20:45
@Gerrrt
Gerrrt enabled auto-merge (squash) November 23, 2026 20:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The ADR overlooks resolver-only failures, where pfSense continues routing and Docker can leak the internal hostname to public DNS resolvers.

1 open issue
What changed in this PR

This PR gives Alertmanager a dedicated DNS fallback so external notifications and heartbeat requests can resolve during an AdGuard outage, without changing household DNS.

Changes:

  • Adds two public fallback resolvers after morpheus for Alertmanager only.
  • Records the decision, verification steps, and operational consequences in ADR-0130 and related documentation.
  • Updates the changelog and README’s ADR count to 130.
File Description
stacks/​observability/​compose.yaml Adds Alertmanager’s ordered DNS resolver list.
README.md Updates both ADR counts to 130.
docs/​runbooks/​forward-dns-to-adguard.md Updates outage-test expectations for the ntfy.sh copy.
docs/​observability.md Documents external alert and heartbeat resolution during outages.
docs/​changelog.md Records the DNS fallback change and its motivation.
docs/​adr/​0130-give-alertmanager-its-own-dns-fallback.md Documents the decision, alternatives, verification, and consequences.

Review effort: Balanced

Gerrrt and others added 6 commits November 23, 2026 20:57
The matrix.elysium overrides are Unbound's, so an Unbound failure while
morpheus still routes sends ntfy.matrix.elysium to the public resolvers.
Accepted: the name is already published here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ns-fallback

# Conflicts:
#	docs/changelog.md
…ns-fallback

# Conflicts:
#	README.md
#	docs/changelog.md
…ns-fallback

# Conflicts:
#	docs/changelog.md
…ns-fallback

# Conflicts:
#	docs/changelog.md
@Gerrrt
Gerrrt merged commit a0929db into main Nov 23, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the docs/adr-alert-path-dns-fallback branch November 23, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants