feat(group): 1st implementation of Groups

this implements first version (manageable only by admin right now)

    routes:

        GET /api/groups
        List subject groups (paginated). Admin-only.

        POST /api/groups
        Create a new ReBAC subject group. Admin-only. The name must match the RFC 5321 local-part shape and be globally unique (case-insensitive).

        GET /api/groups/search
        Search non-virtual groups by name substring. Authenticated only (no admin role required) — backs the share-dialog recipient autocomplete.

        GET /api/groups/{id}
        Fetch a single group's details. Admin-only.

        DELETE /api/groups/{id}
        Delete a group. Cascades to `subject_group_members` (FK) and to `access_grants` rows referencing this group as a subject. Admin-only.

        PATCH /api/groups/{id}
        Update a group's metadata. Admin-only. v1 only persists name renames.

        GET /api/groups/{id}/effective-members
        List every user transitively reached through this group (members of members of members, etc.). Used by admin / audit tooling. Admin-only.

        GET /api/groups/{id}/members
        List the *direct* members of a group (one level only). Admin-only.

        POST /api/groups/{id}/members
        Add a member to a group. Exactly one of `user_id` / `group_id` must be provided. Adding a group-member runs a write-time cycle check and a nesting-depth check (max 8). Admin-only.

        DELETE /api/groups/{id}/members/group/{gid}
        Remove a nested group-member from a group. Admin-only.

        DELETE /api/groups/{id}/members/user/{uid}
        Remove a user-member from a group. Admin-only.

fix hurl

groups

round

groups
This commit is contained in:
Edouard Vanbelle
2026-05-30 23:35:47 +02:00
parent 41356b6490
commit 09985f8a95
54 changed files with 6421 additions and 145 deletions
+35 -2
View File
@@ -131,7 +131,8 @@
"light": "Chiaro",
"dark": "Scuro",
"auto": "Come il sistema"
}
},
"manage_groups": "Gestisci gruppi"
},
"share": {
"dialogTitle": "Link di condivisione",
@@ -336,7 +337,13 @@
"move_error": "Errore durante lo spostamento",
"empty_name": "Il nome non può essere vuoto",
"name_exists": "Un file o una cartella con quel nome esiste già",
"generic_error": "Si è verificato un errore"
"generic_error": "Si è verificato un errore",
"group_name_invalid": "Il nome del gruppo deve rispettare il formato del prefisso email (lettere, cifre, punto, trattino, trattino basso; 1–64 caratteri).",
"group_cycle": "Questo membro creerebbe un riferimento circolare tra gruppi.",
"group_depth_exceeded": "Questa profondità di annidamento supera il massimo consentito (8).",
"group_virtual_immutable": "Il gruppo «Internal» è gestito dal sistema e non può essere modificato.",
"group_not_found": "Gruppo non trovato.",
"group_name_taken": "Un gruppo con questo nome esiste già."
},
"breadcrumb": {
"home": "Home"
@@ -755,5 +762,31 @@
"today": "Oggi",
"last7days": "Ultimi 7 giorni",
"last30days": "Ultimi 30 giorni"
},
"groups": {
"title": "Gestisci gruppi",
"create_button": "Crea gruppo",
"create_dialog_title": "Nuovo gruppo",
"edit_dialog_title": "Rinomina gruppo",
"name_label": "Nome",
"name_placeholder": "ingegneria",
"description_label": "Descrizione (opzionale)",
"members_section": "Membri",
"add_member_placeholder": "Aggiungi un utente o un gruppo…",
"no_members": "Nessun membro al momento.",
"remove_member": "Rimuovi",
"delete_group": "Elimina gruppo",
"delete_confirm": "Eliminare il gruppo \"{name}\"? Le autorizzazioni che fanno riferimento a questo gruppo saranno revocate.",
"empty_state": "Nessun gruppo al momento.",
"load_more": "Carica altro",
"back_to_list": "Indietro",
"loading": "Caricamento…",
"virtual_badge": "Sistema",
"member_count_zero": "Nessun membro",
"member_count_one": "1 membro",
"member_count_other": "{count} membri",
"delete_confirm_label": "Digita il nome del gruppo per confermare:",
"delete_confirm_mismatch": "Digita esattamente il nome del gruppo per confermare.",
"virtual_internal_name": "Interno"
}
}