Add `hidden` property to permission categories and permissions
I maintainer di solito rispondono entro 1 giorno
@BryanttV ci sta già lavorando.
Dal 17/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description
Static roles already support a hidden flag (ADR 0023) that removes a role from normal discovery and selection interfaces without deleting it or changing permission checks. Permission categories and permissions have no equivalent. Operators and applications cannot keep a permission or category defined in the schema while omitting it from the catalog that UIs consume (for example, one that is deprecated, experimental, or not meant to be assigned directly).
Adding the same flag to categories and permissions lets deployments control what is surfaced in the role/permission catalog while keeping the definitions, existing role grants, and enforcement intact.
Current Behavior
hiddenis only supported on roles ($defs/roleand$defs/role_extensioninauthz-schema-v1.json) and persisted inAuthzRoleDefinition.hidden.permission_categoriesandpermissionsentries in the schema do not accepthidden, andAuthzPermissionCategory/AuthzPermissionDefinitionhave no such column.- The scope-type catalog endpoint (ADR 0028) returns every category and permission used by the requested scope types, regardless of whether they should be exposed.
Expected Behavior
- Categories and permissions accept an optional boolean
hiddenfield in the authorization schema (defaultfalse), with the same semantics as for roles: hidden items are omitted from normal discovery APIs and selection UIs, but are not deleted, do not lose existing role grants, and do not change permission checks. - The compiled schema, source tracking, and database persist the flag, and changing it is reported as an update when applying a schema.
- The role/permission catalog API omits hidden categories and hidden permissions (and does not return a category whose permissions are all hidden).
Acceptance Criteria
-
authz-schema-v1.jsonaccepts an optional booleanhidden(defaultfalse) on category and permission definitions, and the schema reference docs are regenerated. -
AuthzPermissionCategoryandAuthzPermissionDefinitionstorehidden, with a migration that defaults existing rows tofalse. - The schema compiler, storage, and
load_authz_schema/ apply reporting persist the flag and report a changedhiddenvalue as an update. - The catalog endpoint excludes hidden categories and hidden permissions, and the API contract is documented.
- Hiding a permission or category does not remove existing role-permission relationships and does not alter authorization checks.
- Behavior for a role that references a hidden permission is defined and covered by a test.
- Tests cover schema validation, persistence, clearing the flag, and catalog filtering.
- Documentation (ADR or ADR update, schema reference, CHANGELOG) is updated.
Related: ADR 0023 (hidden roles), ADR 0025 (source tracking), ADR 0028 (role catalog API contract).
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 10
- Merge medio
- 5g 11h
- PR unite (30g)
- 25
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openedx/openedx-authz
-
Add a course permission check to ContainerChildrenViewForse già presa @BryanttV l’ha presa 7 giorni fa. Apertawillow
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
openedx/openedx-authz#604 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Allow Course Editors to import YouTube transcripts and surface errorsForse già presa @efortish l’ha presa 7 giorni fa. Apertawillow
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openedx/openedx-authz#597 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
willow
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
openedx/openedx-authz#579 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
openedx/openedx-authz#631 ·
I maintainer di solito rispondono entro 1 giorno
-
Run performance tests on the Willow RBAC authorization flows in openedx-authz and openedx-platformAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
openedx/openedx-authz#630 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di openedx/openedx-authz
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
mozilla-ai/cq#601 ·
I maintainer di solito rispondono entro 1 giorno
-
Bump Python to 3.14 or 3.15Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
intcomma returns exponential notation for large floatsForse già presa @Omarinho12345 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
python-humanize/humanize#521 ·
I maintainer di solito rispondono entro 1 giorno
-
LUCJ pass manager raises NoEdgeBetweenNodes when an edge is bad for two two-qubit gatesForse già presa @hat-im l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
opensubtitlescom: provider rejects pt-PT even though its own converter maps itForse già presa @paulo-0308 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
Diaoul/subliminal#1405 ·