feat: private-address access per checker, check types per organization #106

Merged
Sebi merged 1 commits from feat/checker-network into main 2026-11-22 17:54:42 +00:00
Owner

Stacked on #105.

Private addresses (incl. Docker socket)

  • Admin → Checker network: platform checkers may check private addresses, yes/no (GET/PUT /api/v1/admin/checker-network). Unset keeps today's behavior: allowed self-hosted, forbidden in the cloud edition.
  • Per organization checker: allow_private (default on, as before), set at creation or toggled in the checker list; PATCH /api/v1/org/agents/:id. Other organizations get 404.
  • Applies from the checker's next poll (agent rows are read per request; the platform setting via the versioned cache).

Check types per organization

  • Org settings → Check types: which of the platform's types members are offered (PUT /api/v1/org/check-types, org.manage, session only). Effective set = platform ∩ organization; GET /api/v1/org/check-types returns it.
  • Same rules as the platform switch: existing monitors keep running and stay editable, at least one type must stay on; if the platform later switches off everything an organization kept, the org choice is ignored instead of offering nothing.

Schema 00037: agents.allow_private, orgs.disabled_check_types. All new routes audited and documented. New data-autosave forms submit on change (browser test added).

Tests: real checkers against a loopback service — platform checker allowed then forbidden, org checker forbidden at creation then allowed, cloud default off, foreign org cannot toggle; org check types offered/refused/editor/settings page, other organizations unaffected.

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

Stacked on #105. **Private addresses (incl. Docker socket)** - **Admin → Checker network:** platform checkers may check private addresses, yes/no (`GET/PUT /api/v1/admin/checker-network`). Unset keeps today's behavior: allowed self-hosted, forbidden in the cloud edition. - **Per organization checker:** `allow_private` (default on, as before), set at creation or toggled in the checker list; `PATCH /api/v1/org/agents/:id`. Other organizations get 404. - Applies from the checker's next poll (agent rows are read per request; the platform setting via the versioned cache). **Check types per organization** - Org settings → *Check types*: which of the platform's types members are offered (`PUT /api/v1/org/check-types`, `org.manage`, session only). Effective set = platform ∩ organization; `GET /api/v1/org/check-types` returns it. - Same rules as the platform switch: existing monitors keep running and stay editable, at least one type must stay on; if the platform later switches off everything an organization kept, the org choice is ignored instead of offering nothing. Schema `00037`: `agents.allow_private`, `orgs.disabled_check_types`. All new routes audited and documented. New `data-autosave` forms submit on change (browser test added). **Tests:** real checkers against a loopback service — platform checker allowed then forbidden, org checker forbidden at creation then allowed, cloud default off, foreign org cannot toggle; org check types offered/refused/editor/settings page, other organizations unaffected. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added this to the M11 Uptime Kuma parity milestone 2026-11-22 16:18:37 +00:00
Sebi changed target branch from feat/docker-check to main 2026-11-22 17:54:12 +00:00
Sebi added 1 commit 2026-11-22 17:54:12 +00:00
feat: choose which checkers may check private addresses, check types per organization
ci / image (pull_request) Successful in 3m33s
ci / lint (pull_request) Successful in 6m25s
ci / test (pull_request) Successful in 11m34s
ci / build (pull_request) Successful in 11m54s
465fda60dc
Whether platform checkers may check private addresses, including the
host's Docker socket, is now a platform setting; unset, it stays as
before: allowed self-hosted, forbidden in the cloud edition. Each of an
organization's checkers has its own switch, on by default, settable at
creation and toggled in the checker list. Both apply from the checker's
next poll.

Organizations choose in their settings which of the platform's check
types their members are offered; existing monitors keep running, and if
the platform later switches off everything an organization kept, it is
offered the platform's types again rather than none. Forms marked
data-autosave are sent when a field changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit 51538fe681 into main 2026-11-22 17:54:42 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#106