Apply consistent access checks across Studio endpoints
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 49/100
Direzione di ricerca
Start in the hotfixes viewsets and plain views, then inspect neighbouring endpoints for their permission-scoped query patterns. Check serializers for requester fields and review tests around the Stripe webhook, logout, and public channel token endpoints. Add regression coverage for each access denial or refused request; done means every scoped gap follows the stated pattern and its regression test passes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Overview
Several Studio endpoints don't apply the access checks the rest of the API follows. Some viewset actions query models directly instead of through the permission-scoped queryset. Some writable fields should come from the logged-in user. Some views accept requests they should refuse. Each sub-issue closes one gap so it matches the access pattern of its neighbouring endpoints.
Scope
- Included: viewset actions and plain views on
hotfixeswhose access check is missing or weaker than their neighbours'. - Included: request hardening next to those checks: the Stripe webhook secret, logout over GET, and rate limits on the public channel token endpoints.
- Excluded: the
/api/internal/*endpoints, which are to be deprecated. - Excluded: organization role management, which #6312–#6315 track.
Guidance
- Target
hotfixes. - Each access-check fix needs a regression test showing that a user without access gets the same response as for a nonexistent object. Each hardening fix needs a regression test for the request it now refuses.
Strategy
- Viewset actions load objects through
get_object()/get_edit_object(), or the model'sfilter_view_queryset/filter_edit_queryset, neverModel.objectsdirectly. - A field that identifies the requester is read-only in the serializer and set from
request.user.
AI usage
I chose which audit findings belong here and set the access pattern. Claude Code found and reproduced each gap and drafted this issue.
- Lingua principale
- Python
- Stelle
- 212
- Fork
- 321
- Merge medio
- 1g 7h
- PR unite (30g)
- 14
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun 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 learningequality/studio
-
Community library status changes don't update `date_updated`Forse già presa @ArpitaSamanta10 l’ha presa oggi. Apertacommunity-contribution-in-progress DEV: backend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
learningequality/studio#6414 · 8 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
DEV: backend
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
learningequality/studio#6410 ·
I maintainer di solito rispondono entro 1 giorno
-
DEV: backend
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
learningequality/studio#6409 ·
I maintainer di solito rispondono entro 1 giorno
-
DEV: backend
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
learningequality/studio#6407 ·
I maintainer di solito rispondono entro 1 giorno
-
Stripe webhook accepts events when no webhook secret is configuredForse già presa @adibmbrk l’ha presa oggi. Apertacommunity-contribution-in-progress DEV: backend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
learningequality/studio#6404 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di learningequality/studio
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
canonical/paas-charm#407 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
`read_nexus` entry point points to a function that no longer existsForse già presa @RubelMozumder l’ha presa oggi. Apertaannotator bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
FAIRmat-NFDI/pynxtools#876 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: HTTP 499 (Client Closed Request) is classified as a non-retryable format_error, so a mid-flight abort fails the turn over instead of retryingForse già presa @yipinghuang1991 l’ha presa oggi. Apertacomp/agent P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
NousResearch/hermes-agent#156837 ·
I maintainer di solito rispondono entro 1 giorno