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

+6 -5
View File
@@ -75,9 +75,10 @@ func TestAlerting(t *testing.T) {
}))
defer target.Close()
eu, us := uniq("eu-"), uniq("us-")
e.startChecker(t, e.agentToken(t, eu))
e.startChecker(t, e.agentToken(t, us))
euTok, eu := e.platformChecker(t, uniq("eu-"))
usTok, us := e.platformChecker(t, uniq("us-"))
e.startChecker(t, euTok)
e.startChecker(t, usTok)
owner := e.browser(t)
owner.signup("o@"+uniq("a")+".test", uniq("alert-"))
@@ -169,8 +170,8 @@ func TestLostEvaluationStateDoesNotDuplicateIncidents(t *testing.T) {
w.WriteHeader(http.StatusInternalServerError)
}))
defer target.Close()
region := uniq("eu-")
e.startChecker(t, e.agentToken(t, region))
tok, region := e.platformChecker(t, uniq("eu-"))
e.startChecker(t, tok)
owner := e.browser(t)
owner.signup("o@"+uniq("l")+".test", uniq("lost-"))