CodeChecker internal group membership handling

Aperta
#4,302 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 8 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

This is phase II of the OAuth work in #4160 and spans the SUPERUSER permission model (docs/web/permissions.md), group storage in the database, the web GUI, and the allowed_groups login check in server_config.json. Start by reading #4160 and the permissions doc to see what phase I already provides. Done means group and membership management work for superusers only, and login is restricted to the allowed_groups list when it is non-empty. The issue has no comments, assignees or linked pull requests, so confirm the scope with maintainers before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

discussion :bulb:

This is the phase II authorization part of the oauth based authentication #4160

Requirements:

Group adminisration should be only possible with SUPERUSER global permission. See https://github.com/Ericsson/codechecker/blob/master/docs/web/permissions.md#superuser

It should be possible to add users (by an admin) in the web GUI of CodeChecker.
It should be possible to add groups too.
It should be possible to assign users to groups.
group memberships shoudl be stored in the database
It should be possible to list group memberships.
It should be possible to list users with the last login date.

The user can define a list of groups of which the users must be a member of to log in in
server_config.json :

  "authentication": {
    "enabled" : true,
    "realm_name" : "CodeChecker Privileged server",
    "realm_error" : "Access requires valid credentials.",
    "session_lifetime" : 300,
    "refresh_time" : 60,
    "logins_until_cleanup" : 30,
    "allowed_groups" : ["users","admins"]

If the list is empty, all users are allowed to log in.

Minimum required fields for user addition to a group:
Email address (unique identifier of a user)

Lingua principale
Python
Stelle
2.6k
Fork
494
Merge medio
9g 2h
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Ericsson/codechecker

Tutte le issue di Ericsson/codechecker

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.