feat: admins suspend or delete status pages, organizations and accounts
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:
1 parent
db37060c70
commit
90e74d091a
37 files changed
+3109
-1140
No files matched your search
+16
-10
@@ -89,16 +89,22 @@ var auditActions = map[string]string{
|
||||
"POST /api/v1/org/tokens": "token.create",
|
||||
"DELETE /api/v1/org/tokens/:id": "token.delete",
|
||||
|
||||
"PUT /api/v1/admin/legal/:kind": "platform.legal_update",
|
||||
"PUT /api/v1/org/legal/:kind": "org.legal_update",
|
||||
"PUT /api/v1/admin/check-types": "platform.check_types_update",
|
||||
"PUT /api/v1/admin/checker-network": "platform.checker_network_update",
|
||||
"PUT /api/v1/org/check-types": "org.check_types_update",
|
||||
"PATCH /api/v1/org/agents/:id": "agent.update",
|
||||
"POST /api/v1/admin/regions": "platform.region_create",
|
||||
"DELETE /api/v1/admin/regions/:id": "platform.region_delete",
|
||||
"POST /api/v1/admin/agents": "platform.agent_create",
|
||||
"DELETE /api/v1/admin/agents/:id": "platform.agent_delete",
|
||||
"PUT /api/v1/admin/legal/:kind": "platform.legal_update",
|
||||
"PUT /api/v1/org/legal/:kind": "org.legal_update",
|
||||
"PUT /api/v1/admin/check-types": "platform.check_types_update",
|
||||
"PUT /api/v1/admin/checker-network": "platform.checker_network_update",
|
||||
"PUT /api/v1/admin/status-pages/:id/suspension": "platform.status_page_suspension",
|
||||
"DELETE /api/v1/admin/status-pages/:id": "platform.status_page_delete",
|
||||
"PUT /api/v1/admin/orgs/:id/suspension": "platform.org_suspension",
|
||||
"DELETE /api/v1/admin/orgs/:id": "platform.org_delete",
|
||||
"PUT /api/v1/admin/users/:id/suspension": "platform.user_suspension",
|
||||
"DELETE /api/v1/admin/users/:id": "platform.user_delete",
|
||||
"PUT /api/v1/org/check-types": "org.check_types_update",
|
||||
"PATCH /api/v1/org/agents/:id": "agent.update",
|
||||
"POST /api/v1/admin/regions": "platform.region_create",
|
||||
"DELETE /api/v1/admin/regions/:id": "platform.region_delete",
|
||||
"POST /api/v1/admin/agents": "platform.agent_create",
|
||||
"DELETE /api/v1/admin/agents/:id": "platform.agent_delete",
|
||||
}
|
||||
|
||||
// Failed attempts of these actions are recorded too.
|
||||
|
||||
Reference in new issue
Block a user