feat: admins suspend or delete status pages, organizations and accounts
ci / image (pull_request) Successful in 3m20s
ci / build (pull_request) Successful in 8m34s
ci / test (pull_request) Successful in 11m41s
ci / lint (pull_request) Successful in 13m0s

The admin panel lists every published status page, and every suspended
page, organization or account, with the organization and owner behind
it, searchable by title, address, organization or email. Each can be
suspended with a reason, reinstated, or deleted.

A suspended page is not served; status page servers drop it when they
next ask. A suspended organization's monitors leave the schedule, its
pages go offline, heartbeat pings and Alertmanager webhooks are no
longer recorded, and its members and API tokens get 403 org_suspended;
the console explains why. Reinstating restarts heartbeat waits so they
do not fire at once. A suspended account is signed out everywhere and
can neither sign in nor use its tokens; only someone who knows the
password learns of the suspension. Platform admins cannot be suspended
or deleted. Account deletion shares its logic with the GDPR erasure,
including the refusal while the account owns shared organizations.

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 20:46:46 +01:00
1 parent db37060c70
commit 90e74d091a
37 files changed
+3109 -1140

No files matched your search

+22 -19
View File
@@ -152,25 +152,28 @@ func TestEveryMailEventHasTexts(t *testing.T) {
func TestDynamicFamilies(t *testing.T) {
en := catalogKeys(t)["en"]
families := map[string][]string{
"status.": {"up", "degraded", "down", "unknown", "paused", "maintenance"},
"monitors.type_": {"http", "tcp", "tls", "dns", "icmp", "json", "prometheus", "postgres", "mysql", "mssql", "mongodb", "redis", "mqtt", "kafka", "rabbitmq", "grpc", "smtp", "radius", "snmp", "steam", "minecraft", "docker", "heartbeat", "alertmanager"},
"agents.kind_": {"checker", "statuspage"},
"page.status.": {"operational", "degraded", "outage", "unknown", "maintenance"},
"page.component.": {"operational", "degraded", "outage", "unknown", "maintenance"},
"storage.level_": {"raw", "1h", "1d"},
"legal.": {"imprint", "privacy"},
"monitors.op_": {"eq", "ne", "gt", "ge", "lt", "le", "contains", "exists", "absent"},
"evidence.stage_": {"dns", "connect", "tls", "response", "body"},
"evidence.phase_": {"dns", "connect", "tls", "wait", "download"},
"monitors.db_database_": {"postgres", "mysql", "mssql", "mongodb", "redis"},
"monitors.broker_hint_": {"mqtt", "kafka", "rabbitmq"},
"monitors.snmp_cond_": {"any", "eq", "ne", "contains", "gt", "ge", "lt", "le"},
"monitors.minecraft_": {"java", "bedrock", "hint", "edition"},
"monitors.db_tls_": {"require", "verify", "disable"},
"weekday.": {"0", "1", "2", "3", "4", "5", "6"},
"md.": {"heading", "bold", "italic", "strike", "link", "ul", "ol", "quote", "code", "codeblock", "table", "hr"},
"maintenance.recurrence_": {"none", "daily", "weekly", "monthly"},
"storage.job_": {"compression", "retention", "refresh_continuous_aggregate", "job_stat_history_retention"},
"status.": {"up", "degraded", "down", "unknown", "paused", "maintenance"},
"monitors.type_": {"http", "tcp", "tls", "dns", "icmp", "json", "prometheus", "postgres", "mysql", "mssql", "mongodb", "redis", "mqtt", "kafka", "rabbitmq", "grpc", "smtp", "radius", "snmp", "steam", "minecraft", "docker", "heartbeat", "alertmanager"},
"agents.kind_": {"checker", "statuspage"},
"page.status.": {"operational", "degraded", "outage", "unknown", "maintenance"},
"page.component.": {"operational", "degraded", "outage", "unknown", "maintenance"},
"storage.level_": {"raw", "1h", "1d"},
"legal.": {"imprint", "privacy"},
"monitors.op_": {"eq", "ne", "gt", "ge", "lt", "le", "contains", "exists", "absent"},
"evidence.stage_": {"dns", "connect", "tls", "response", "body"},
"evidence.phase_": {"dns", "connect", "tls", "wait", "download"},
"monitors.db_database_": {"postgres", "mysql", "mssql", "mongodb", "redis"},
"monitors.broker_hint_": {"mqtt", "kafka", "rabbitmq"},
"monitors.snmp_cond_": {"any", "eq", "ne", "contains", "gt", "ge", "lt", "le"},
"monitors.minecraft_": {"java", "bedrock", "hint", "edition"},
"monitors.db_tls_": {"require", "verify", "disable"},
"moderation.target_": {"page", "org", "owner"},
"moderation.delete_": {"page", "org", "owner"},
"moderation.delete_confirm_": {"page", "org", "owner"},
"weekday.": {"0", "1", "2", "3", "4", "5", "6"},
"md.": {"heading", "bold", "italic", "strike", "link", "ul", "ol", "quote", "code", "codeblock", "table", "hr"},
"maintenance.recurrence_": {"none", "daily", "weekly", "monthly"},
"storage.job_": {"compression", "retention", "refresh_continuous_aggregate", "job_stat_history_retention"},
}
// Notification services name their type, group and settings.
families["channels.type_"] = []string{"webhook", "email"}
+40 -1
View File
@@ -97,8 +97,14 @@
"audit.action.platform.check_types_update": "Check-Typen geändert",
"audit.action.platform.checker_network_update": "Checker-Netzwerk geändert",
"audit.action.platform.legal_update": "Rechtstext der Plattform geändert",
"audit.action.platform.org_delete": "Organisation durch Admin gelöscht",
"audit.action.platform.org_suspension": "Organisation gesperrt oder entsperrt",
"audit.action.platform.region_create": "Plattform-Region erstellt",
"audit.action.platform.region_delete": "Plattform-Region gelöscht",
"audit.action.platform.status_page_delete": "Statusseite durch Admin gelöscht",
"audit.action.platform.status_page_suspension": "Statusseite gesperrt oder entsperrt",
"audit.action.platform.user_delete": "Account durch Admin gelöscht",
"audit.action.platform.user_suspension": "Account gesperrt oder entsperrt",
"audit.action.region.create": "Region erstellt",
"audit.action.region.delete": "Region gelöscht",
"audit.action.role.create": "Rolle erstellt",
@@ -448,7 +454,9 @@
"console.nav.settings": "Einstellungen",
"console.nav.sso": "SSO",
"console.nav.tokens": "API-Tokens",
"console.org_suspended": "Der Betreiber hat diese Organisation gesperrt: Ihre Monitore werden nicht geprüft und ihre Statusseiten sind offline.",
"console.sso_required_action": "Mit SSO anmelden",
"console.suspended_reason": "Grund: {{.Reason}}",
"console.totp_missing_action": "Jetzt einrichten",
"email.opened.body": "{{.Monitor}} ({{.Target}}) ist in allen Regionen nicht erreichbar seit {{.Since}}.\n\nLetzte Fehler:\n{{.Cause}}\n\nDu erhältst diese Nachricht, weil ein Benachrichtigungskanal deiner Organisation diese Adresse nutzt.",
"email.opened.subject": "[DOWN] {{.Monitor}}",
@@ -456,6 +464,7 @@
"email.resolved.subject": "[UP] {{.Monitor}}",
"email.test.body": "Dies ist ein Test. Wenn du ihn lesen kannst, funktioniert der Kanal.",
"email.test.subject": "Testbenachrichtigung von UptimeSebi",
"error.account_suspended": "Dieser Account ist gesperrt. Wende dich an den Betreiber.",
"error.agent_protocol_unsupported": "Diese Agent-Version wird von der API nicht unterstützt. Bitte den Agent aktualisieren.",
"error.alert_group_not_deletable": "Die Gruppe existiert nicht oder ist die geschützte Standardgruppe.",
"error.all_check_types_disabled": "Lass mindestens einen Check-Typ eingeschaltet.",
@@ -499,8 +508,8 @@
"error.invalid_method": "Nur GET- und HEAD-Anfragen werden unterstützt.",
"error.invalid_monitor": "Einer der Monitore existiert nicht oder ist doppelt aufgeführt.",
"error.invalid_permissions": "Mindestens eine Berechtigung auswählen.",
"error.invalid_quiet_hours": "Prüfe Startzeit, Endzeit und Wochentage der Ruhezeiten.",
"error.invalid_query": "Gib eine PromQL-Abfrage mit höchstens 2000 Zeichen ein.",
"error.invalid_quiet_hours": "Prüfe Startzeit, Endzeit und Wochentage der Ruhezeiten.",
"error.invalid_record": "Nicht unterstützter DNS-Record-Typ.",
"error.invalid_region": "Unbekannte Region.",
"error.invalid_region_key": "Regions-Schlüssel haben 1–40 Zeichen: a–z, 0–9 und Bindestrich.",
@@ -524,6 +533,7 @@
"error.no_password": "Konto ohne Passwort.",
"error.not_found": "Nicht gefunden.",
"error.org_not_found": "Organisation nicht gefunden.",
"error.org_suspended": "Der Betreiber hat diese Organisation gesperrt.",
"error.owner_cannot_be_removed": "Der Owner kann nicht entfernt werden.",
"error.owner_has_all_permissions": "Der Owner hat bereits alle Berechtigungen.",
"error.owns_shared_orgs": "Du besitzt Organisationen mit weiteren Mitgliedern. Übergib oder lösche sie zuerst.",
@@ -553,6 +563,7 @@
"error.sso_provider_error": "Der Identity Provider konnte die Anmeldung nicht abschließen.",
"error.sso_required_by_org": "Diese Organisation verlangt die Anmeldung über ihren SSO-Provider.",
"error.sso_unavailable": "Für diese Organisation ist kein Single Sign-on verfügbar.",
"error.target_is_admin": "Plattform-Admins können hier nicht gesperrt oder gelöscht werden.",
"error.token_lifetime_exceeds_policy": {
"one": "Tokens in dieser Organisation müssen innerhalb von {{.Count}} Tag ablaufen.",
"other": "Tokens in dieser Organisation müssen innerhalb von {{.Count}} Tagen ablaufen."
@@ -562,6 +573,7 @@
"error.totp_setup_expired": "Einrichtung abgelaufen, bitte neu starten.",
"error.unauthenticated": "Anmeldung erforderlich.",
"error.unsupported_locale": "Sprache wird nicht unterstützt.",
"error.user_owns_shared_orgs": "Dem Account gehören Organisationen mit weiteren Mitgliedern. Lösche diese zuerst oder übertrage sie.",
"evidence.body": "Antwort-Body",
"evidence.body_binary": "Binärer Inhalt, nicht gespeichert.",
"evidence.body_empty": "Leer.",
@@ -805,6 +817,31 @@
"members.scope_org": "gesamte Organisation",
"members.title": "Mitglieder",
"members.unassign": "Rolle entfernen",
"moderation.actions": "Sperren oder löschen …",
"moderation.created": "Erstellt",
"moderation.delete_confirm_org": "Organisation {{.Name}} mit allen Monitoren, Ergebnissen und Statusseiten endgültig löschen?",
"moderation.delete_confirm_owner": "Account {{.Name}} endgültig löschen? Organisationen, in denen nur er Mitglied ist, werden mitgelöscht.",
"moderation.delete_confirm_page": "Statusseite {{.Name}} endgültig löschen?",
"moderation.delete_org": "Organisation löschen",
"moderation.delete_owner": "Account löschen",
"moderation.delete_page": "Statusseite löschen",
"moderation.intro": "Alle veröffentlichten Statusseiten und alle gesperrten Seiten, Organisationen und Accounts, jeweils mit Organisation und Inhaber. Sperren lässt sich rückgängig machen und zeigt der Organisation den Grund; Löschen ist endgültig.",
"moderation.limited": "Nur die neuesten 500 werden angezeigt; die Suche grenzt ein.",
"moderation.none": "Keine Statusseite gefunden.",
"moderation.org": "Organisation",
"moderation.owner": "Inhaber",
"moderation.owner_is_admin": "Der Inhaber ist Plattform-Admin und kann hier nicht gesperrt oder gelöscht werden.",
"moderation.page": "Statusseite",
"moderation.reason": "Grund (optional)",
"moderation.reinstate": "Entsperren",
"moderation.search": "Titel, Adresse, Organisation oder E-Mail",
"moderation.search_button": "Suchen",
"moderation.suspend": "Sperren",
"moderation.suspended": "Gesperrt",
"moderation.target_org": "Organisation",
"moderation.target_owner": "Inhaber-Account",
"moderation.target_page": "Statusseite",
"moderation.title": "Öffentliche Statusseiten",
"monitors.alertmanager_hint": "Ausgefallen, solange ein Alert feuert, der alle Matcher erfüllt. Alerts kommen über einen Empfänger:",
"monitors.assertion_op": "Operator",
"monitors.assertion_path": "Pfad",
@@ -1031,6 +1068,8 @@
"pages.show_details": "Monitor-Details beim Anklicken anzeigen",
"pages.show_details_hint": "Erlaubt Besuchern eine Detailansicht mit 24h-Verlauf, Latenz, SLA und Regionen-Status. Ziele, Fehlermeldungen und Zugangsdaten bleiben immer privat.",
"pages.slug": "Kurzname (URL)",
"pages.suspended": "vom Betreiber gesperrt",
"pages.suspended_notice": "Der Betreiber hat diese Statusseite gesperrt; sie bleibt offline, bis er sie wieder freigibt.",
"pages.theme": "Theme",
"pages.title": "Statuspages",
"pages.value": "Wert",
+40 -1
View File
@@ -97,8 +97,14 @@
"audit.action.platform.check_types_update": "Check types changed",
"audit.action.platform.checker_network_update": "Checker network changed",
"audit.action.platform.legal_update": "Platform legal document changed",
"audit.action.platform.org_delete": "Organization deleted by admin",
"audit.action.platform.org_suspension": "Organization suspended or reinstated",
"audit.action.platform.region_create": "Platform region created",
"audit.action.platform.region_delete": "Platform region deleted",
"audit.action.platform.status_page_delete": "Status page deleted by admin",
"audit.action.platform.status_page_suspension": "Status page suspended or reinstated",
"audit.action.platform.user_delete": "Account deleted by admin",
"audit.action.platform.user_suspension": "Account suspended or reinstated",
"audit.action.region.create": "Region created",
"audit.action.region.delete": "Region deleted",
"audit.action.role.create": "Role created",
@@ -448,7 +454,9 @@
"console.nav.settings": "Settings",
"console.nav.sso": "SSO",
"console.nav.tokens": "API tokens",
"console.org_suspended": "The operator suspended this organization: its monitors are not checked and its status pages are offline.",
"console.sso_required_action": "Sign in with SSO",
"console.suspended_reason": "Reason: {{.Reason}}",
"console.totp_missing_action": "Set up now",
"email.opened.body": "{{.Monitor}} ({{.Target}}) is down in all of its regions since {{.Since}}.\n\nLast errors:\n{{.Cause}}\n\nYou receive this because a notification channel of your organization is set up for this address.",
"email.opened.subject": "[DOWN] {{.Monitor}}",
@@ -456,6 +464,7 @@
"email.resolved.subject": "[UP] {{.Monitor}}",
"email.test.body": "This is a test. If you can read it, the channel works.",
"email.test.subject": "Test notification from UptimeSebi",
"error.account_suspended": "This account is suspended. Contact the operator.",
"error.agent_protocol_unsupported": "This agent version is not supported by the API. Please update the agent.",
"error.alert_group_not_deletable": "The group does not exist or is the protected default group.",
"error.all_check_types_disabled": "Leave at least one check type on.",
@@ -499,8 +508,8 @@
"error.invalid_method": "Only GET and HEAD requests are supported.",
"error.invalid_monitor": "One of the monitors does not exist or is listed twice.",
"error.invalid_permissions": "Choose at least one permission.",
"error.invalid_quiet_hours": "Check start time, end time and weekdays of the quiet hours.",
"error.invalid_query": "Enter a PromQL query of at most 2000 characters.",
"error.invalid_quiet_hours": "Check start time, end time and weekdays of the quiet hours.",
"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.",
@@ -524,6 +533,7 @@
"error.no_password": "This account has no password.",
"error.not_found": "Not found.",
"error.org_not_found": "Organization not found.",
"error.org_suspended": "The operator suspended this organization.",
"error.owner_cannot_be_removed": "The owner cannot be removed.",
"error.owner_has_all_permissions": "The owner already has every permission.",
"error.owns_shared_orgs": "You own organizations with other members. Hand them over or delete them first.",
@@ -553,6 +563,7 @@
"error.sso_provider_error": "The identity provider could not complete the sign-in.",
"error.sso_required_by_org": "This organization requires signing in through its SSO provider.",
"error.sso_unavailable": "Single sign-on is not available for this organization.",
"error.target_is_admin": "Platform admins cannot be suspended or deleted here.",
"error.token_lifetime_exceeds_policy": {
"one": "Tokens in this organization must expire within {{.Count}} day.",
"other": "Tokens in this organization must expire within {{.Count}} days."
@@ -562,6 +573,7 @@
"error.totp_setup_expired": "Setup expired, please start again.",
"error.unauthenticated": "Authentication required.",
"error.unsupported_locale": "Unsupported language.",
"error.user_owns_shared_orgs": "The account owns organizations with other members. Delete those or hand them over first.",
"evidence.body": "Response body",
"evidence.body_binary": "Binary content, not stored.",
"evidence.body_empty": "Empty.",
@@ -805,6 +817,31 @@
"members.scope_org": "whole organization",
"members.title": "Members",
"members.unassign": "Remove role",
"moderation.actions": "Suspend or delete …",
"moderation.created": "Created",
"moderation.delete_confirm_org": "Delete the organization {{.Name}} with all its monitors, results and status pages for good?",
"moderation.delete_confirm_owner": "Delete the account {{.Name}} for good? Organizations only it belongs to go with it.",
"moderation.delete_confirm_page": "Delete the status page {{.Name}} for good?",
"moderation.delete_org": "Delete organization",
"moderation.delete_owner": "Delete account",
"moderation.delete_page": "Delete status page",
"moderation.intro": "Every published status page, and every page, organization or account that is suspended, with the organization and its owner behind it. Suspending can be undone and shows the reason to the organization; deleting cannot be undone.",
"moderation.limited": "Only the newest 500 are shown; search to narrow down.",
"moderation.none": "No status page matches.",
"moderation.org": "Organization",
"moderation.owner": "Owner",
"moderation.owner_is_admin": "The owner is a platform admin and cannot be suspended or deleted here.",
"moderation.page": "Status page",
"moderation.reason": "Reason (optional)",
"moderation.reinstate": "Reinstate",
"moderation.search": "Title, address, organization or email",
"moderation.search_button": "Search",
"moderation.suspend": "Suspend",
"moderation.suspended": "Suspended",
"moderation.target_org": "Organization",
"moderation.target_owner": "Owner account",
"moderation.target_page": "Status page",
"moderation.title": "Public status pages",
"monitors.alertmanager_hint": "Down while an alert matching all matchers fires. Alerts arrive through a receiver:",
"monitors.assertion_op": "Operator",
"monitors.assertion_path": "Path",
@@ -1031,6 +1068,8 @@
"pages.show_details": "Show component details on click",
"pages.show_details_hint": "Lets visitors open a detail view with 24h history, latency, SLA and region status. Targets, errors and credentials always stay private.",
"pages.slug": "Short name (URL)",
"pages.suspended": "suspended by the operator",
"pages.suspended_notice": "The operator suspended this status page; it is offline until they reinstate it.",
"pages.theme": "Theme",
"pages.title": "Status pages",
"pages.value": "Value",