feat: several owners per organization, and handing ownership over
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 9m19s
ci / test (pull_request) Successful in 9m25s
ci / build (pull_request) Successful in 15m40s
ci / image (pull_request) Successful in 4m26s

An organization may now have several owners; the unique index allowing
only one is gone. Owners make members owners or take it back, their own
included, through PUT /api/v1/org/members/:user/owner; handing an
organization over is making someone else owner and stepping down. The
last owner cannot step down, and changes serialize on a per-organization
lock so two owners stepping down at once cannot leave none. A former
owner without roles keeps working as Admin. Owners still cannot be
removed while they are owners.

Deleting an account now takes along only the organizations it is the
last owner of, counted under the same lock; it just leaves those with
further owners. The members page offers "Make owner", "Remove as owner"
and "Step down as owner" to owners.

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-23 22:38:04 +01:00
1 parent 8d7c1f856c
commit db3ff19983
23 files changed
+558 -115

No files matched your search

+13 -4
View File
@@ -95,6 +95,7 @@
"audit.action.maintenance.delete": "Wartung gelöscht",
"audit.action.maintenance.update": "Wartung geändert",
"audit.action.member.join": "Der Organisation beigetreten",
"audit.action.member.owner": "Owner geändert",
"audit.action.member.remove": "Mitglied entfernt",
"audit.action.member.role_assign": "Rolle zugewiesen",
"audit.action.member.role_unassign": "Rolle entzogen",
@@ -576,6 +577,7 @@
"error.invitation_email_mismatch": "Diese Einladung ging an eine andere E-Mail-Adresse als die, mit der du angemeldet bist.",
"error.invitation_invalid": "Diese Einladung ist ungültig, abgelaufen oder wurde bereits verwendet.",
"error.keyword_needs_get": "Keyword-Checks brauchen GET-Anfragen.",
"error.last_owner": "Die Organisation braucht mindestens einen Owner. Mache zuerst jemand anderen zum Owner.",
"error.last_sign_in": "Das ist der einzige Anmeldeweg des Kontos. Setze zuerst ein Passwort oder verbinde einen anderen Anbieter.",
"error.locked": "Die Ressource ist von einem anderen Prozess gesperrt.",
"error.maintenance_overlaps": "Die Wartung würde länger dauern als der Abstand bis zur Wiederholung.",
@@ -588,8 +590,9 @@
"error.org_limit": "Dein Konto darf höchstens {{.Max}} Organisationen besitzen.",
"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_cannot_be_removed": "Owner können nicht entfernt werden. Entziehe zuerst die Owner-Rechte.",
"error.owner_has_all_permissions": "Der Owner hat bereits alle Berechtigungen.",
"error.owner_only": "Nur Owner können ändern, wem die Organisation gehört.",
"error.password_too_short": "Das Passwort braucht mindestens {{.Min}} Zeichen.",
"error.permission_escalation": "Du kannst keine Berechtigungen vergeben, die du selbst nicht hast.",
"error.platform_region_limit": "Ein Monitor darf aus höchstens {{.Max}} Plattform-Regionen geprüft werden; eigene Checker-Regionen zählen nicht.",
@@ -768,11 +771,11 @@
"gdpr.account_export_intro": "Lade alles herunter, was über dich gespeichert ist: Profil, Mitgliedschaften, Anmeldeidentitäten, API-Tokens und deine Aktivität. JSON ist maschinenlesbar, PDF gut lesbar.",
"gdpr.delete_account": "Konto löschen",
"gdpr.delete_account_confirm": "Konto endgültig löschen? Das lässt sich nicht rückgängig machen.",
"gdpr.delete_account_intro": "Löscht dein Konto sofort und meldet dich überall ab. Organisationen, die dir gehören, werden mit allem darin mitgelöscht, auch für ihre anderen Mitglieder; aus den übrigen trittst du nur aus. Audit-Einträge in anderen Organisationen bleiben als „Gelöschter Benutzer“ erhalten.",
"gdpr.delete_account_intro": "Löscht dein Konto sofort und meldet dich überall ab. Organisationen, deren letzter Owner du bist, werden mit allem darin mitgelöscht, auch für ihre anderen Mitglieder; aus Organisationen mit weiteren Ownern trittst du nur aus. Um eine Organisation zu erhalten, mache vorher jemand anderen zum Owner. Audit-Einträge in anderen Organisationen bleiben als „Gelöschter Benutzer“ erhalten.",
"gdpr.delete_org": "Organisation löschen",
"gdpr.delete_org_confirm": "Diese Organisation und alle ihre Daten endgültig löschen?",
"gdpr.delete_org_intro": "Löscht die Organisation mit allen Monitoren, Check-Ergebnissen, Statusseiten, Zugängen der Mitglieder und API-Tokens, sofort und endgültig. Die Konten der Mitglieder bleiben bestehen.",
"gdpr.deletes_orgs": "Diese Organisationen gehören dir. Sie werden mit deinem Konto gelöscht, mit allen Monitoren und Statusseiten, auch für ihre anderen Mitglieder:",
"gdpr.deletes_orgs": "Du bist der letzte Owner dieser Organisationen. Sie werden mit deinem Konto gelöscht, mit allen Monitoren und Statusseiten, auch für ihre anderen Mitglieder, außer du machst vorher jemand anderen zum Owner:",
"gdpr.org_data": "Daten der Organisation",
"gdpr.org_export_intro": "Lade Mitglieder, Rollen, Monitore, Gruppen, Kanäle, Statusseiten, SSO-Einstellungen, Vorfälle, das Audit-Log und die Tagesstatistik herunter. Geheimnisse sind nicht enthalten.",
"gdpr.password": "Dein Passwort",
@@ -899,19 +902,25 @@
"md.ul": "Aufzählung",
"md.write": "Schreiben",
"members.assign": "Rolle hinzufügen",
"members.intro": "Rollen bestimmen, was ein Mitglied darf. Niemand kann Berechtigungen vergeben, die er selbst nicht hat.",
"members.intro": "Rollen bestimmen, was ein Mitglied darf. Niemand kann Berechtigungen vergeben, die er selbst nicht hat. Owner dürfen alles; eine Organisation kann mehrere haben und behält immer mindestens einen.",
"members.invite": "Einladen",
"members.invite_link": "Schicke diesen Link an die eingeladene Person. Er gilt 7 Tage und funktioniert einmal.",
"members.invite_submit": "Einladung erstellen",
"members.make_owner": "Zum Owner machen",
"members.make_owner_confirm": "{{.Email}} zum Owner machen? Owner dürfen alles, auch die Organisation löschen und bestimmen, wer noch Owner ist.",
"members.owner": "Owner",
"members.pending": "Offene Einladungen",
"members.remove": "Aus der Organisation entfernen",
"members.remove_confirm": "Dieses Mitglied entfernen? Seine Sessions und API-Tokens enden sofort.",
"members.remove_owner": "Als Owner entfernen",
"members.remove_owner_confirm": "{{.Email}} die Owner-Rechte entziehen? Ohne andere Rollen bleibt die Person als Admin dabei.",
"members.revoke": "Widerrufen",
"members.role": "Rolle",
"members.roles": "Rollen",
"members.scope": "Beschränkt auf",
"members.scope_org": "gesamte Organisation",
"members.step_down": "Als Owner zurücktreten",
"members.step_down_confirm": "Als Owner zurücktreten? Ohne andere Rollen arbeitest du mit der Admin-Rolle weiter.",
"members.title": "Mitglieder",
"members.unassign": "Rolle entfernen",
"moderation.actions": "Sperren oder löschen …",
+13 -4
View File
@@ -95,6 +95,7 @@
"audit.action.maintenance.delete": "Maintenance deleted",
"audit.action.maintenance.update": "Maintenance changed",
"audit.action.member.join": "Joined the organization",
"audit.action.member.owner": "Ownership changed",
"audit.action.member.remove": "Member removed",
"audit.action.member.role_assign": "Role assigned",
"audit.action.member.role_unassign": "Role removed",
@@ -576,6 +577,7 @@
"error.invitation_email_mismatch": "This invitation was sent to a different email address than the one you are signed in with.",
"error.invitation_invalid": "This invitation is invalid, expired or was already used.",
"error.keyword_needs_get": "Keyword checks need GET requests.",
"error.last_owner": "The organization needs at least one owner. Make someone else owner first.",
"error.last_sign_in": "This is the account's only way to sign in. Set a password or connect another provider first.",
"error.locked": "The resource is locked by another process.",
"error.maintenance_overlaps": "The maintenance would last longer than the time until it repeats.",
@@ -588,8 +590,9 @@
"error.org_limit": "Your account may own at most {{.Max}} organizations.",
"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_cannot_be_removed": "Owners cannot be removed. Take their ownership away first.",
"error.owner_has_all_permissions": "The owner already has every permission.",
"error.owner_only": "Only owners can change who owns the organization.",
"error.password_too_short": "The password needs at least {{.Min}} characters.",
"error.permission_escalation": "You cannot grant permissions you do not hold yourself.",
"error.platform_region_limit": "A monitor may be checked from at most {{.Max}} platform regions; your own checker regions do not count.",
@@ -768,11 +771,11 @@
"gdpr.account_export_intro": "Download everything stored about you: profile, memberships, sign-in identities, API tokens and your activity. JSON is machine-readable, PDF easy to read.",
"gdpr.delete_account": "Delete account",
"gdpr.delete_account_confirm": "Delete your account permanently? This cannot be undone.",
"gdpr.delete_account_intro": "Deletes your account immediately and signs you out everywhere. Organizations you own are deleted with it, with everything in them, also for their other members; the others you just leave. Audit entries in other organizations remain, showing \"deleted user\".",
"gdpr.delete_account_intro": "Deletes your account immediately and signs you out everywhere. Organizations you are the last owner of are deleted with it, with everything in them, also for their other members; organizations with further owners you just leave. To keep an organization, make someone else owner first. Audit entries in other organizations remain, showing \"deleted user\".",
"gdpr.delete_org": "Delete organization",
"gdpr.delete_org_confirm": "Delete this organization and all its data permanently?",
"gdpr.delete_org_intro": "Deletes the organization with all monitors, check results, status pages, members' access and API tokens, immediately and permanently. Members' accounts remain.",
"gdpr.deletes_orgs": "You own these organizations. They are deleted with your account, with all their monitors and status pages, also for their other members:",
"gdpr.deletes_orgs": "You are the last owner of these organizations. They are deleted with your account, with all their monitors and status pages, also for their other members, unless you make someone else owner first:",
"gdpr.org_data": "Organization data",
"gdpr.org_export_intro": "Download members, roles, monitors, groups, channels, status pages, SSO settings, incidents, the audit log and daily statistics. Secrets are not included.",
"gdpr.password": "Your password",
@@ -899,19 +902,25 @@
"md.ul": "Bulleted list",
"md.write": "Write",
"members.assign": "Add role",
"members.intro": "Roles decide what each member may do. Nobody can grant permissions they do not hold themselves.",
"members.intro": "Roles decide what each member may do. Nobody can grant permissions they do not hold themselves. Owners may do everything; an organization can have several and always keeps at least one.",
"members.invite": "Invite",
"members.invite_link": "Send this link to the invitee. It is valid for 7 days and works once.",
"members.invite_submit": "Create invitation",
"members.make_owner": "Make owner",
"members.make_owner_confirm": "Make {{.Email}} an owner? Owners can do everything, including deleting the organization and deciding who else is owner.",
"members.owner": "Owner",
"members.pending": "Pending invitations",
"members.remove": "Remove from organization",
"members.remove_confirm": "Remove this member? Their sessions and API tokens end immediately.",
"members.remove_owner": "Remove as owner",
"members.remove_owner_confirm": "Take ownership away from {{.Email}}? Without other roles they keep working as Admin.",
"members.revoke": "Revoke",
"members.role": "Role",
"members.roles": "Roles",
"members.scope": "Limited to",
"members.scope_org": "whole organization",
"members.step_down": "Step down as owner",
"members.step_down_confirm": "Step down as owner? You keep working with the Admin role unless you have other roles.",
"members.title": "Members",
"members.unassign": "Remove role",
"moderation.actions": "Suspend or delete …",