Keycloak follow-ups for the dev environment

オープン
#71 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker-compose, json, python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Jupyter Notebook
スター
1
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pyronear/pyro-envdev のほかの issue

pyronear/pyro-envdev の issue をすべて見る

似ている issue

Security の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。