feat(api): organization-owned regions, checkers and status page servers

Organizations create regions and agents for themselves under Regions &
checkers; an org checker only receives its org's monitors. Platform admins
manage shared regions and agents in the admin panel or with the CLI,
which gains 'api admin grant|revoke'. The first user of a self-hosted
installation becomes a platform admin. Region lists show the org's own
regions first.

Closes #52
Refs #29

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-22 01:36:02 +01:00
1 parent 607798d742
commit 22f0740056
19 files changed
+1932 -301

No files matched your search

+31
View File
@@ -1,4 +1,15 @@
{
"admin.intro": "Regions, checkers and status page servers created here are shared by every organization. Organizations add their own under Regions & checkers.",
"admin.title": "Platform administration",
"agents.create": "Create agent",
"agents.kind": "Kind",
"agents.kind_checker": "Checker",
"agents.kind_statuspage": "Status page server",
"agents.list": "Agents",
"agents.no_region": "– (status page servers only)",
"agents.region": "Region",
"agents.revoke_confirm": "Revoke this agent? Its instances stop working immediately.",
"agents.token_now": "Copy the token now and set it as UPTIME_AGENT_TOKEN. It will not be shown again. Any number of instances may share it.",
"app.network_error": "Connection failed.",
"auth.field.code": "Code",
"auth.field.email": "Email",
@@ -23,9 +34,11 @@
"common.yes": "yes",
"console.monitors.empty": "No monitors yet.",
"console.monitors.title": "Monitors",
"console.nav.admin": "Admin",
"console.nav.logout": "Sign out",
"console.nav.members": "Members",
"console.nav.org": "Organization",
"console.nav.regions": "Regions & checkers",
"console.nav.roles": "Roles",
"console.nav.security": "Security",
"console.nav.sso": "SSO",
@@ -60,6 +73,7 @@
"error.invalid_permissions": "Choose at least one permission.",
"error.invalid_record": "Unsupported DNS record type.",
"error.invalid_region": "Unknown region.",
"error.invalid_region_key": "Region keys use 1–40 characters: a–z, 0–9 and hyphen.",
"error.invalid_resolver": "The resolver must be given as host:port.",
"error.invalid_slug": "Short name: 2–63 characters, a–z, 0–9 and hyphen.",
"error.invalid_target": "The target is not valid for this check type.",
@@ -79,6 +93,8 @@
"error.permission_escalation": "You cannot grant permissions you do not hold yourself.",
"error.policy_would_lock_you_out": "Your current sign-in does not meet this policy. Meet it first, then turn it on.",
"error.rate_limited": "Too many attempts, please try again later.",
"error.region_in_use": "The region is still used by monitors or agents.",
"error.region_key_taken": "A region with this key already exists.",
"error.role_built_in": "Built-in roles cannot be changed.",
"error.role_in_use": "The role is still assigned to members.",
"error.role_name_taken": "A role with this name already exists.",
@@ -151,6 +167,21 @@
"perm.statuspages.read": "View status pages",
"perm.statuspages.write": "Edit status pages",
"perm.tokens.manage": "View and revoke all API tokens",
"regions.create": "Create region",
"regions.delete": "Delete",
"regions.delete_confirm": "Delete this region?",
"regions.instances": "Checkers",
"regions.intro": "Run your own checkers, e.g. inside your network, in regions only your organization sees. Platform regions are available to everyone.",
"regions.key": "Key",
"regions.list": "Regions",
"regions.live": {
"one": "{{.Count}} live",
"other": "{{.Count}} live"
},
"regions.own": "this organization",
"regions.owner": "Owner",
"regions.platform": "platform",
"regions.title": "Regions & checkers",
"roles.built_in": "built-in",
"roles.create": "Create role",
"roles.delete": "Delete role",