Repository navigation
feat(checks): email check validates SPF/DKIM/DMARC and blocklists - #854
Merged
Merged
Conversation
…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]>
Co-Authored-By: Claude Sonnet 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]>
…he fetcher Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 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]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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]>
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]>
…LED) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 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]>
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]>
…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]>
#853) Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # server/internal/checkers/checkerdef/ipfallback_test.go
…l check Closes #853 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 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
🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… 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]>
Merged
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #853
What changed
require_spf,require_dkim,require_dmarc,check_blocklistsandblocklistsoptions (all off by default). Verdicts are exposed in the result output (auth,blocklisted_count) and in the dashboard; a failed requirement recordsdown. Includes a shareddnsblquerypackage, JMAP blob download, form section, i18n and docs.feat/todos-2026-11-11after that batch had landed on main and so never reached main. Main is merged in.Decided by autopilot
Authentication-Results): verify locally, provider header reported asprovider_auth(recommended).downdefault with adegradedopt-in; the implementer dropped the opt-in becausedegradedis a rollup status checkers never emit, so it is alwaysdown.go-msgauthandblitiri.com.ar/go/spf.