Skip to content

feat(checks): email check validates SPF/DKIM/DMARC and blocklists - #854

Merged
fclairamb merged 44 commits into
mainfrom
feat/todos-2026-11-12
Nov 12, 2026
Merged

fclairamb merged 44 commits into
mainfrom
feat/todos-2026-11-12

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Closes #853

What changed

Decided by autopilot

fclairamb and others added 30 commits November 11, 2026 23:18
…an unhandled rejection (fclairamb/solidping-business#65)

Saving a status page with a slug the server rejects (400 VALIDATION_ERROR,
e.g. a UUID-shaped slug) gave no feedback: StatusPageForm.handleSubmit
(web/dash0/src/components/shared/status-page-form.tsx) awaited onSubmit with
no catch, so the ApiError became an unhandled rejection. The form now catches
it, shows the `slug` field message under the field and toasts the error
(silent on a refused demo write, which client.ts already toasts). Covers both
the create and edit routes. status-page-form.test.tsx fails before the fix.

Closes fclairamb/solidping-business#65

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ow (fclairamb/solidping-business#64)

Switching the dashboard header to 7 days or 30 days changed the availability
tile and banner but the "Checks at a glance" strips kept showing the last 24
hourly cells: dashboard-page.tsx hard-coded UPTIME_HOURS = 24 and a 3600 s
bucket. The strips now use glanceStripWindow() (24h: 24 x 1 h, 7d: 28 x 6 h,
30d: 30 x 1 day, aligned like the server's cells), and the cell tooltips show
the date for wider cells. glance-strip-window.test.ts guards the geometry.

Closes fclairamb/solidping-business#64

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ping-business#68)

The Recent Results card on a check page could only be filtered by region, so
finding the one failed run among dozens of successes meant scrolling. A
"Failures" toggle next to the region chips now lists only failed runs, via the
results endpoint's existing `status=down` filter (down, timeout, error). The
choice lives in the URL (`resultStatus=down`) like the region, and an empty
filtered table says no run failed. useResults gained the `status` option;
hooks.results-status.test.tsx fails before the change.

Closes fclairamb/solidping-business#68

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…never carry (fclairamb/solidping-business#63)

An operator with a WhatsApp contact next to a working route got a WARN
"cannot be delivered over this contact type; skipping route" on every
watchdog alert, right next to its "delivered" line (opsnotify/deliver.go
dispatchRoute default branch). The skip is a fixed fact of the
configuration, so it now logs at DEBUG; a recipient whose routes are ALL of
that kind still gets the "undeliverable" WARN, which now names the skipped
contact types. TestDeliverSkippedRouteNextToADeliveredOneIsNotAWarning and
the tightened TestDeliverSkipsWhatsApp fail before the change.

Refs fclairamb/solidping-business#63

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sign-in

Specs for fclairamb/solidping-business#63 (lease expiry under slow database
round-trips stalling a remote region), #66 (demo sessions end after one hour)
and #67 (Telegram as a sign-in provider).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…urable margin

A remote region with slow database round-trips could outlive its check-job
lease (period + 30s): a peer re-claimed the job, the check ran twice and the
first worker's release failed with 'job may have been claimed by another
worker' (fclairamb/solidping-business#63).

- The lease is now max(scheduled_at, now) + max(period, check timeout) +
  margin, the clock read per row so a slow claim transaction does not eat it.
  The margin defaults to 30s and is set per deployment with
  SP_CHECKERS_LEASE_MARGIN.
- New metrics by region: solidping_check_lease_held_seconds (claim to
  release) and solidping_check_lease_lost_total. A lost lease logs a WARN
  'Check lease lost' with lease_expires_at, missed_by, period and timeout.
- A claim that times out (driver i/o timeout, context deadline) is a WARN
  'Claim timed out: retrying after back-off' counted under
  solidping_claim_jobs_result_total{outcome="timeout"}, no longer an ERROR.
- Runbook and configuration docs describe the knob.

Closes fclairamb/solidping-business#63

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A rejected refresh on a demo session (server cap of one hour) now signs in
again with the public demo credential and shows a toast, instead of
redirecting to login?session_expired=true. Falls back to the redirect if the
re-login fails.

Closes fclairamb/solidping-business#66

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GET /api/v1/auth/telegram/login redirects to oauth.telegram.org; the callback
moves the fragment result into the query (hash-pinned bridge page), verifies
the HMAC with the bot token, refuses an auth_date older than 5 minutes and
signs in only the user who linked that Telegram account as a verified
notification contact. No account is created. Off unless
SP_TELEGRAM_LOGIN_ENABLED=true (the bot's domain must be set with @Botfather
/setdomain first). Login audit method: telegram.

Closes fclairamb/solidping-business#67

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Telegram brand icon for the provider grid (data-testid login-oauth-telegram),
a Telegram label for the sessions page, and /register leaves Telegram out:
it signs in linked accounts only and never creates one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A demo session should not be renewed more often than any other session, so
the client-side re-login on a rejected demo refresh is removed.

This reverts commit c305ba1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ls) (#849)

Stacked on #848: merge it first.

Races IPv6 and IPv4 in the enforcing egress dialer (second family starts
after 300 ms or on first failure), so dual-stack targets with a lossy
IPv6 path no longer time out.

Not done (needs a spec): degraded status when only one family fails,
reporting the answering family, v4/v6 sub-probes.

Closes fclairamb/solidping-business#69

Co-authored-by: Claude Opus 5.5 <[email protected]>
…ck family (fclairamb/solidping-business#69)

The Happy Eyeballs race (0c5ccaf) keeps a lossy IPv6 path from making a
dual-stack target look down; this spec restores the lost signal as a warning.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ack family

Observe each connect attempt per family (httptrace); when the first family
failed, or stayed silent for 1 s, while the other connected, the HTTP and
Prometheus checks return a warning with output.ip_fallback and a message.
A failure keeps its status; a pinned family never warns. Shown in the
dashboard (result-ip-fallback) and documented.

Closes fclairamb/solidping-business#69

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fclairamb and others added 5 commits November 12, 2026 09:23
…h on its fallback family should say so

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…h on its fallback family should say so

Adds checkhttp tests for the guard and stdlib dialer fallback paths and a
Prometheus scrape fallback test; documents why the message says "this region".

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
# Conflicts:
#	server/internal/checkers/checkerdef/ipfallback_test.go
@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.39%. Comparing base (efb8307) to head (37538de).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #854      +/-   ##
==========================================
+ Coverage   89.37%   89.39%   +0.01%     
==========================================
  Files        1358     1360       +2     
  Lines      139568   139969     +401     
==========================================
+ Hits       124745   125123     +378     
- Misses      14814    14837      +23     
  Partials        9        9              
Files with missing lines Coverage Δ
server/internal/app/server.go 92.16% <100.00%> (+<0.01%) ⬆️
server/internal/checkers/checkdnsbl/checker.go 96.21% <100.00%> (+1.40%) ⬆️
...rver/internal/checkers/checkemail/config/config.go 100.00% <100.00%> (ø)
...er/internal/checkers/checkemail/config/validate.go 96.66% <100.00%> (+5.00%) ⬆️
server/internal/checkers/dnsblquery/dnsblquery.go 100.00% <100.00%> (ø)
server/internal/handlers/emailcheck/auth.go 100.00% <100.00%> (ø)
server/internal/handlers/emailcheck/handler.go 97.20% <100.00%> (+6.29%) ⬆️
server/internal/jmap/client.go 89.47% <100.00%> (+2.80%) ⬆️
server/internal/jmap/manager.go 81.90% <100.00%> (+1.27%) ⬆️

... and 15 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fclairamb fclairamb added frozen Batch PR under review: takes only its own fixes, new work goes to the next batch implemented Every spec of the PR is implemented and its batch gate was green labels Nov 12, 2026
fclairamb and others added 4 commits November 12, 2026 16:21
… config paths

Remove an unreachable nil check in ReverseIPv6.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
It dials the url of the request body and runs no query, so the sweep
only measured the network wait.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…behind

The old version claims check jobs ahead of their slot and does not release
those leases on SIGTERM, so the recorded check can stay leased by the dead
worker until scheduled_at + period + 30s (~150s after its last result) before
HEAD may run it. The 90s window raced that lease; once acme.com started
hanging (2026-11-12) the timing shifted and every leg failed, on main too.

Same assertion, same check: only the window grows to 180s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb
fclairamb merged commit 25673c7 into main Nov 12, 2026
37 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-11-12 branch November 12, 2026 21:14
fclairamb added a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.49.0](v0.48.0...v0.49.0)
(2026-11-12)


### Features

* **checks:** email check validates SPF/DKIM/DMARC and blocklists
([#854](#854))
([25673c7](25673c7))
* flag unreachable Slack DM contacts, filter checks by group, quieter
tlsedge log ([#860](#860))
([8c8cda0](8c8cda0))


### Bug Fixes

* **deps:** update module github.com/prometheus/common to v0.74.0
([#856](#856))
([6659341](6659341))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
fclairamb added a commit that referenced this pull request Nov 13, 2026
…an now be changed on its edit page (#868)

## Root cause
#854 added the sender-authentication options (`require_spf`,
`require_dkim`, `require_dmarc`, `check_blocklists`, `blocklists`) to
the email check form. The edit page shows them, loaded from the stored
config. But the shared check form drops `config` from the PATCH of every
passive check type on edit (it was written when the only passive config
was the server-managed token). So the options showed, the save returned
200, and nothing was stored.

## Fix
- `check-form.tsx`: an email check's edit PATCH now carries its config.
Heartbeat and private-location edits still omit it (no editable key, and
a read-only region).
- The server already keeps the stored inbound token when a PATCH leaves
it out (`preserveAbsentRedactedFields`), so the address does not change.

## Tests
- Backend: `TestPatchingEmailAuthOptionsKeepsTheToken` patches the
options in, checks they are stored and the token survives, then clears
them with an empty config.
- E2E: `email-check-sender-auth.spec.ts` now edits an existing email
check, turns every option on, reloads the edit form, turns them off, and
asserts the stored config and token after each save. Run against a
side-car server: 2/2 passed.
- `golangci-lint` 0 issues, dash0 unit tests 2911 passed, `lint:e2e` and
`typecheck:e2e` clean. The unscoped dash0 lint is red on base, unchanged
here.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch implemented Every spec of the PR is implemented and its batch gate was green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

email check: validate SPF / DKIM / DMARC and DNS blocklists on received messages

1 participant