Move auth to the "run on behalf of" model
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- authentication, backend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 1
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 13
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DiamondLightSource/daq-queuing-service
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
DiamondLightSource/daq-queuing-service#188 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
I15-1: Ensure backgrounds are always added in orderPosiblemente ocupada @jacob-williamson la tomó hace 21 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DiamondLightSource/daq-queuing-service#164 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
DiamondLightSource/daq-queuing-service#163 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
DiamondLightSource/daq-queuing-service#39 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Add ability to export and restore the queuePosiblemente ocupada @jacob-williamson la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 51/100
DiamondLightSource/daq-queuing-service#200 ·
Los mantenedores suelen responder en 2 días
Todos los issues de DiamondLightSource/daq-queuing-service
Issues similares
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
MakazhanAlpamys/Soup#3589 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ClickHouse/clickhouse-connect#1266 ·
Los mantenedores suelen responder en 1 día
-
AutoGrowth: new time column nameAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
biosustain/growthcurves_app#89 ·
Los mantenedores suelen responder en 1 día
-
`LogProxyConsumer._on_relation_departed` raises `APIError` when the promtail service does not existAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
canonical/loki-k8s-operator#695 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día