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

+14
View File
@@ -23,6 +23,10 @@ type Me struct {
IsAdmin bool
// HasPassword is false for accounts that only sign in through SSO.
HasPassword bool
// OrgSuspended is set when platform admins suspended the active
// organization, with SuspendedReason as they gave it.
OrgSuspended bool
SuspendedReason string
}
// Org is one entry of the organization switcher.
@@ -67,6 +71,16 @@ templ consoleShell(p Page, me Me) {
</nav>
</div>
</header>
if me.OrgSuspended {
<div class="border-b border-down bg-down/10" role="alert">
<p class="mx-auto max-w-5xl px-6 py-3 text-sm">
<strong>{ i18n.T(ctx, "console.org_suspended") }</strong>
if me.SuspendedReason != "" {
{ " " + i18n.T(ctx, "console.suspended_reason", "Reason", me.SuspendedReason) }
}
</p>
</div>
}
switch me.Policy {
case "totp_required_by_org":
@policyBanner("error.totp_required_by_org", "console.totp_missing_action", "/settings/security")