Keycloak follow-ups for the dev environment

Aperta
#71 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker-compose, json, python

Direzione di ricerca

The work is in containers/frontend/app-config.js, realm_pyronear.json, etl_scripts, and containers/notebooks/app/api.py; first check the dependency on #68 and read how the init script uses the pyro-scripts service account. Update the dev frontend Keycloak settings and replace both legacy /login/creds logins with that account. Done when the redirect settings are present and neither flow depends on superadmin credentials.

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

Descrizione

Blocked by #68.

1. Front container (make run) — needed no later than the release of pyronear/new-pyro-platform#295

  • Add KEYCLOAK_URL, KEYCLOAK_CLIENT_ID and KEYCLOAK_REDIRECT_URI (http://localhost:8080/) to containers/frontend/app-config.js.
  • Add http://localhost:8080/* to the redirect URIs and http://localhost:8080 to the web origins of the new-pyro-platform client in realm_pyronear.json.
  • Can be added before the release: the current image ignores these keys.

2. Stop using the legacy login — needed before LEGACY_USER_TOKENS_ENABLED is set to false in pyro-api

  • etl_scripts still logs in with the superadmin credentials through /login/creds.
  • get_token in containers/notebooks/app/api.py does the same.
  • Both should use the pyro-scripts service account, as the init script already does.

Note

  • The realm ships dev secrets in clear and has brute-force protection disabled. Fine for this repository, but it must not be used as a base for the production realm.
Lingua principale
Jupyter Notebook
Stelle
1
Fork
5
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 pyronear/pyro-envdev

Tutte le issue di pyronear/pyro-envdev

Issue simili

Altre issue su Security

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.