Move auth to the "run on behalf of" model
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- authentication, backend
Direzione di ricerca
Start by reading the service impersonation example linked in the issue and the existing token-handling code in the queuing service that talks to BlueAPI. The acceptance criteria require a new Keycloak client (requested via the UASHD helpdesk), propagation of the queuing user's identity into the token, and BlueAPI running as that user; the open question of what to do for mail-in items run by beamline staff needs a decision before any patch. Done means the token carries the queuer's identity and BlueAPI executes on their behalf, verified against identity-test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Going forward, to improve accountability, we would like to move to a model where services are able to call to the other services they require saying "i want to do X on behalf of this person".
From Neil:
Hi, yes, the functionaity is available on identity-test (it will not be available on identity (production) until 8th December at the earliest).
An example of how to use it can be found here: https://gitlab.diamond.ac.uk/keycloak/keycloak-configuration/-/blob/f0ca975f64854d58a83f153abd3757ff2705b884/utility_scripts/service_impersonation_example.py
You will also need to either request a new client with the feature enabled or request that your existing client is updated. This should be done in the usual way via the UASHD Jira helpdesk
We should give this a go in the queue. There is probably some discussion needed on who the queue is being run on behalf of if it's beamline staff doing mail-in but for the case if someone just using the queue we should just pass through whoever queued the item as the person doing the action
Acceptance Criteria
- A new DAQ queuing service client is made in keycloak with this feature enabled
- The identity of the person queing the item is added into the token
- The token is passed to BlueAPI and it runs as that user
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 1
- Merge medio
- 1g 19h
- PR unite (30g)
- 13
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un 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 DiamondLightSource/daq-queuing-service
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
DiamondLightSource/daq-queuing-service#188 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
I15-1: Ensure backgrounds are always added in orderForse già presa @jacob-williamson l’ha presa 21 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DiamondLightSource/daq-queuing-service#164 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
DiamondLightSource/daq-queuing-service#163 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DiamondLightSource/daq-queuing-service#39 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Add ability to export and restore the queueForse già presa @jacob-williamson l’ha presa oggi. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 51/100
DiamondLightSource/daq-queuing-service#200 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di DiamondLightSource/daq-queuing-service
Issue simili
-
Container fails to start when GitHub Releases is unavailable: uv run re-downloads the tvl wheelAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
trezor/trezor-user-env#421 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 91/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tangentcode/tangentswarm#167 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno