Repository navigation
feat: batch 02 - 18 new check types, notifications, and integrations - #3
Merged
Merged
Conversation
Inspired by Uptime Kuma's most popular monitor types that SolidPing was missing. Each checker follows the existing PostgreSQL pattern with connect + ping/query, timeout handling, and metrics collection. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Accurate check type list (20 types including new MySQL/Redis/MongoDB), correct directory structure, real credentials, proper make targets, and current tech stack. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Docker, gRPC, Microsoft SQL Server, Kafka, RabbitMQ, MQTT, SNMP, Oracle, Headless Browser, and Steam Game Server. Each spec covers backend config/checker/tests, frontend form, Go driver choice, security considerations, and verification checklist. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add Microsoft SQL Server monitoring with connection and query health checks, following the same pattern as the existing MySQL checker. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add Oracle Database monitoring using go-ora pure Go driver, following the same pattern as MySQL and MSSQL checkers. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add gRPC service monitoring using the standard gRPC health checking protocol (grpc.health.v1), with TLS and service name support. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add game server monitoring using the Steam A2S query protocol for Source Engine games. Supports player count thresholds. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add RabbitMQ checker supporting both AMQP protocol and Management API modes. AMQP mode connects, opens a channel, and optionally inspects a queue. Management mode queries the /api/health/checks/alarms endpoint. Includes backend package, registry integration, dashboard form fields, and en/fr locale entries. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add MQTT protocol checker that connects to an MQTT broker, subscribes to a configurable topic, publishes a QoS 1 test message, and verifies the roundtrip. Tracks connection_time_ms, roundtrip_time_ms, and total_time_ms metrics. Supports TLS, authentication, and configurable topics. Includes backend (Go checker package, registry, types), frontend form fields (host, port, username, password, topic, TLS checkbox), and locale translations (EN + FR). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Remove unused nolint directive, replace deprecated QueueInspect with QueueDeclarePassive, and fix short variable names (ch -> channel, q -> queueInfo, u -> amqpURL). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…Config helper Every checker package had an identical errors.go defining ErrInvalidConfigType. Replaced with a single generic AssertConfig[T] function in checkerdef that provides better error messages (expected vs actual type) and eliminates 27 duplicate files. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Expose checker sample configurations via GET /api/v1/check-types/samples so the frontend can offer pre-configured templates when creating new checks. The template picker shows a grid of available samples grouped by check type, and selecting one pre-fills the entire check creation form. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…amples, and period constraints - Replace basic Select with searchable Popover combobox for check type selection - Move sample configs into the check-types API response (embedded per type) - Add min/max/default period fields to CheckTypeMeta and API response - Set domain min period to 6h, SSL min to 1h, DNS default to 5m - Show "Load from template" dropdown after type selection (uses samples from API) - Group form into sections: Check Type, Configuration, General - Build interval options dynamically based on type's min/max period constraints - Validate period against constraints on submit - Remove standalone sample-config-picker component (no longer needed) - Add Popover UI component (Radix-based) Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Remove samples from the check-types API response to avoid bloating it. Samples are now fetched on-demand via GET /api/v1/check-types/samples?type=X when the user clicks "Load from template". The button fetches samples for the selected check type, then shows a dropdown to pick one. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
The Radix Select with value="" prevented selection from working. Use simple clickable buttons instead for a more reliable UX. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Use variant="secondary" and w-full to make the "Load from template" button clearly visible between the type selector and configuration. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
The button is now inline with the type combobox instead of below it. Clicking it fetches samples and shows them as clickable items below. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Selecting a check type now updates the URL to ?checkType=http (etc.) via navigate with replace:true, keeping the selection in the URL. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Fix reverse proxy by using ReverseProxy struct directly instead of NewSingleHostReverseProxy (which sets Director, conflicting with Rewrite) - Add X-Proxied-By: solidping-dev header on proxied responses - Add SP_REDIRECTS env var to dev-test Makefile target - Add redirect rules logging in config parsing - Add slug validation with user-friendly error messages in check form Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…atus0 The SWC plugin triggers a deprecation warning with Vite 8 about using `esbuild` instead of `oxc`. Switching to the standard React plugin fixes the warning and aligns status0 with dash0. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Soft delete doesn't trigger ON DELETE CASCADE, so check jobs were left orphaned. Workers could attempt to execute jobs for deleted checks. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Add package comments to all checker packages (revive) - Use sentinel errors instead of dynamic fmt.Errorf (err113) - Fix variable shadowing in checksftp (govet) - Use errors.New for static errors in checkssl (perfsprint) - Fix struct tag alignment in checkerdef types (gci/tagalign) - Add nolint:lll for long registry lines - Fix gci formatting in server.go and checktypes/service.go - Add role="option" to check type combobox items for E2E tests Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add dupl linter to golangci-lint config. Exclude test files from dupl checks and add nolint:dupl to intentional structural duplicates (registry switch, OAuth providers, 2FA handlers). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Add https://one.one.one.one as a default HTTP check sample - Lower global minimum period from 10s to 5s - Add 5 seconds interval option to the period selector Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Pure function test with no shared state can safely run in parallel. Updated nolint comments on TestCalculateNextScheduledAt subtests with accurate reasons (shared runner instance). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Use Go 1.13+ octal literals (0o755, 0o600) instead of legacy format to satisfy gofumpt, removing 6 nolint:gofumpt directives - Use index-based range loops instead of value copies for net.IPAddr to satisfy gocritic rangeValCopy, removing 5 nolint:gocritic directives Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Use index-based range loops or pointer references to avoid struct copies in sqlite, job_startup, and CLI checks code. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Add errFingerprintMismatch sentinel error in checkssh (err113) - Use errors.As instead of type assertion for ssh.ExitError (errorlint) - Rename scoped error variables to avoid shadowing in CreateCheck (govet) Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Jun 22, 2026
Co-locates the docs in this repo (`web/docs/`, Docusaurus) and serves them from the binary at the **`/docs`** path on every host (like `/dash0`, `/status0`), so `solidping.io/docs` works with no extra infra. `docs.solidping.io` redirects into `/docs` (`server.docs_host`). ## Highlights - `web/docs/`: Docusaurus 3.10.1; API reference generated at build from `server/internal/app/openapi/openapi.yaml` (can't drift). - Go: `//go:embed all:docsres` + `/docs` routes + docs-host redirect; Swagger explorer moved `/docs` → `/openapi`. - Makefile / CI / Dockerfile: docs build + embed wiring. - Rename internal wiki `docs/` → `wiki/` (ends the docs/ vs web/docs/ collision). - `deploy/docs-ingress.yaml`: optional ingress template for the docs.solidping.io subdomain. Marketing site moved to the `solidping-website` repo (PRs #2, #3 there). Implements `specs/done/2026/06/2026-06-22-01-docs-site-from-code-repo.md`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Sep 14, 2026
Three bumps close every open Dependabot alert on the repo. - kin-openapi 0.142.0 -> 0.144.0 (alerts #6 critical, #7 medium): ValidationHandler.Load() fail-open auth bypass via the default NoopAuthenticationFunc, and an unauthenticated nil-pointer panic in openapi3filter when validating a `content` parameter whose media type carries no schema. Indirect, pulled by oapi-codegen. - goxmldsig 1.4.0 -> 1.6.0 (alert #1 high): loop-variable capture in validateSignature let a crafted document bypass signature validation. Indirect, pulled by crewjam/saml. - github.com/docker/docker -> github.com/moby/moby/{client,api} (alerts #2, #3, #4, #5): docker/docker stopped publishing Go modules at v28.5.2 — Docker 29 split the Go client into github.com/moby/moby/client and the API types into github.com/moby/moby/api. There is no patched v28, so the only way off the vulnerable module is the migration. The moby migration is mechanical but not a pure import rewrite, because the split client reshaped its call signatures: - every call takes an options struct and returns a result struct (ContainerInspect/List/Start/Remove/Logs, CopyTo/FromContainer, ImagePull, Ping); - InspectResponse is flat — the ContainerJSONBase embedding is gone; - Summary.State is container.ContainerState and Health.Status is container.HealthStatus, both typed strings now; - container.Port is container.PortSummary; - port sets/maps moved to the network package with a real Port type (network.MustParsePort) and netip.Addr host IPs, replacing docker/go-connections/nat — which drops to indirect; - EndpointSettings.Gateway is a netip.Addr, not a string. Behaviour is unchanged for the docker check and container discovery. The one compatibility note: the split client's floor is Docker API 1.40 (Docker 19.03, 2019), up from 1.24. API-version negotiation still runs, so Podman and older-but-supported daemons are unaffected. go mod tidy also promotes chromedp/cdproto to a direct requirement — it is directly imported by internal/checkers/checkbrowser and was mislabeled indirect. Verified: make lint-back, go vet ./... , go vet -tags slowtests ./... , and the full `make test` suite all green; oapi-codegen still builds against kin-openapi 0.144.0. Co-Authored-By: Claude Opus 5 <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Sep 14, 2026
Three bumps close every open Dependabot alert on the repo. - kin-openapi 0.142.0 -> 0.144.0 (alerts #6 critical, #7 medium): ValidationHandler.Load() fail-open auth bypass via the default NoopAuthenticationFunc, and an unauthenticated nil-pointer panic in openapi3filter when validating a `content` parameter whose media type carries no schema. Indirect, pulled by oapi-codegen. - goxmldsig 1.4.0 -> 1.6.0 (alert #1 high): loop-variable capture in validateSignature let a crafted document bypass signature validation. Indirect, pulled by crewjam/saml. - github.com/docker/docker -> github.com/moby/moby/{client,api} (alerts #2, #3, #4, #5): docker/docker stopped publishing Go modules at v28.5.2 — Docker 29 split the Go client into github.com/moby/moby/client and the API types into github.com/moby/moby/api. There is no patched v28, so the only way off the vulnerable module is the migration. The moby migration is mechanical but not a pure import rewrite, because the split client reshaped its call signatures: - every call takes an options struct and returns a result struct (ContainerInspect/List/Start/Remove/Logs, CopyTo/FromContainer, ImagePull, Ping); - InspectResponse is flat — the ContainerJSONBase embedding is gone; - Summary.State is container.ContainerState and Health.Status is container.HealthStatus, both typed strings now; - container.Port is container.PortSummary; - port sets/maps moved to the network package with a real Port type (network.MustParsePort) and netip.Addr host IPs, replacing docker/go-connections/nat — which drops to indirect; - EndpointSettings.Gateway is a netip.Addr, not a string. Behaviour is unchanged for the docker check and container discovery. The one compatibility note: the split client's floor is Docker API 1.40 (Docker 19.03, 2019), up from 1.24. API-version negotiation still runs, so Podman and older-but-supported daemons are unaffected. go mod tidy also promotes chromedp/cdproto to a direct requirement — it is directly imported by internal/checkers/checkbrowser and was mislabeled indirect. Verified: make lint-back, go vet ./... , go vet -tags slowtests ./... , and the full `make test` suite all green; oapi-codegen still builds against kin-openapi 0.144.0. Co-Authored-By: Claude Opus 5 <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Oct 12, 2026
The watchdog reported a false `stale-incidents` anomaly in prod on 2026-10-12: incident #3 on a daily heartbeat check, "last result never, silent for 95h45m". The check runs fine (one `No heartbeat received` result every day at 12:50 UTC). The detector only reads `period_type = 'raw'` results, and aggregation had already compacted the previous day's raw row into an hourly row. With no raw row, the detector fell back to the incident's `started_at` (4 days ago), past the 72h threshold. Any check with a period of about a day or more hits this once per cycle, between compaction and its next run. Fix: use the later of the newest raw row and `checks.last_result_at`, which compaction does not touch. Regression test with a positive control, verified to fail without the fix. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Nov 23, 2026
…on diagnostics (#990) ## What changed - **Checks search** (solidping-business#105): every word of a multi-word query must now match the name or the slug (`ts- ssh` finds `ts-ssh-…`); `%` and `_` typed in a search are matched literally. - **Escalation policy editor** (#107, finding 1): the step target Select stays controlled, no more React "uncontrolled to controlled" warning. - **Webhook deliveries** (#106): the HTTP status is classified. 4xx (and 3xx) are permanent failures, logged at WARN instead of ERROR; 5xx, 429 and 408 are retried up to `MaxRetryCount`, honouring `Retry-After` (seconds or date, capped at 15 min). The `Job failed` log line carries `status_code`. A notification webhook keeps the same `webhook-id` (the root job UID) across its retries, so receivers can deduplicate. - **iOS Safari session loss** (#107, finding 2): not reproduced under Playwright WebKit iPhone emulation, so only diagnostics ship: PostHog events `session_missing_on_load` (booleans only, never token values), `session_cleared` (with the reason, plus a `solidping_session_cleared` localStorage marker read on the next load) and `session_persist_failed`; events fired before PostHog loads are queued (max 10). The fix comes once production events point at the cause. Breaking (internal): `jobsvc.Service.RetryJob` takes an `after time.Duration`; `clearToken(reason)` now requires a reason. ## Decided by autopilot - webhook-status-retry-classification, "same `webhook-id` across retries?": yes, the root job UID. - webhook-status-retry-classification, "surface repeated failures as integration health?": out of scope. - ios-safari-session-lost, "ship the instrumentation first if not reproduced?": yes, instrumentation only. - ios-safari-session-lost, "drop stackless `Script error.` events?": not yet, only once the events show they don't precede the sign-out. Closes fclairamb/solidping-business#105 Closes fclairamb/solidping-business#106 Closes fclairamb/solidping-business#107 🤖 Generated with [Claude Code](https://claude.com/claude-code) - CodeQL js/clear-text-storage-of-sensitive-data, web/dash0/src/api/client.ts:126/131/135 (alerts #136-#138): dismissed as false positive, tokens live in localStorage by design until the HttpOnly-cookie spec (2026-09-15-05 B1), as for #1-#3/#129. --------- 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.
Summary
/metricsendpointAll 18 specs from
specs/todos/implemented and archived tospecs/done/2026/03/.Test plan
make build-backendpassesmake lint-backpasses (only pre-existing staticcheck deprecation warnings remain)make testpassesGET /api/v1/check-typesGetSender()registry/metricswhen enabled🤖 Generated with Claude Code